- Newest
- Most votes
- Most comments
When an instance is stopped in a Warm Pool, there isn't a capacity guarantee. Just like starting any other stopped EC2 instance, there could be a lack of capacity for that instance type in the given AZ. When any launch failure happens for a warm pool instance being started, including ICE (Insufficient Capacity Errors), the instance will be considered a launch failure and terminated.
Does ASG retry launching an instance from warmpool again from different AZ in such cases or does it directly launch a fresh new instance?
Not at this time, however this is something which could be added in the future. I've passed your feedback on to the AutoScaling team for their awareness
Is there a way to force ASG to always launch a new instance from warmpool only?
No. If there is no capacity in the warm pool, the ASG will launch a cold start
Hi,
You case is clearly mentioned in Limitations of https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html#warm-pools-limitations
If your warm pool is depleted when there is a scale-out event, instances will launch
directly into the Auto Scaling group (a cold start). You could also experience cold starts
if an Availability Zone is out of capacity.
So, cold starts are normal behaviour when AZ is out of capacity.
To try to go around your issues, your may want to activate predictive autoscaling (if not done yet): https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-predictive-scaling.html
In that case, your instance(s) will be started before they are really needed and then you may hide (part of) the long start time of your application.
Best, Didier
The error case I mentioned doesn't revolve around the case where warmpool is depleted, rather it is about when ASG is trying to launch an instance from warmpool from a given AZ but is receiving
Insufficient Capacity
error. In such case, I've seen that ASG directly tries to launch a fresh new instance rather than trying to pick up a different AZ from warmpool itself.You are referring to the first sentence. I was pointing to the second sentence which is not conditioned by depleted pool.
Anyway, did you envision predictive autoscaling as mentioned in my update?
The public doc quote is talking about the warm pool having no instances left in the AZ, which isn't necessarily related to the ICE issue here
Relevant content
- asked 10 days ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
Hello AWS Team
We're also facing the same issue where the ASG is launching a fresh new insteance instead of using the warm pool from a different AZ whenever there's warm pool instance launch failure due to Insufficient Capacity in the AZ.
Can you let us know if this is prioritized and if so, by when will it be resolved?