为什么 AWS Elastic Beanstalk 显示了一半的否。作为健康主机计数的实例?

Why AWS Elastic Beanstalk shows half the no. of instances as Healthy Host Count?

根据我在“环境”的“健康”部分看到的内容,我很确定 运行 有多少个实例。

但在“监控”页面上 - 健康主机计数始终是实例数的一半。

所有实例都“健康”- 它们都显示状态正常。 为什么一个实例算作主机的1/2?

当我只使用一个实例时,它显示 0.5 作为主机计数。 有人可以解释一下我在这里没有看到什么吗?

谢谢!

这是因为 HealthyHostCount 是根据 ALB 节点报告的。所以你的六个实例被分成两个节点,平均为 3。AWS docs 也解释一下:

The Minimum and Maximum statistics reflect the minimum and maximum reported by the individual load balancer nodes. For example, suppose there are 2 load balancer nodes. One node has HealthyHostCount with a Minimum of 2, a Maximum of 10, and an Average of 6, while the other node has HealthyHostCount with a Minimum of 1, a Maximum of 5, and an Average of 3. Therefore, the load balancer has a Minimum of 1, a Maximum of 10, and an Average of about 4.