Regional Failover: Making "A Region Is Down" an Operation, Not an Incident

Why / The Problem

The Hystrix part contains a bad dependency; the EVCache part survives a bad node or AZ. Neither helps when a whole AWS region degrades (provider control-plane failure, bad regional deploy, network event) — the bulkheads are inside the region too.

The classic answer, a warm standby, has well-known failure modes:

Active–passive (warm standby)Active–active
Correctness unproven — only runs during a disasterEvery region serves real traffic, so it's proven every second
Capacity is a guess, tested once, at the worst momentHeadroom exercised routinely; evacuation drills prove it
Failover is rare, high-stress, poorly rehearsedFailover is routine: runbook and stopwatch
Standby cost is pure insuranceRedundancy serves real traffic, so it pays partial rent
Config drift accumulates unseenDrift is caught immediately

A standby you never use is a hypothesis, not a capability. Active-active is the Chaos engineering part’s chaos engineering at region scale: don't reason about whether failover works — make it continuously demonstrated.

How It Works

Netflix went multi-region active-active around 2013, running across three AWS regions by roughly 2016. Every region runs the full stack; Cassandra replicates across regions asynchronously, and so does the cache tier, so a region receiving evacuated traffic doesn't start cold.

Active-active steady state. Members worldwide reach one global traffic-steering layer, DNS plus edge routing, which sticky-routes each member to one region so read-your-writes holds for them in the normal case. It sends roughly a third of members to each of three live regions. The three regions are drawn identically, because they are identical: there is no primary and no standby. Each one contains the full service stack of about 700 services serving real traffic, an EVCache tier that serves its own members and is replicated to the other regions asynchronously through a relay pipeline, and a Cassandra ring that uses LOCAL_QUORUM inside the region and accepts writes. Below them, one dashed replication line joins all three regions: Cassandra and EVCache replicate asynchronously, both ways, between every pair of regions. What crosses between regions is Cassandra data, asynchronously, and EVCache data via a relay pipeline; LOCAL_QUORUM stays inside a single region and neither replication path is ever on the request path. Because every region was already accepting writes for every member, evacuating one is a routing change rather than a database operation: nothing has to be promoted, you just stop sending requests to it.
Active-active steady state — every region is serving real traffic right now. Active-active answers “does the other region work?” every second of every day — not once, at the worst possible moment.
  1. Detect and decide. The trigger is a customer-facing metric (the Chaos engineering part’s SPS), not a component alarm — "region unhealthy" is a conclusion about members, not instances. A human decides, on a runbook, with the metric as evidence.
  2. Scale up the receiving regions first. They must absorb the evacuated share on top of their own. Scaling before steering is the difference between a controlled evacuation and a cascading one — which is why headroom planning is part of the design.
  3. Steer traffic away. Global routing stops sending new sessions to the bad region. Active streams are mostly unaffected (the One press of Play part: the data plane is in the ISP), so the race is to fix new session starts, not rescue playback.
  4. Let caches warm; watch the datastore. Receiving regions' caches are mostly warm thanks to cross-region replication, but it is asynchronous and best-effort — dropped sends, relay lag and invalidation-only caches leave gaps, and those misses land on Cassandra just as load jumps. Unlike an AZ loss (see EVCache), where every zone holds a synchronously written full copy, the region copy is only as warm as the pipeline kept it. The most fragile moment.
  5. Rehearse it, repeatedly. Chaos Kong runs the whole procedure in production with no real outage; Netflix has described cutting evacuation time substantially this way.
Evacuating a region, in the order it actually happens. Five numbered steps run top to bottom down a time spine; the left column is the operation and the right column is what the member sees. Step 1, detect and decide: SPS falls for members in region 1 — a customer metric, not a component alarm — and a human decides on a runbook; the member sees nothing yet, only the metric has moved. Step 2, scale the receivers first: grow regions 2 and 3 before steering, because discovering the shortfall afterwards is the difference between a controlled evacuation and a cascading one; the member still sees nothing, because no traffic has been steered. Step 3, steer traffic away: global routing stops sending new sessions to region 1, and the evacuation is racing to fix new session starts rather than to rescue active playback, which buys real time; a member already streaming sees nothing, because the manifest, licence and OCA list are on the device and the bytes come from an appliance in their own ISP. Step 4, ride the spike, the fragile part: a sudden load jump lands on the receiving regions; their caches are mostly warm because EVCache replicates cross-region, but best-effort gaps and invalidation-only caches still push a burst of misses to Cassandra; a member starting something new sees elevated errors and slower pages, with breakers failing fast to generic rows so pages render degraded. Step 5, settle: caches warm, capacity catches up, personalisation returns, and the member is back to normal. Steps 3 and 4 are bracketed as the stopwatch window — the width the drill exists to drive down. The order is exact but the spacing is not to scale. Chaos Kong rehearses this entire procedure against real production with no actual outage, because the only reliable way to make a rare procedure fast is to stop letting it be rare, and the guarantee is that the degraded window is short and known, not that nobody notices it.
Evacuating a region, in the order it actually happens. Evacuation is a rehearsed operation with a stopwatch on it (Chaos Kong, the Chaos engineering part) — the only way to make a rare procedure fast is to stop letting it be rare.

The Invariants

  • Guarantees: Region failure is a rehearsed traffic-steering operation with a known duration, onto regions demonstrably serving real traffic right now.
  • Does not guarantee: A seamless evacuation. There's a real window of elevated errors and cold-cache database load; the guarantee is that it's bounded and rehearsed, not invisible.