简体   繁体   中英

ec2 error starting instances insufficient capacity

We have created AWS EC2 instance on Asia it Pacific(Mumbai) Zone on Shared Hardware rental type.We are trying to start an instance after shut it down we are getting popup ec2 error starting instances insufficient capacity message on screen.On white papers it is mention like this,Try to launch new ec2 instance but as we have in basic plan it is now allowing to create new instance on another zone.

How to resolve this issue.

According to the documentation, getting an InsufficientInstanceCapacity error when launching or restarting an instance means that Amazon does not have enough capacity to serve your request. There are a few options:

  • Waiting for a while and trying again
  • Launching an instance without specifying an availability zone
  • Changing the instance type

You can read more here .

If you are new to AWS, there's usually a limit for how many instances can you launch or start even if you are currently running none. Try to request for a limit increase for the instance you want to launch in the support center and the insufficient capacity error will disappear

Below are a few options available

  • Wait for that instance type to become available.
  • Launch a different instance type.
  • Launch an instance in a different availability zone and migrate back at a later time, if necessary. This provides a temporary solution until you can replace it at a later time with one in the desired availability zone. However, you will be charged cross-zone data transfer costs.
  • Launch an instance in the -Any- availability zone
  • Purchase a reserved instance (for that instance type) in the desired availability zone. This will also prevent you from receiving this error in the future.

This is usually caused by AWS not having enough available On-Demand capacity to complete your request.

  1. For troubleshooting steps, see [1].
  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[2].

Tip : To avoid insufficient capacity errors on critical machines, consider using On-Demand Capacity Reservations[3].

To use an On-Demand Capacity Reservation, do the following :

1. Create the Capacity Reservation[4] in an Availability Zone.

2. Launch critical instances into your Capacity Reservation[5].

Reference : [1] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshooting-launch.html#troubleshooting-launch-capacity

[2] https://aws.amazon.com/premiumsupport/knowledge-center/move-ec2-instance/

[3] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html

[4] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#capacity-reservations-create

[5] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#capacity-reservations-launch

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM