AWS Kinesis Outage 00:00:01 The router needs a map A producer has one new record for a Kinesis data stream. On November twenty-fifth, twenty twenty, streams in Northern Virginia began returning errors. The surprising part is what had just happened to the fleet that received the records. It had grown. Normally a front-end server accepts a request, looks up the shard that owns the data and routes the operation. Its local copy of the shard map saves a remote lookup. Missing that map is enough to make an otherwise healthy storage destination unreachable to this request. A front end learns metadata from other front ends. When the fleet grows, new members need that information. Existing members also discover more peers. The cost of membership changes for every machine already in the fleet. 00:00:48 More servers, more obligations Imagine four machines in a tiny mesh. Each has three neighbors. Count each pair once and there are six pairs in all. These small numbers illustrate the shape of the cost. They are not the size of Amazon's fleet. Add a fifth machine. It introduces four new pairs. Every original machine also needs resources to talk to the fifth. You gained one box to do useful work, but you increased the coordination burden on all five. In the actual system, a modest capacity addition pushed the number of threads required by these peer relationships beyond what the operating systems were configured to allow. Servers that hit the limit could not establish the connections they needed to maintain shard maps. 00:01:32 Why the first restart is slow Fleet membership knowledge spread over hours. Different front ends crossed the limit at different times. The gradual failure made it harder to associate a later service alarm with an earlier capacity change. Once engineers identified the limit, removing the extra capacity and restarting the remaining fleet were only part of the repair. A restarted server began without its local map. It had to learn enough from peers to serve traffic. If too many front ends restart together, many learners request the same information from too few healthy teachers. Engineers brought groups back gradually. A process running and a process ready to route a record were two different milestones. 00:02:13 The stream sits inside other services Kinesis supported other AWS services. For instance, CloudWatch used it in parts of its metrics and event processing. A stream disruption could therefore delay observations that people were trying to use to understand their own systems. Ask which operation actually depends on the stream. A product can keep some customer paths working while another path waits on event processing. A dependency diagram with one green or red color for the entire product throws that detail away. During a rehearsal, count front ends with an up-to-date map and successful end-to-end writes. A dashboard that shows only the number of live processes will celebrate too early. Record failures and observation delays deserve separate indicators. 00:02:58 Bound the price of joining A cell design partitions the front-end population into smaller groups. Inside each group, peer discovery stays bounded. A routing layer sends a request to the cell that owns it. The boundary only helps if placement and recovery also respect it. Contrast two expansions in the example. One adds a member to everybody's contact list. The other adds an independent cell and updates routing. Capacity can grow while the per-host coordination budget inside an existing cell stays predictable. Before approving the next expansion, rehearse a cold start under load. Measure threads per process, map-loading time and completed writes. Growing a fleet increases capacity only while there is enough coordination capacity left to use it.