我配置了自动扩展策略来启动 8 个实例,但它不会启动超过 2 个实例。
以下是 AWS 对该策略的描述:
bash# /opt/aws/apitools/as/bin/as-describe-policies
SCALING-POLICY mygroup Up 8 ExactCapacity 5 arn:aws:autoscaling:us-east-1:xxxxxxxxxxxx:scalingPolicy:xxxxxxxxxxxxxxx:autoScalingGroupName/mygroup:policyName/Up
我这样称呼这项政策:
bash# /opt/aws/apitools/as/bin/as-execute-policy Up --auto-scaling-group mygroup
查看扩展活动证实了我所看到的内容:它仅尝试启动 2 个实例:
bash# /opt/aws/apitools/as/bin/as-describe-scaling-activities --auto-scaling-group mygroup --show-xml
<AutoScalingGroupName>mygroup</AutoScalingGroupName>
<Cause>At 2012-06-05T17:05:25Z a user request executed policy Up changing the desired capacity from 0 to 2. At 2012-06-05T17:05:37Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 2.</Cause>
as-describe-scaling-activities 的输出中没有错误。我现在只有一个自动缩放组。
有什么线索可以说明我可能做错了什么吗?我已删除/重新创建/重命名了组、策略和启动配置,但我从未看到超过 2 个实例。