Instance status is OutOfService in Load balancer

2019-07-23 03:22发布

问题:

I have created a load balancer in amazon AWS.I created the load balancer in order to set up an ssl in server which already had another domain with SSL.The load balancer was working fine till today.But sometime before I noticed that the status of the instance has changed to Outofservice.

Im new to aws and couldnt find what is going wrong.

My health check is set as

Please help out.

回答1:

Here is my checklist to troubleshoot this type of issue

  • Is the Security group of your instance OK ? ELB needs to have access to your instance for the health check

  • Is your Web / App server correctly running on the instance ? Does it accept connection requests ?

  • Is the HTTP return code of your health check URL 200 ? If your healthcheck URL returns anything else (a 30x redirect for example), ELB will consider your instance invalid. You can check this with curl -I on Linux instances.

HTH

--Seb