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
posta 3 anni fa274 visualizzazioni
2 Risposte
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

con risposta 3 anni fa
0

thank you

Somraj
con risposta 3 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande