Why does Elastic Load Balancing report 'Out of Service'?

前端 未结 13 635
慢半拍i
慢半拍i 2021-02-03 17:57

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,

13条回答
  •  孤街浪徒
    2021-02-03 18:38

    Adding this because I've spent hours trying to figure it out...

    If you configured your health check endpoint but it still says Out of Service, it might be because your server is redirecting the request (i.e. returning a 301 or 302 response).

    For example, if your endpoint is supposed to be /app/health/ but you only enter /app/health (no trailing slash) into the health check endpoint field on your ELB, you will not get a 200 response, so the health check will fail.

提交回复
热议问题