We understand that you are having difficulties with your ELB health checks. We suggest that you check your security group settings to ensure that the port and protocol are properly added to allow the health checks to pass. Your target security group should allow inbound HTTP/TCP traffic on port 80 this will allow the ELB to monitor the target instances/ECS cluster. We also suggest checking the rules for your ELB's Security group as the traffic may be stopped there, ensure that HTTP/TCP traffic is allowed out to Target instance. In short make sure the health check port and protocol is allowed in both Target instance's security group as well as ELB's security group.
Please contact if you have any further questions, and feel free to reach out to us via a support case to facilitate a discussion on the specifics of your resources.
 https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-security-groups.html (https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-security-groups.html)
 https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/ts-elb-healthcheck.html (https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/ts-elb-healthcheck.html)
 https://aws.amazon.com/premiumsupport/knowledge-center/elb-fix-failing-health-checks-alb/ (https://aws.amazon.com/premiumsupport/knowledge-center/elb-fix-failing-health-checks-alb/)
 https://aws.amazon.com/premiumsupport/knowledge-center/ecs-fargate-health-check-failures/ (https://aws.amazon.com/premiumsupport/knowledge-center/ecs-fargate-health-check-failures/)
Dealing with those pesky health check issues can be really nerve-wracking, but don't worry, we've got your back :)
I've been down the ECS rabbit hole myself, and those launch type differences can be a real headache. The fact that it works like a charm with Fargate but throws a tantrum with EC2 launch type is a puzzle, right? Here's a suggestion: have you double-checked your security group settings? Sometimes, it's those sneaky rules that cause these health check failures. You won't believe me, but I had so much trouble working on a similar problem here: https://andersenlab.com/industries/healthcare. But this is what worked for me, so double-check a few times! Make sure the port and protocol for your airflow application are properly added to allow those health checks to pass through.
It's funny how AWS keeps us on our toes, teaching us new things every day. My advice would be to keep tinkering and testing. Remember, each configuration tweak is a step closer to the solution. And hey, if you get it sorted, don't forget to share your triumph with the community – we could all learn from your experience!
- asked 4 years ago
- AWS OFFICIALUpdated 2 years ago
- How do I troubleshoot Application Load Balancer health check failures for Amazon ECS tasks on Fargate?AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 9 months ago
- EXPERTpublished 4 months ago
- EXPERTpublished a year ago