使用AWS中的可用区查看Pod机架详情

huangapple go评论64阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年6月2日 12:48:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/76387199.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定