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

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

    Finally I got this working. The issue was with the Amazon Security Groups, because I've restricted the access to port 80 to few machines on my development area and the load balancer could not access the apache server on the instance. Once the load balancer gained access to my instance, it gets In Service.

    I checked it with tail -f /var/log/apache2/access.log in my instance, to verify if the load balancer was trying to access my server, and to see the answer the server is giving to the load balancer.

    Hope this helps.

提交回复
热议问题