Does auto scale-in policy remove instances below desired capacity ?

0

I am facing a problem related to 'Desired Capacity' and 'Minimum Capacity'.

My ASG has desired capacity as 2, minimum capacity as 1 and maximum capacity as 6. There is a scale-in policy (and CloudWatch alarm) to remove 1 instance when 'CPU Utilization' is below 20%.

The alarm is getting triggered and I can see that in both cloudwatch dashboard plus EC2 dashboard against the instance.

However the problem is the auto-scale in policy is not getting trigged and the instance is not terminated. In EC2 dashboard the status becomes 'No data' and in CloudWatch dashboard the state becomes 'Insufficient Data'.

Can you please let me know why 1 instance is not getting terminated ? Is it because my desired capacity is 2 ??

My minimum capacity is 1 so isn't it that after alarm is triggered 1 instance will be terminated ?

Somraj
已提問 3 年前檢視次數 274 次
2 個答案
0

Have you looked at the autoscale group in the EC2 console? check the activity history tab...e.g.
https://console.aws.amazon.com/ec2autoscaling/home?region=us-east-1#/details

..if your alarm is properly hooked up to the ASG action, you should see something there that would help.

Also on the details tab for the ASG, be sure there are no:
Suspended processes

已回答 3 年前
0

thank you

Somraj
已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南