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

前端 未结 13 904
慢半拍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

    If your web server is running fine, then it means the health check goes on a url that doesn't return 200.

    A trick that works for me : go on the instance, type curl localhost:80/pathofyourhealthcheckurl

    After you can adapt your health check url to always have a 200 response.

提交回复
热议问题