Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add 関数の既知の問題修正:PutMetricAlarm operation (reached max retries: 4): Rate exceeded #3

Open
takaakikakei opened this issue Jul 16, 2022 · 0 comments

Comments

@takaakikakei
Copy link
Owner

takaakikakei commented Jul 16, 2022

事象

対象のLambda関数が多すぎる場合、以下のエラーが発生する場合がある。

"errorMessage": "An error occurred (Throttling) when calling the PutMetricAlarm operation (reached max retries: 4): Rate exceeded",
"errorType": "ClientError",

原因

以下の CloudWatch service quotas に抵触しているため。

CloudWatch service quotas
PutMetricAlarm request
3 TPS per Region. The maximum number of operation requests you can make per second without being throttled.

https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_limits.html

暫定対応

以下のいずれかで回避可能。

  • エラーが出ても何度かリトライして、全ての Lambda 関数にアラーム設定を追加しきる。
  • サポートケース起票して、上記 service quotas に関する緩和申請を出す。

恒久対応

  • PutMetricAlarm を呼び出す頻度を調整することで、service quotas に抵触しないようにすることを検討
@takaakikakei takaakikakei changed the title add 関数のバグ修正:PutMetricAlarm operation (reached max retries: 4): Rate exceeded add 関数の既知の問題修正:PutMetricAlarm operation (reached max retries: 4): Rate exceeded Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant