A SysOps administrator notices that an Auto Scaling group is launching excessive, redundant EC2 instances shortly after a scale-out event begins. This behavior occurs because new instances are still bootstrapping and have not yet begun reporting metrics, causing the CloudWatch alarm to remain in the ALARM state. Which Auto Scaling configuration setting should the administrator adjust to prevent these redundant scaling actions?
- AConfigure detailed monitoring on the launch template to increase the frequency of EC2 instance metrics.
- Increase the default instance warmup or scaling cooldown setting.Cevap
- CAttach an IAM policy with the iam:PassRole permission to the Auto Scaling group's service-linked role.
- DCreate an Amazon EventBridge rule that triggers an AWS Systems Manager Automation document to delete duplicate scaling requests.
Cevap
Increase the default instance warmup or scaling cooldown setting.
Increasing the default instance warmup or scaling cooldown setting prevents the Auto Scaling group from launching additional instances while the existing ones are still bootstrapping. This gives the newly launched instances enough time to start reporting metrics and potentially bring the metric back to normal levels, resolving the alarm state.
Adım Adım Çözüm
Anahtar Kavram
Auto Scaling cooldown and warmup periods