A SysOps administrator is managing an Amazon EC2 Auto Scaling group (ASG) that uses a step scaling policy to scale out when average CPU utilization exceeds . During unexpected traffic spikes, the ASG launches new instances, but it continues to launch more instances every minutes before the previously launched instances have finished bootstrapping and begun processing traffic. This behavior causes the group to scale out beyond the required capacity, leading to unnecessary costs. Which action will prevent the ASG from launching additional instances while the newly launched instances are still bootstrapping?
- Increase the estimated instance warmup time for the step scaling policy.Answer
- BIncrease the default cooldown period in the Auto Scaling group configuration.
- CEnable detailed monitoring for the EC2 instances within the launch template.
- DConfigure an Amazon EventBridge rule to trigger a Systems Manager Automation document that pauses scaling processes.
Answer
Increase the estimated instance warmup time for the step scaling policy.
Increasing the estimated instance warmup time ensures that newly launched instances are given sufficient time to complete bootstrapping and start handling traffic before their metrics are included in the Auto Scaling group's aggregate metrics. During this warmup period, the step scaling policy will not initiate further scale-out actions, preventing the group from over-provisioning resources during a spike.
Step-by-Step Solution
Key Concept
Instance warmup in dynamic scaling policies