ELB Health Check Repeatedly Fails

0

I'm trying to set up an auto scaling group with application load balancer, but whenever I start it, the us-west-2b instance it creates gets stuck in a cycle of failing health checks (even though the instance passes status checks), deregistering and then creating a new instance to replace it, which then fails. The cycle continues and the only error code that I'm ever getting is the "Target.FailedHealthChecks" & "Health checks failed" reasons. I've tried going through the setup twice to make sure all my settings were correct and keep running into the same issue.

  • Can you share your Target Group health settings and security group info masking any sensitive details? Security group info from the ALB and EC2s

1 回答
0

First, check the security group and Network ACL settings on both the ELB and the instance to make sure all the ELBs subnets are able to communicate with the instances in 2b (and that the instance can send replies back)

If that's not the issue, to troubleshoot, disable ELB Healthchecks on the AutoScaling Group (ASG), by changing the healthcheck setting in the ASG to "EC2". This way the instances won't be terminated when they fail healthchecks

Next, after an instance launches, SSH/RDP into it and check the webserver logs to see if any healthchecks from the ELB are making it in at all. You can also launch a test instance in the same subnet(s) as the ELB (using the same security group) to try and send a curl to the instance in 2a to see if the connection can go through

AWS
已回答 6 个月前
profile picture
专家
Kallu
已审核 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则