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年前7666ビュー
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?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ