AWS ECS randomly removed target group (ec2 instance)

0

I have an ECS service with daemon as type and today randomly the task count went from 2 (default) to 1, and haven't been able to fix it.

And the events tab is getting spammed with: service xyz updated computedDesiredCount for taskSet ecs-svc/0123 to 1.

(daemon service xyz) updated desired count to 2.

It goes from 1 to 2 to 1 to 2 again every 10 seconds. Does anyone have an idea how to fix this? I have tried forcing new deployments, but nothing.

In the deployments tab the ACTIVE status is running one task. And the PRIMARY has desired 1, but pending and running are 0 tasks.

kschaap
已提問 2 年前檢視次數 247 次
1 個回答
0

In my case ECS was trying to deploy an old image that was misconfigured. It was just a matter of time before my latest deploy took precedence. In my case, reviewing the logs of the containers is how I figured it out.

Also you can check the health check tab. If a health check condition cannot be met, then it will terminate containers not passing health checks.

已回答 10 個月前

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

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

回答問題指南