Dashboard
Courses
Problems
Badges
Theme
Sign inStart free
Courses/Reliability and Failure
Lesson 22 of 24

Chaos engineering and game days

Inject failures on purpose to find weaknesses before real incidents do.

15 min read

Test the failure paths

Failover code, retries, fallbacks and circuit breakers only run when something breaks, so they are the least exercised code in a system and the most likely to be wrong. Chaos engineering runs controlled experiments that inject failures so you find out whether those paths work while you are watching, rather than at 3 am. Netflix popularised the idea in 2011 with Chaos Monkey, which randomly terminated production instances to force every service to tolerate it.

The experiment loop

Treat chaos as science, not vandalism.

  • Define steady state with a business metric, for example orders per minute or successful plays
  • Form a hypothesis: if one cache node dies, p99 latency stays under 300 ms and no orders fail
  • Inject the fault: kill an instance, add 500 ms latency, drop 10% of packets, fill a disk, block a dependency
  • Compare against a control group and stop immediately if steady state degrades beyond a limit

Control the blast radius

Start in staging, then in production with a tiny scope: one instance, one percent of traffic, during business hours with the owning team present. Have an abort switch that removes the fault instantly. Expand only once the system handles the small version. The most valuable experiments target the failures that hurt most often: slow dependencies, zone loss, expired credentials and dependency exhaustion, not just clean crashes.

Game days

A game day is a scheduled exercise where a team simulates a large failure, such as losing a region or the primary database, and works through the response together. It tests people and runbooks as well as software: do alerts fire, do dashboards show the problem, does anyone know how to fail over? Each finding becomes a fix. The failure tests in SystCode's Feedback panel are a small version of this: each kills or slows one component and checks whether your design still meets the scenario.

Key takeaways

  • Failure-handling code is rarely exercised, so test it deliberately
  • Run chaos as experiments: steady state, hypothesis, fault injection, abort criteria
  • Start small and expand the blast radius only as confidence grows
  • Game days test alerts, runbooks and people as well as software

Sign in to track lessons and earn badges.

Safe deploys: canaries, blue/green and feature flagsIncident response basics

Coming up

Course: 0/24 lessons · 0/10 challenges0%

Build it on the canvas, pass the review (70+) and mark it complete to count it toward the course badge.

  1. 10/10Design a Stock Exchange Matching EngineDesign a replicated, fenced sequencer and matching engine that fails over without losing or reordering a single order.MAJORHardPRO
All 10 challenges →