在运行 AWS Batch 作业时,我如何解决“failed to initialize logging driver: failed to create Cloudwatch log stream status code: 400”错误?
上次更新时间:2020 年 1 月 29 日
我的 AWS Batch 作业失败,我收到以下错误消息:“CannotStartContainerError: Error response from daemon: failed to initialize logging driver: failed to create CloudWatch log stream: ThrottlingException: Rate exceeded status code: 400.” 如何解决此错误?
简短描述
此错误表示,您已达到 Amazon CloudWatch 的 API 限制,且您的 CreateLogStream API 调用受 CloudWatch 限制。在以下情况下,您可能会收到此错误:
- 使用 AWS 命令行界面 (AWS CLI) 或开发工具包以编程方式同时提交多个作业
- 使用 AWS Lambda 提交作业
解决方法
请考虑以下解决方案: