Structuring chaos experimentation
The user is looking for guidance on a chaos experimentation program, focusing on steady-state metrics, blast radius, rollback, and a learnings backlog. They likely want a template or checklist that outlines how to design such a program.
I need to provide a clear structure, including examples, tables, defined roles, and governance. It’s essential to keep it concise yet informative, with recommended steps, sample definitions, and metrics.
I’ll mention safety practices and approval processes while crafting a playbook that includes templates for various forms.Mentioning chaos tools
I should consider mentioning some tools that can be useful for chaos experimentation, like Chaos Mesh, Gremlin, Litmus, and AWS FIS. However, I’m thinking these aren’t strictly necessary for the user’s request. It’s probably more important to focus on the main framework and guidance for the chaos program itself first. Including tools might be beneficial as supplementary information, but I want to keep my response streamlined and focused to serve the user best.
Below is a practical structure for a chaos experimentation program focused on four pillars: steady‑state metrics, blast radius, rollback, and a learnings backlog. Use it as a playbook + templates.
1) Steady‑state metrics (what “healthy” means)
1.1 Define steady state at 3 layers
A) Customer / product SLIs (primary gates)
- Availability (success rate), e.g.
2xx/3xx / total
- Latency (p50/p95/p99) per critical endpoint/user journey
- Error budget burn rate
- Core journey completion rate (checkout, login, search)
- Revenue-impacting metrics (orders/min, payment auth success)
B) Service SLIs (supporting gates)
- Dependency error rate (DB, cache, third-party)
- Queue lag, consumer lag, job success rate
- Saturation (CPU, memory, connection pools)
- Retry rate / timeouts / circuit breaker open rate
C) Operational health
- Pager volume / alert severity
- Autoscaling events, pod restarts, node unhealthy count
- “Time to detect” (TTD) and “time to mitigate” (TTM)
1.2 Steady-state selection rules
- Prefer user-perceived metrics as “stop conditions”.
- Must be observable in near real time (dashboards/alerts already exist).
- Define an evaluation window: e.g. baseline 15 min, experiment 15–30 min, recovery 15 min.
- Define acceptable deviation per metric (example thresholds):
- p95 latency: ≤ +15% from baseline for 5 minutes
- error rate: ≤ +0.5% absolute increase for 2 minutes
- checkout success: ≥ 99% of baseline
1.3 Steady-state scorecard template
| Metric | Baseline source | Threshold (abort) | Window | Owner |
|---|
| Checkout success rate | Grafana dashboard X | -1% from baseline | 2 min | Product/SRE |
| API p95 latency | APM | +15% | 5 min | SRE |
| DB connection pool saturation | DB metrics | >85% | 3 min | DB Eng |
2) Blast radius (how to keep it safe)
2.1 Blast radius dimensions
Control these explicitly in every experiment:
- Scope: service(s), endpoint(s), dependency, AZ/region, tenant/customer segment
- Population: % of pods/instances, % of traffic, single canary cell
- Time: maximum run time, time-of-day restrictions, maintenance windows
- Intensity: latency injected, packet loss %, CPU burn %, fault frequency
- Exit conditions: metric thresholds, manual stop, time limit
2.2 Progressive exposure model (recommended)
- Dev/staging (prove tooling + observability)
- Production “dark” (no customer impact: e.g., kill a standby, throttle non-critical worker)
- Canary cell (single AZ, 1–5% traffic, non-VIP tenants)
- Gradual increase (5% → 25% → 50% as confidence grows)
- Full-cell experiments (still usually not whole-region unless explicitly required)
2.3 Guardrails checklist (must-have)
- Hard time limit (auto-stop)
- Kill switch available to on-call
- Pre-approved allowlist of targets (apps/namespaces/accounts)
- Change freeze awareness (don’t run during incidents, launches)
- “One experiment at a time” per system boundary (avoid confounding variables)
2.4 Blast radius statement template
“This experiment affects service A in prod, limited to 1 AZ and 5% traffic for 20 minutes, injecting 200ms latency on calls to dependency B. It will auto-abort if checkout success drops >1% or p95 latency increases >15% for 5 minutes.”
3) Rollback (how you stop and recover)
Chaos work is only safe if rollback is pre-planned, tested, and fast.
3.1 Types of rollback to plan
A) Experiment stop (immediate)
- Disable fault injection / stop the chaos controller
- Revert toggles (feature flags, routing rules)
- Restore networking policies (iptables, service mesh faults)
B) System mitigation (if steady state breached)
- Scale up/down (increase replicas, restore HPA bounds)
- Fail over (DB replica promote, traffic shift)
- Shed load (rate limiting, degrade non-critical features)
- Roll back release (deploy previous version)
3.2 Rollback triggers (make them objective)
- Any primary SLI crosses abort threshold
- Alert severity P1/P2 fires
- Operator confidence: “unknown unknown” (manual stop allowed anytime)
- Time limit reached without stable recovery
3.3 Rollback runbook template (minimum)
- Stop steps (1–3 commands/buttons)
- Mitigation steps (ordered, with expected effect)
- Verification (what dashboards/alerts confirm recovery)
- Ownership (who executes vs who approves)
- Comms (Slack channel, status page criteria)
Example:
- Stop injection in tool (link)
- Restore traffic routing to 100% healthy pool
- Scale
service A to N replicas
- Verify: checkout success ≥ baseline-0.5% for 10 min; p95 latency back within +10%
4) Learnings backlog (how you turn experiments into resilience)
4.1 What to capture every time (even if “nothing happened”)
- Hypothesis vs outcome
- Which steady-state metrics moved (and why)
- Detection quality: did alerts fire? were dashboards clear?
- Mitigation effectiveness: what worked, what was slow/confusing
- Gaps discovered:
- Missing SLO/alerts
- Runbook incorrect/outdated
- Capacity/circuit breaker misconfig
- Dependency assumptions wrong
- Tooling limitations
4.2 Backlog structure (track to closure)
Use a lightweight ticket type: Resilience Finding.
Fields:
- Title, date, experiment link
- Severity (customer impact potential), confidence
- Category: Observability / Reliability / Performance / Process / Tooling
- Recommended action
- Owner + due date
- Verification plan (how you’ll prove it’s fixed)
- “Retest required” flag
Prioritization heuristic:
- P0: could cause outage or sustained data loss; no mitigation
- P1: likely incident amplifier; mitigation exists but slow/manual
- P2: quality-of-life, alert noise, minor automation
4.3 “Fix → Retest” loop
A chaos program matures when:
- Every high-severity finding has a ticket and owner within 24–48 hours
- Fixes are validated by re-running the same experiment (or a stronger one)
- Trend reporting exists: open findings by age/severity; mean time to close
Suggested operating cadence (minimal governance that works)
- Weekly: 1–2 low-risk experiments (canary blast radius)
- Monthly: review backlog + pick top 3 resilience fixes
- Quarterly: “game day” covering cross-team dependencies + runbook drills
- KPIs: % experiments with clear steady-state gates, % auto-abort capable, median rollback time, findings closure time
One-page experiment brief (copy/paste)
- Objective / hypothesis
- Steady-state metrics + abort thresholds
- Blast radius (scope, %, time, intensity)
- Pre-reqs (dashboards, alerts, on-call, freeze check)
- Rollback plan (stop + mitigation + verification)
- Execution log (timestamps)
- Results + learnings
- Backlog items created (links, owners)
If you share your environment (k8s vs VMs, cloud provider, service mesh, and top 2–3 critical user journeys), I can propose a concrete set of steady-state SLIs/SLO gates and 5–10 starter experiments with conservative blast radius and explicit rollback runbooks.