舰队与集群

Fleet vs Cluster

我真的一头雾水,不知道aws中"fleet"和"cluster"有什么区别。对我来说都是"a bunch of something",分不清

我发现没有人会问这个问题,因为他们处于不同的层次,这是一个定义问题,我误解了他们的关键部分。

我们称之为 EC2 队列。 我们称之为 ECS 集群。 我们称之为 EKS 集群。

术语 ECS 集群 用于 "a logical grouping of tasks or services" 或在使用 EC2 launch-type a "grouping of container instances" 的情况下。 [1]
术语 EKS 集群 定义 "the Amazon EKS control plane and Amazon EKS worker nodes that are registered with the control plane"。 [2]
术语 EC2 fleet 用于 "configuration information to launch a fleet—or group—of instances"。 [3]

这些术语通常用于指代分组资源。资源类型因服务而异:

  • 在 EC2 中,队列可用于一次启动多个配置有不同类型(例如 1 x t2 和 2 x m5)或购买选项(例如 1 x on-demand 和剩余 4 x 现货)的实例).
  • 在 ECS(具有 EC2 启动类型)中,我们需要一种方法来定义特定 ECS 服务应使用哪些 EC2 实例(即 docker 容器应在哪些基础实例上 运行 ).该组实例称为集群。对于 Fargate launch-type,集群由 AWS 自动提供,因为底层基础设施已启动和管理 on-demand。
  • 在 EKS 中,该术语显然用于区分不同的 EKS 环境。它应该与官方 Kubernetes 词汇表的定义一致。 [4]

参考资料

[1] https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_clusters.html
[2] https://docs.aws.amazon.com/eks/latest/userguide/clusters.html
[3] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html
[4] https://kubernetes.io/docs/reference/glossary/?all=true#term-cluster

资产的种类因管理和支持而异:在 EC2 中,舰队有助于毫不拖延地派遣各种案件,这些案件有不同的类型或购买选择。这种事件的聚集被称为一堆。