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.

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

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

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

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

관련 콘텐츠