- Newest
- Most votes
- Most comments
Hi,
To accelerate scale-in and optimize costs, you have to adapt the value of so-called "cooldown"
period. It is by default set to 300s (5 mins)
For details, see https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-scaling-cooldowns.html
After your Auto Scaling group launches or terminates instances, it waits for a cooldown period
to end before any further scaling activities initiated by simple scaling policies can start. The
intention of the cooldown period is to prevent your Auto Scaling group from launching or terminating additional instances before the effects of previous activities are visible.
The section "Considerations" will give you all perspectives to best choose the value: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-scaling-cooldowns.html#cooldown-considerations
Best,
Didier
There isn't quite enough info here to give an answer.
- You mentioned a 15 minute scale-in time, does that mean you're using a Target Tracking scaling policy? I'm assuming yes since that's usually the low alarm times set on target tracking currently.
- Is CAS in this context an internal script/application your team uses? Or are you using this to refer to autoscaling in general?
- Are you using capacity providers in ECS with managed scaling?
You can't adjust the scale-in times of target tracking alarms, since its a managed scaling policy. If you're using a capacity provider, then it always uses Target Tracking, but if you're managing your own scaling policies, then you can use step scaling with your own custom alarms.
If you're using scheduled scaling on the Service (in Application AUtoScaling), then you could also setup a scheduled scaling policy on the ASG to scale-in at the same time
Relevant content
- asked a year ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 18 days ago
Cooldown is for Simple Scaling, and it sounds like Target Tracking is being used here