An Auto Scaling group uses a target tracking scaling policy based on average CPU utilization. During sudden load increases, the Auto Scaling group launches new EC2 instances. The application on these instances requires five minutes to complete initialization and begin serving requests. During this initialization period, the Auto Scaling group continues to launch additional, unnecessary EC2 instances because the average CPU utilization remains high. Which parameter should be configured to prevent this behavior?
- The default instance warmup time on the Auto Scaling groupAnswer
- BThe scale-in cooldown period on the target tracking policy
- CDetailed monitoring for the EC2 instances in the launch template
- DThe EventBridge rule delay timer for Auto Scaling group events
Answer
The default instance warmup time on the Auto Scaling group
Configuring the default instance warmup time tells the Auto Scaling group to exclude newly launched instances from the group's metric averages until they have warmed up for the specified duration. This prevents the scaling policy from launching additional instances while the first set of instances is still initializing.
Step-by-Step Solution
Key Concept
Auto Scaling target tracking and instance warmup configuration