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

service fails to start if AWS cloudwatch rate exceeded #1508

Open
rogozind opened this issue Nov 16, 2024 · 0 comments
Open

service fails to start if AWS cloudwatch rate exceeded #1508

rogozind opened this issue Nov 16, 2024 · 0 comments

Comments

@rogozind
Copy link

Scenario:

  • 100 servers running 30 containers each
  • docker configured to log to AWS CloudWatch
  • all servers rebooted at the same time to apply security patch

This created a very high load on AWS and it started to throttle the API calls. Services started to fail:

ERROR: for rms-core_1 Cannot start service rms-core: failed to create task for container: failed to initialize logging driver: failed to create Cloudwatch log stream: operation error CloudWatch Logs: CreateLogStream, exceeded maximum number of attempts, 3, https response error StatusCode: 400, RequestID: f9a0216c-0e95-437c-bd18-cd231f0ed054, api error ThrottlingException: Rate exceeded

After that the service stayed in the failed state and required manual restart.

Expected: docker keep retrying till it succeeds. Maybe with a fixed delay or maybe with exponential backoff.

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