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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠