How to solve the ECS Error: You've reached the limit on the number of tasks you can run concurrently.

2

When I try to place the 3rd service (I already have 2 services in running) into my ECS service of a cluster, I got this error event:

(service xxx) was unable to place a task. Reason: You've reached the limit on the number of tasks you can run concurrently. For more information, see the Troubleshooting section of the Amazon ECS Developer Guide.

I have tried to use a bigger "Max running tasks"(600%) when deploying the service, but it didn't work.

I have googled, but still didn't figure out how to solve it.

What should I do? Thank you!

질문됨 2년 전7781회 조회
1개 답변
2

While this is not documented clearly, check out Service Quotas for both Fargate and ECS: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html.

Another solution that others have said worked (to activate a new region) is to launch an EC2 instance in the region to "activate" the region.

From previous questions, those 2 have typically fixed the issue since it seems that unactivated/new accounts may come with a limit of 2 tasks that can be run concurrently.

jsonc
답변함 2년 전
AWS
전문가
검토됨 2년 전
  • I tried to start EC2 instance in the region, chose medium size instance, left it running for almost one hour, but no change - I still get the limit of maximum 2 running tasks. While in the service quotas my Fargate On-Demand resource count is set to 100, which is far more than 2 :( Any other ideas?

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

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

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

관련 콘텐츠