跳至内容

使用 Parameter Store 时,如何防止出现提示 "Rate exceeded" 的 "ThrottlingException" 错误?

1 分钟阅读
0

我想排查使用 Parameter Store(AWS Systems Manager 的一项功能)时提示 "Rate exceeded" 的 "ThrottlingException" 错误消息。

简短描述

Parameter Store API 调用不能超过每个 AWS 账户和每个 AWS 区域允许的最大 API 请求率。允许的最大速率包括来自 AWS 命令行界面 (AWS CLI) 和 AWS 管理控制台的 API 调用。

如果 API 请求超过最大速率,则您可能会看到一条类似于以下示例之一的错误消息:

  • "An error occurred (ThrottlingException) when calling the GetParameters operation (reached max retries: 4): Rate exceeded"
  • "An error occurred (ThrottlingException) when calling the GetParameter operation (reached max retries: 4): Rate exceeded"
  • "An error occurred (ThrottlingException) when calling the GetParametersByPath operation (reached max retries: 4): Rate exceeded"
  • "An error occurred (ThrottlingException) when calling the DescribeParameters operation (reached max retries: 2): Rate exceeded"

解决方法

**注意:**如果您在运行 AWS CLI 命令时收到错误,请参阅 AWS CLI 错误故障排除。此外,请确保您使用的是最新版本的 AWS CLI

对错误进行故障排除

要防止出现包含 "Rate exceeded" 的 "ThrottlingException" 错误消息,请执行以下操作:

增加 Parameter Store 吞吐量

如果您在执行上述故障排除操作后仍收到 "Rate exceeded" 错误,请增加 Parameter Store 吞吐量。有关最大吞吐量默认值和最大配额的信息,请参阅 Parameter Store 服务配额

**重要事项:**当您增加吞吐量时,您的账户会产生费用。有关详细信息,请参阅 AWS Systems Manager 定价

相关信息

指数回退和抖动

Parameter Store 故障排除