A fleet of Amazon EC2 instances is managed by an Auto Scaling group that uses target tracking based on average CPU utilization. The application hosted on these instances takes approximately 6 minutes to complete its boot sequence and begin serving traffic. During scale-out events, the Auto Scaling group launches multiple waves of redundant instances before the first new instance can actively handle requests, resulting in temporary over-provisioning. Which configuration change will address this issue?
- AIncrease the default cooldown period of the Auto Scaling group to 360 seconds.
- BEnable detailed monitoring in the Auto Scaling group launch template to send EC2 metrics at 1-minute intervals.
- Increase the estimated instance warmup time in the target tracking policy to at least 360 seconds.Answer
- DCreate an Amazon EventBridge rule that triggers an AWS Systems Manager Automation document to suspend the Launch process during scaling events.
Answer
Increase the estimated instance warmup time in the target tracking policy to at least 360 seconds.
Increasing the estimated instance warmup time in the target tracking policy to at least 360 seconds ensures that the Auto Scaling group does not launch additional instances while the recently launched instances are bootstrapping. During the warmup period, instances are not counted toward the average metrics of the Auto Scaling group, preventing the policy from triggering further scale-out events prematurely.
Step-by-Step Solution
Key Concept
Auto Scaling target tracking and estimated instance warmup configuration
Estimated Time:1m 30s