英文:
Pod Rack Details Using Availability Zone in AWS
问题
我正在尝试使用AWS的Java API自动映射可用性区域到相应的机架ID。是否有方法可以做到这一点?基本上,给定一个可用性区域,比如:"us-east-1a",该库应返回"use1-az1"作为机架ID。
英文:
I'm trying to automate a mapping between availability zone to its corresponding rackID in AWS using their Java API.
Is there a way to do this?
Basically, given an availability zone, say: "us-east-1a", the library should return "use1-az1" as the rack ID.
答案1
得分: 1
节点控制器不会为节点标记与放置组关联的分区或其所在的机架。如果您想获取该信息,您需要将标签添加到节点,例如 GroupName=GroupA,PartitionID=5,或者从您的应用程序中查询 EC2 API。请注意,部署到放置组的实例不会自动打标签。有关更多信息,请参阅 https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html。
英文:
The node controller does not label the node with the partition associated with a placement group or the rack that it is in. If you want to get that information, you'll either need to add labels to the node, e.g. GroupName=GroupA,PartitionID=5 or query the EC2 API from your application. Be aware that instances deployed into a placement group are not automatically tagged. See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html for additional information.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论