Pidoku

Archive

This learning material is in the archive. It is not currently maintained and has not been updated with the latest information, so tool versions, prices and dates may be out of date.

Game Days and DR Tests

Module 10 Lesson 10.c 40 min Difficulty 2/5

Prerequisites 10.a, 5.b

The idea in one minute#

Systems are only half of incident response; the other half is people: whether the on-call engineer can find the dashboard, whether the runbook is right, whether the failover credentials work, whether anyone knows who to call at the database vendor. Game days rehearse that deliberately: a planned session where a team injects a realistic failure (in staging or production) and responds to it as if it were real, with observers taking notes.

Two lighter formats exercise people without touching systems: the tabletop exercise (talk through a scenario around a table) and the wheel of misfortune (one person plays the system, another plays on-call, using a past incident). The heaviest format is the disaster recovery test: actually failing over a database, a region or a key person, the way Google’s annual DiRT exercises do.

An analogy#

A fire drill. Nobody learns to evacuate a building by reading the plan; they learn by walking the route with the alarm going off, discovering on the way that one exit is locked.

A picture#

flowchart LR
  T[":i-message-square: <b>Tabletop</b><br/><small>talk it through; 1 h; no systems</small>"] --> W[":i-users: <b>Wheel of misfortune</b><br/><small>role-play a past incident</small>"]
  W --> G[":i-flask-conical: <b>Game day</b><br/><small>real fault, staging → prod</small>"]
  G --> DR[":i-siren: <b>DR test</b><br/><small>real failover, real people</small>"]
  class T neutral
  class W queue
  class G compute
  class DR warn

How it really works#

Tabletop exercise#

  • 60–90 minutes, a facilitator, the people who would respond (engineers, IC, comms, support, sometimes legal and executives).
  • A scenario revealed in stages (“09:12 — probes fail in two regions…”, “09:20 — a customer tweets…”). At each stage: what do you do, who do you call, what do you say?
  • Output: gaps in the plan, unclear ownership, missing access, unanswered questions.

Good for: security incidents, region loss, vendor loss, data breaches — where a real test is too expensive or dangerous.

Wheel of misfortune#

From the Google SRE book: take a real past incident. One experienced engineer is the game master who knows what happened and plays the system (“you run kubectl get pods — you see three pods in CrashLoopBackOff”). A newer engineer is on call and works the problem out loud, using real dashboards and runbooks where possible. Others watch. Afterwards, discuss: what did they check first, where did the runbook help, what was confusing?

It is the best on-call training there is: cheap, safe, realistic, and it tests the runbooks (4.b). Run one every few weeks; let everyone take a turn.

Game day#

Before:

  1. Objective and hypothesis: “Losing zone A’s checkout pods keeps checkout within SLO; on-call is paged only by the expected alert; the runbook’s drain step works.”
  2. Scope and blast radius: staging first; in production, one zone, business hours, a time-box.
  3. Roles: facilitator, injector, responders (who may or may not know the scenario), observers and note-takers, a “safety officer” who can stop it.
  4. Abort criteria and rollback written down.
  5. Tell people: stakeholders, support, other on-calls, the incident channel.

During: inject; responders respond as if real (declare an incident if the playbook says so); observers record times and confusion; the safety officer watches the abort criteria.

After: a postmortem-style review (5.c) — even if everything went well — with action items. Typical findings: alerts that did not fire, dashboards that misled, runbook steps that were wrong, access that had expired, capacity that was not there.

DR tests#

The real thing, scheduled: fail over the primary database, evacuate a region, restore from backup into production-like infrastructure, revoke a key person’s access for a day (“the only person who knows the DNS registrar password is on a plane”). Google’s DiRT programme has run company-wide exercises of this kind every year since 2006, including simulated earthquakes taking out a headquarters campus.

Measure: time to detect, decide, fail over, restore; data lost (actual RPO); and everything that needed a human who was not in the plan.

Make it routine#

ExerciseCadence (suggested)
Wheel of misfortuneEvery 2–4 weeks per team
Tabletop (security, region, vendor)Quarterly
Game day per critical serviceQuarterly
Database failover in productionMonthly to quarterly (managed services make this easy)
Full DR test (region evacuation or restore)Yearly, at least

A worked example#

A game day plan for the orders service, and what it found:

Game day GD-17 — orders: primary database failover in production
Date:            Tue 2026-11-10, 10:00–11:00 UTC (low traffic, whole team in)
Hypothesis:      Managed failover completes in < 120 s; orders API error budget burn stays
                 below the page threshold; replicas re-attach within 2 min; no data loss.
Injector:        Sam (triggers "reboot with failover" in the console)
Responders:      on-call (Priya) — told only "a game day is running today"
Safety officer:  Lee. Abort: errors > 5% for 3 min → stop, follow DB playbook.
Observers:       2, timing every step.

Results:
10:02:00  failover triggered
10:02:47  new primary accepting writes (47 s)                                    ✓
10:02:50  app errors spike: 31% for 40 s — connection pool holds dead connections ✗
10:03:30  errors back to baseline after pool health checks evict dead connections
10:04:10  read replicas re-attached; one lagged 90 s, still in read rotation      ✗
10:05:00  page fired: OrdersErrorBudgetBurnFast — correct alert, runbook link OK  ✓
10:09:00  on-call identifies cause from the runbook                                ✓

Action items:
- Set the pool's max connection lifetime and test-on-borrow; retry idempotent writes on
  connection errors (P1)
- Remove replicas with lag > 5 s from read rotation automatically (P1, see 9.c)
- Repeat monthly

Nothing was learned about databases that the team did not know in theory. Two things were learned about their system that they did not know in practice — which is the point.

Code#

A wheel-of-misfortune helper: given an incident’s facts, it plays the “system” by answering the commands the on-call engineer types, and records the order of checks for the debrief. This version replays a scripted session so it runs offline; give it an interactive bufio.Scanner over os.Stdin to play live.

Go
// wheel.go — a tiny game master for a wheel-of-misfortune session.
package main

import (
	"fmt"
	"strings"
	"time"
)

type scenario struct {
	title   string
	answers map[string]string // command prefix → what the "system" shows
	cause   string
	fixes   []string
}

func main() {
	sc := scenario{
		title: "INC-1984 replay: checkout 503s at 14:05",
		answers: map[string]string{
			"dashboard":               "Checkout SLO: error ratio 8% since 14:03, all regions. Latency normal for successes.",
			"kubectl get pods":        "checkout-…  12/12 Running, 0 restarts.",
			"kubectl rollout history": "REVISION 41 (yesterday), 42 (today 14:01, image checkout:2026.10.24-1)",
			"logs":                    "ERROR upstream=payments status=503 msg=\"invalid API version header\"",
			"what changed":            "14:01 deploy checkout rev 42. 13:30 flag 'payments-api-v3' enabled 100%.",
			"kubectl rollout undo":    "Rolled back to rev 41. Error ratio still 8%.",
			"flag off":                "Flag 'payments-api-v3' disabled. Error ratio falls to 0.05% within 1 minute.",
		},
		cause: "flag payments-api-v3 sent a header the payments provider rejects for 8% of merchants",
		fixes: []string{"flag off"},
	}

	// A scripted session (in a live session these come from the trainee).
	session := []string{"dashboard", "what changed", "kubectl rollout undo", "logs", "flag off"}

	fmt.Println("── " + sc.title + " ──")
	start := time.Date(2026, 10, 24, 14, 6, 0, 0, time.UTC)
	var trail []string
	mitigated := false
	for i, cmd := range session {
		at := start.Add(time.Duration(i*2) * time.Minute)
		answer := "(nothing useful)"
		for prefix, a := range sc.answers {
			if strings.HasPrefix(cmd, prefix) {
				answer = a
			}
		}
		fmt.Printf("%s  on-call> %s\n         system: %s\n", at.Format("15:04"), cmd, answer)
		trail = append(trail, cmd)
		for _, f := range sc.fixes {
			if strings.HasPrefix(cmd, f) {
				mitigated = true
			}
		}
		if mitigated {
			fmt.Printf("\nMitigated after %d minutes and %d steps.\n", i*2, i+1)
			break
		}
	}
	fmt.Println("\nDebrief prompts:")
	fmt.Println("  - The rollback did not help. What would have pointed at the flag sooner?")
	fmt.Printf("  - Actual cause: %s.\n", sc.cause)
	fmt.Printf("  - Order of checks: %s\n", strings.Join(trail, " → "))
	fmt.Println("  - Does the runbook mention flags in 'what changed'? (4.c says it should.)")
}

Remember this#

  • Rehearse people as well as systems: tabletop, wheel of misfortune, game day, DR test.
  • Game days have a hypothesis, a blast radius, roles (including a safety officer), abort criteria, and a review with action items.
  • The wheel of misfortune is the cheapest, best on-call training: run it every few weeks.
  • DR tests measure real RTO and RPO and find what the plan forgot — test at least yearly.

Try it#

  1. Run wheel.go. Write a scenario from an incident you remember and replay it with a colleague.
  2. Plan a 60-minute tabletop for “our cloud region is unavailable for six hours”.
  3. Write the plan for a production database failover game day using the template above.

Check yourself#

  1. How does a wheel of misfortune differ from a game day?
  2. What is the safety officer’s job?
  3. Why review a game day even when everything went well?
  4. Name two DR tests that involve people rather than machines.

Sources#

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in