如何配置自动缩放使用缩放政策和指标博托? [英] How can I configure Auto Scaling with boto using scaling policies and metrics?

查看:146
本文介绍了如何配置自动缩放使用缩放政策和指标博托?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想配置自动缩放,提供的博托使用缩放政策和指标报警,而不是触发器现在他们正在去precated。我已经成功地创建一个启动配置和自动伸缩群,但我有创造缩放政策和指标报警麻烦。如果任何人都可以提供一些链接到一些例子,或者提供一些有自己的,这将是更AP preciated。

I'm trying to configure Auto Scaling with boto using scaling policies and metric alarms rather than triggers now that they are being deprecated. I have successfully created a launch configuration and a Auto Scaling group, but am having trouble creating scaling policies and metric alarms. If anyone could provide some links to some examples, or provide some of there own, it would be much appreciated.

推荐答案

从活动博托的提交一个简洁但有据可查的code例子的利亚姆·弗里尔是他的依据是使用补丁博托来创建服务器的自动缩放组演示,放大/减少CPU Utilisation

A concise but well documented code example from active boto committer Liam Friel is his gist that Demonstrates using patched boto to create an autoscaling group of servers, scaled up/down by CPU Utilisation.

在标的物的更详细和更小code为中心的书面记录是WallOfFire的教程的在AWS ,这显然解决了AWS文档中当前的不足,以及设置队列大小为基础的自动缩放组。

A more elaborate and less code centric writeup on the subject matter is WallOfFire's tutorial Setting up Queue-size-based auto scaling groups in AWS, which apparently addresses current shortcomings within the AWS documentation as well.

在这些情况下,没有使你克服你的障碍,你应该修改你的问题就与你有麻烦了更多的细节。

In case none of these enable you to overcome your hurdles, you should amend your question with more details regarding the trouble you have.

祝你好运!

这篇关于如何配置自动缩放使用缩放政策和指标博托?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆