可用的EC2实例类型是否在可用区(在同一区域中)不同? [英] Does the available EC2 instances types vary over availablity zones (in the same region)?

查看:115
本文介绍了可用的EC2实例类型是否在可用区(在同一区域中)不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亚马逊在法兰克福推出了第三个可用性区域:eu-central-1c

Amazon launched a third availability zone in Frankfurt: eu-central-1c

据我所见,第三个可用性区域不支持现有区域(eu-central-1a和eu-central-1b)中可用的所有实例类型.

From what I see, the third availability zone does not support all instance types that are available in the existing zones (eu-central-1a and eu-central-1b).

我一直认为可用实例类型可能在区域上有所不同,但在同一区域内的可用区域上是相同的.从我看来,情况并非如此.

I always assumed that the available instance types may differ over regions but are identical over availability zones within the same region. From what I see that is not the case.

是真的吗?如果一个区域中有EC2实例类型可用,您是否不能假设它在所有可用性区域中都可用?

用于测试的脚本是:

aws ec2 describe-reserved-instances-offerings \
  --query "ReservedInstancesOfferings[?AvailabilityZone=='eu-central-1c'] [InstanceType]" \
  --output text --region eu-central-1 | grep c3.large

# c3.large not available on eu-central-1c

但是

aws ec2 describe-reserved-instances-offerings \
  --query "ReservedInstancesOfferings[?AvailabilityZone=='eu-central-1a'] [InstanceType]" \
  --output text --region eu-central-1 | grep c3.large

# ... it is available on eu-central-1a

推荐答案

根据文档,实例类型的可用性在区域中的可用区之间可能会有所不同.

The availability of instance types can differ between availability zones in a region based on the documentation.

从EC2 文档:

某些AWS资源可能并非在所有地区都可用,并且 可用区.确保您可以创建所需的资源 在启动所需的区域或可用区之前, 特定可用区中的实例.

Some AWS resources might not be available in all regions and Availability Zones. Ensure that you can create the resources you need in the desired regions or Availability Zone before launching an instance in a specific Availability Zone.

尽管资源是一个模糊的术语,但实例类型应视为资源.因此,某些实例类型可能在某个区域中不可用,但在其他可用性区域中可用.在某些情况下,由于在请求时AWS在该区域中没有足够的容量,因此无法启动某种类型的实例.

Although resource is a vague term, an instance type should be considered a resource. So, it's possible that a certain instance type is not available in a certain zone but available in other availability zones. There are also cases where an instance of a certain type cannot be launched because AWS does not have enough capacity in that zone at the time of request.

这里要注意的另一重要事项是,并非所有帐户的可用区域都固定,如

Another important thing to note here is that the availability zones are not fixed for all accounts as described here.

确保资源在可用区之间分配 对于一个区域,我们独立地将可用区映射到标识符 每个帐户.例如,您的可用区us-east-1a可能 另一个帐户与us-east-1a不在同一位置.没有啦 帐户之间的可用区协调方式.

To ensure that resources are distributed across the Availability Zones for a region, we independently map Availability Zones to identifiers for each account. For example, your Availability Zone us-east-1a might not be the same location as us-east-1a for another account. There's no way for you to coordinate Availability Zones between accounts.

这篇关于可用的EC2实例类型是否在可用区(在同一区域中)不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆