Skip to content

service fails to start if AWS cloudwatch rate exceeded #1508

Open

Description

@rogozind

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.

Activity

  1. ohshazbot commented on Nov 9, 2026

    @ohshazbot

    Similar situation also occurs if the host system does not currently have network connectivity to logs..amazonaws.com. Was quite surprised to have the services just failed out instead of being occasionally retried until success

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions