- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
Hi abroun
If you get this error when you try to launch an instance or restart a stopped instance, AWS does not currently have enough available On-Demand capacity to fulfill your request.
Solution:
To resolve the issue, try the following:
-
Wait a few minutes and then submit your request again; capacity can shift frequently.
-
Submit a new request with a reduced number of instances. For example, if you're making a single request to launch 15 instances, try making 3 requests for 5 instances, or 15 requests for 1 instance instead.
-
If you're launching an instance, submit a new request without specifying an Availability Zone.
-
If you're launching an instance, submit a new request using a different instance type (which you can resize at a later stage). For more information, see [1]
-
If you are launching instances into a cluster placement group, you can get an insufficient capacity error. For more information, see [2]
If the preceding troubleshooting steps don't resolve the problem, then you can move the instance to another VPC or to another subnet and Availability Zone [3].
To avoid insufficient capacity errors on critical machines, consider using On-Demand Capacity Reservations. To use an On-Demand Capacity Reservation, do the following:
- Create the Capacity Reservation[4] in an Availability Zone.
- Launch critical instances into your Capacity Reservation[5]. You can view real-time Capacity Reservation usage, and launch instances into it as needed.
I hope this helps
References:
[1] Change instance type:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-resize.html
[2] Placement group rules and limitations:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html#concepts-placement-groups
[3] Move EC2 to another Subnet, Availability Zone, or VPC:
https://aws.amazon.com/premiumsupport/knowledge-center/move-ec2-instance/
[4] Capacity Reservation:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html
[5] Launch critical instances into your Capacity Reservation:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#capacity-reservations-launch
[6] How do I troubleshoot InsufficientInstanceCapacity errors when starting or launching an EC2 instance:
https://aws.amazon.com/premiumsupport/knowledge-center/ec2-insufficient-capacity-errors/
Hi Mabandla,
Thank you for the detailed reply. In the first instance I think that I will look at making my application agnostic to the availability zone in which the g4dn instances are running.
I was curious though if you knew if there was anything specific going on with gpu instances in eu-west-1? Over the last couple of days I've had on-demand requests for just 1 g4dn.2xlarge instance take 20-30 minutes to come up multiple times when in the past for single instances I'm sure it's usually only taken a couple of minutes max. I haven't tried any other g4dn instances yet such as the smaller g4dn.xlarge to see if similar issues occur there.
Regards
Alan
Edited by: abroun on Nov 16, 2021 8:58 AM
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 10 mesi fa