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
demandé il y a 3 ans284 vues
2 réponses
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

répondu il y a 3 ans
0

thank you

Somraj
répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions