为什么弹性负载平衡报告“不在服务区”?负载、服务区、弹性、报告

2023-09-11 10:59:00 作者:純屬虛構

我想设置弹性负载平衡(ELB)在AWS分割的多个实例之间的请求。我创建了我的网络服务器基于相同AMI的多个图像,并且我能够ssh到每个单独并通过每个不同的公共DNS访问该站点。

I am trying to set up Elastic Load Balancing (ELB) in AWS to split the requests between multiple instances. I have created several images of my webserver based on the same AMI, and I am able to ssh into each individually and access the site via each distinct public DNS.

我已经加入我的每个实例的负载均衡器,但他们都回来与状态:停用,因为他们没有健康检查。我最困惑,因为我可以从它的公共DNS访问的每个实例,但我得到一个超时每当我访问负载均衡DNS名称。

I have added each of my instances to the load balancer, but they all come back with the Status: Out of Service because they failed the health check. I'm mostly confused because I can access each instance from its public DNS, but I get a timeout whenever I visit the load balancer DNS name.

我一直在试图通读所有的文档和谷歌搜索,但我坚持。在正确的方向的任何指针或链接将大大AP preciated。

I've been trying to read through all the docs and googling it, but I'm stuck. Any pointers or links in the right direction would be greatly appreciated.

推荐答案

我联系AWS支持这个同样的问题。显然他们的系统不知道如何处理被所有ELB后面的实例都停止延长的时间量的情况。 AWS支持,可以手动刷新的状态,如果你马上需要它们。

I contacted AWS support about this same issue. Apparently their system doesn't know how to handle cases were all of the instances behind the ELB are stopped for an extended amount of time. AWS support can manually refresh the statuses, if you need them up immediately.

建议的解决它取消注册从ELB的EC2实例,而不只是阻止他们,当你再次启动重新注册。

The suggested fix it to de-register the ec2 instances from the ELB instead of just stopping them and re-register them when you start again.