Stay up to date with the latest from the Knowledge Center. See all new Knowledge Center articles published in the last month, and re:Post's top contributors.
如何解决在Amazon EC2 Auto Scaling组中启动实例时出现的“InsufficientInstanceCapacity”或“UnfulfillableCapacity”错误?
1 分钟阅读
内容级别:基础
2
当我尝试在Amazon EC2 Auto Scaling组中启动实例时,出现了“InsufficientInstanceCapacity”或“UnfulfillableCapacity”错误。
简短描述
由于云计算的性质,实例容量是波动的。无论是按需实例还是Spot实例的可用性是无法保证的。确保实例可用性的方法是购买预留实例或使用容量预留。如果您选择的实例类型在可用区内的EC2实例容量不足,则可能会出现启动失败。为了减少在EC2 Auto Scaling组中出现启动失败的几率,请参考以下最佳实践:
解决方案
1. 指定更多实例类型
在EC2 Auto Scaling组中指定多个实例类型,这为您启动实例提供了更多选项。
在EC2 Auto Scaling组的实例覆盖中指定多个实例类型。最佳实践是指定至少10种不同的实例类型或系列。指定的实例类型或系列越多,出现启动失败的可能性就越小。