首页 > 解决方案 > Fargate ThrottlingException Rate exceeded

问题描述

I am attempting to run 30 Fargate tasks at once and I am receiving "ThrottlingException: Rate exceeded".

In the ECS Service Limits, it mentions that the default limit for concurrent Fargate tasks is 50.

Am I being throttled for something other than the number of concurrent Fargate tasks? For example, is Fargate registering a container instance for each task; and thus I'm exceeding the container instance registration rate?

标签: amazon-web-servicesamazon-ecsaws-fargate

解决方案


我联系了 AWS 支持并得到以下答复:

ECS 的 run-task API 在启动 Fargate 任务时默认限制为 1 TPS,突发速率为 10。这意味着您最多可以每 10 秒启动 10 个任务。因此,我们建议 [您] 在启动任务时在 [您的] 端使用一些退避策略。或者,[您]可以使用 ECS create-service,在这种情况下,ECS 将确保所有任务在遵守节流率的同时及时运行。

本质上,虽然我可以同时运行 30 个任务,但由于 Fargate 任务的 run-task API 的限制,我无法同时启动所有 30 个任务。

截至 2018 年 11 月 7 日,AWS 文档中未提及此限制:https ://docs.aws.amazon.com/AmazonECS/latest/developerguide/service_limits.html


推荐阅读