amazon-web-services - 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?
解决方案
我联系了 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
推荐阅读
- python - 我试图在同一个项目中为第二个应用程序使用基于类的视图,但是,更改没有通过?
- path - env.var 时在 Windows 10 的运行功能中启动了错误的文件。路径包含多个名称相似的文件
- python - Apache Airflow:如何动态触发多个 DAG?
- flutter - 在 Flutter 中添加 flutter_facebook_login 时出现 MissingPluginException
- typescript - Google Chrome 扩展程序 - 弹出窗口未显示且无法检查背景页面
- javascript - 使用 Router 的组件未显示在 Button 单击事件上
- git - 如何从 gitolite 获取远程存储库列表?
- scala - 在播放框架中的对象内调用 WSClient 的 Scala 类方法
- python - Scikit-learn 扩展的自定义 one-hot 编码矩阵 - 不是从数据集构建的
- vue.js - Vuetify 列表:从对象数组创建子菜单