ELB, EC2, Instance Failed At Least Unhealthy Number of Health Checkups

I am setting up an ELB with EC2 on AWS and running in "Instance did not meet at least the error" Invalid threshold for number of health checks sequentially "to crash the instance. I checked.

1) as I am using 8080 for the security check port and my path is "/index.html". I am testing the link http://ec2DNSname:8080/index.html

in the browser, it returns,

Response header:
HTTP/1.1 200 OK
X-Powered-By: Express
Accept-Ranges: bytes
ETag: "150-1420697739000"
Date: Thu, 08 Jan 2015 06:16:21 GMT
Cache-Control: public, max-age=0
Last-Modified: Thu, 08 Jan 2015 06:15:39 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 150
Vary: Accept-Encoding
Connection: keep-alive

      

2) In my EC2 configuration, I allow incoming TCP traffic to the 8080 from any computers

Any other possible reason for failing the health check?

Thank you Hammer

+3


source to share


2 answers


As long as the page returns a 200 response, it must eventually pass a health check. The health check configuration includes the number of times the health check should return a good result and how often it should be checked. So a healthy number of 5, checking every 30 seconds, will take 2.5 minutes to return as healthy.

If the HTTP health check fails, try running the TCP health check on port 8080.



Also, just in case, check that your VPC configuration allows the load balancer to connect to the EC2 instance. This will be automatic if they are on the same subnet, but network ACLs can affect the connection between different subnets.

+3


source


If you are building a Linux server, you only need an attaché per index.html file to your server, then it will work with both http and TCP. please let me work this or not. or you are testing Classic Load Balancer Troubleshooting: Health Checks (first error).



0


source







All Articles