简体   繁体   English

ec2错误启动实例容量不足

[英]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.我们已经在共享硬件租赁类型的亚太(孟买)区域上创建了 AWS EC2 实例。我们正在尝试在关闭实例后启动一个实例,我们在屏幕上弹出 ec2 错误启动实例容量不足消息。在白皮书上是像这样提到,尝试启动新的 ec2 实例,但正如我们在基本计划中所做的那样,它现在允许在另一个区域上创建新实例。

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.根据文档,在启动或重新启动实例时出现InsufficientInstanceCapacity错误意味着亚马逊没有足够的容量来满足您的请求。 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.如果您是 AWS 的新手,即使您当前没有运行任何实例,通常也会限制您可以启动或启动的实例数量。 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在 -Any- 可用区启动实例
  • 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.这通常是因为 AWS 没有足够的可用按需容量来完成您的请求。

  1. For troubleshooting steps, see [1].有关故障排除步骤,请参阅 [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].如果前面的故障排除步骤没有解决问题,那么您可以将实例移动到另一个 VPC 或另一个子网和可用区 [2]。

Tip : To avoid insufficient capacity errors on critical machines, consider using On-Demand Capacity Reservations[3].提示:为避免关键机器上的容量不足错误,请考虑使用按需容量预留 [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参考:[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/ [2] https://aws.amazon.com/premiumsupport/knowledge-center/move-ec2-instance/

[3] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html [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 [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 [5] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#capacity-reservations-launch

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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