Chaos Experimentation Program: A Sherlockian Framework
Elementary, my dear experimenter. You've outlined the pillars of a robust Chaos Experimentation Program—deliberate fault injection to validate system resilience, à la the Netflix Chaos Monkey ethos. I'll deduce and architect a complete, actionable program around your specified components: steady-state metrics, blast radius, rollback, and learnings backlog. This framework ensures controlled chaos yields probabilistic insights without systemic Armageddon.
Think of it as a detective's case file: hypothesize (steady-state), probe (blast radius), retreat (rollback), and archive (learnings). I'll break it down into program phases, templates, and best practices, with executable examples for cloud-native setups (e.g., Kubernetes via Chaos Mesh or Litmus).
1. Program Governance & Setup
2. Steady-State Metrics: The Baseline Hypothesis
- Definition: Golden signals (latency, traffic, errors, saturation) + business KPIs. Alert if deviation > threshold (e.g., 2σ).
- Template (PromQL for Prometheus):
# HTTP Steady-State
http_requests_total{status="200"} / http_requests_total > 0.995 # 99.5% success
histogram_quantile(0.99, http_request_duration_seconds_bucket) < 0.2 # p99 < 200ms
# Infra Steady-State
(sum(rate(container_cpu_usage_seconds_total[5m])) by (pod)) / sum(kube_pod_container_resource_limits{resource="cpu"}) < 0.8
- Best Practice: Run 1h baseline in prod-like env. Use SLOs (e.g., 99.99% over 28d).
3. Blast Radius: Controlled Detonation
4. Rollback: The Escape Hatch
5. Learnings Backlog: The Case Closed
6. Program Rollout & Metrics
- Cadence: 1-2 experiments/week per team. Game days quarterly.
- Success KPIs:
| Metric | Target |
|---|
| Steady-State Violation Rate | <5% |
| Mean Blast Radius | <20% |
| Rollback Success | 100% |
| Learnings Closed/Mo | >80% |
- Risks & Mitigations:
- Uncontrolled blast → Dual-run in non-prod.
- No learnings → Mandatory templates.
This program turns chaos into clairvoyance—predict failures before they felony. Got a specific fault (e.g., AWS EBS detach) or env (e.g., AWS/GCP)? Provide clues, and I'll hypothesize the next experiment. The game is afoot! 🕵️♂️