Target deregistration / unhealthy for ECS loadbalancer

0

I have tried creating an ECS cluster using both fargate and EC2 to use one of my prebuilt containers in ECR. I have done this using both the console and terraform code based on this blog: https://medium.com/avmconsulting-blog/how-to-deploy-a-dockerised-node-js-application-on-aws-ecs-with-terraform-3e6bceb48785, but I still face the target deregistration / target unhealthy. My container is on port 8000 for reference. Right now the container is hosted on EC2, but I'd like to use ECS for scalability. Is there a simple and fool proof guide I can follow for this?

已提問 1 年前檢視次數 329 次
1 個回答
1
已接受的答案

Does the application respond to the health check configured in the load balancer? To pass a successful health check the application needs to respond to the ping. This can be impacted by misconfiguration in the port/path fields in the health check for the target group, security groups attached to the ECS task/load balancer, or an application that isn't serving requests. This knowledge center article has some steps to troubleshoot the health checks.

AWS
Noah_L
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南