My healthy tasks at AWS Service Container are being drained

0

I configured the environment using Terraform, where I have:

1 Load balancer 1 Target group 2 Availability zones 2 Healthy Tasks

I do requests throw the load balancer to the app and it is giving me 200 status code pointing to the healthcheck endpoint. (So the LB is connecting without any problems to the targetgroup) Then after 15 minutes, the tasks are being drained and the deployment is never finished)

When I go to ECS and see the Containers for task X, the Health Status stays as Unknown forever

What could it be?

1 Answer
0

Hi, If I correctly understand your task are healthy before began the deployment. When you do the deployment the existing healthy tasks are been replaced with new ones that might have been some issue on starting the container. If the task are not able to start, the health check will keep display and unknown status as it didn't have time to gather the information on the new tasks. This could be the issue, but please provide more information to better understand the situation before and during the deployment. Please also have a look inside the Service into the "Deployment and Event" tab where you can find all the information related to your deployment and also some error logs with the issue that didn't allow you container to start

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions