Trying to ensure ECS service only has one task running at a time

0

I have a container that I only ever want one instance of running at a time.

I have my ECS deployment configured to have minimum healthy during deploy to be 0%, and max healthy to be 100%, and desired tasks to be 1.

This was working great for a while, when deploying it would wait until the running task completely stopped, and then start a new one, but in the past couple weeks this changed. It shows as stopped in the console for several minutes before the process actually receives a SIGTERM.

As far as I can tell this seems to be a change on amazon's side, perhaps what I was doing was not an intended use-case? Is there a way to ensure there is ever only 1 instance of the task running even during deploy?

AdamB
질문됨 일 년 전593회 조회
1개 답변
0

Is your Service's schedulingStrategy set to REPLICA instead of DAEMON? Has your cluster's capacity changed?

profile picture
답변함 일 년 전
  • We are using FARGATE which looks like it does not support DAEMON.

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

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

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

관련 콘텐츠