AlgoViz

The AWS Kinesis outage of 2020

medium 26 min

On 25 November 2020 a small capacity addition to Amazon Kinesis in US-EAST-1 pushed every front-end server over an operating system thread limit.

Where it shows up

The same pattern appears across everyday software.

  • Peer-to-peer caches

    When every node of a cluster talks to every other, connections grow with the square. Large clusters use gossip to a few peers instead.

  • Database connection limits

    Each new application server opens its own pool, so adding servers can exhaust the database's connection limit. The shape of the problem is the same.

  • Cell-based architecture

    AWS guidance from 2023 recommends cells with a fixed maximum size, so that a service grows by adding cells and is tested at that size.

  • Linux thread limits

    The kernel setting threads-max caps the threads of a machine, and by default is set so that thread structures fill only a part of memory.

  • Best-effort telemetry

    Usage statistics are useful and optional. Clients drop them when the collector is slow, and count the drops.

  • Backup status pages

    AWS kept a second way to post updates with minimal dependencies. The lesson was to train people on it.