Amazon Autoscaling 触发器不起作用,如何调试它?
每当现有实例上的平均 CPU 负载变高时,我都会尝试使用自动缩放来创建新的 EC2 实例。情况如下:
我正在使用此 boto 脚本设置自动缩放(已删除键和图像名称)。 http://balti.ukcod.org.uk/~francis/ tmp/start_scaling_ptdaemon.nokeys.py
我已将 min_size 设置为 2,并且 AutoScalingGroup 正确创建了初始 2 个实例,这两个实例都工作正常。我很确定这意味着 LaunchConfiguration 是正确的。
当这两个实例上的负载几乎达到 100% 时,什么也没有发生。
一些问题/想法:
有什么办法可以调试这个吗?我找不到任何 API 调用可以提供有关 Autoscaling 正在执行或认为它正在执行的操作的详细信息。是否有任何工具可以就其正在执行的操作或是否正确设置提供反馈?
如果 Autoscaling 出现在 AWS 控制台中那就太好了。
我正在使用欧盟西部可用区。是否有任何原因会导致自动缩放出现问题?
创建触发器时是否有“维度”参数的文档?我不知道这意味着什么,只是从示例中复制了其字段。我找不到任何关于它的文档,它不自指地说它是一个“维度”,而没有解释它的含义或可能的值是什么。
感谢您的帮助!
I'm trying to use autoscaling to create new EC2 instances whenever average CPU load on existing instances goes high. Here's the situation:
I'm setting up autoscaling using this boto script (with keys and image names removed). http://balti.ukcod.org.uk/~francis/tmp/start_scaling_ptdaemon.nokeys.py
I've got min_size set to 2, and the AutoScalingGroup correctly creates an initial 2 instances, which both work fine. I'm pretty sure this means the LaunchConfiguration is right.
When load goes up to nearly 100% on both those two instances, nothing happens.
Some questions / thoughts:
Is there any way of debugging this? I can't find any API calls that give me detals of what Autoscaling is doing, or thinks it is doing. Are there any tools that give feedback either on what it is doing, or on whether it has set things up correctly?
It would be awesome if Autoscaling appeared in the AWS Console.
I'm using EU west availability zone. Is there any reason that should cause trouble with Autoscaling?
Is there any documentation of the "dimensions" parameter when creating a trigger? I have no idea what it means, and have just copied its fields from an example. I can't find any documentation about it that doesn't self-referentially say it is a "dimension", without explaining what that means or what the possible values are.
Thanks for any help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我确信您已经找到了这些,并且最好先使用 AWS 工具,然后再使用 Python 工具来了解这个想法。:)
http://ec2-downloads.s3.amazonaws.com/AutoScaling-2009-05-15.zip
http://docs.amazonwebservices.com/AutoScaling/latest/DeveloperGuide/
干杯,
罗德尼
I'm sure you've already found these and it would be good to use AWS tool first before the Python tool to get the idea.:)
http://ec2-downloads.s3.amazonaws.com/AutoScaling-2009-05-15.zip
http://docs.amazonwebservices.com/AutoScaling/latest/DeveloperGuide/
Cheers,
Rodney
另外,看看类似 http://alestic.com/2011/11/ec2 -schedule-instance 有关如何使用提供的演示脚本的工具的简单示例。
Also, take a look at something like http://alestic.com/2011/11/ec2-schedule-instance for a simple example of how to use the tools with a demo script provided.