Chaos Exercise Cadence
A chaos exercise cadence is a structured, repeatable schedule for injecting controlled failures into your production (or staging) environment to validate system resilience. It follows chaos engineering principles: define a steady-state hypothesis, inject faults with blast radius caps (to minimize risk), observe impacts, and capture learnings for iteration.
Key Guidelines
- Frequency: Bi-weekly (e.g., every other Tuesday, 2-hour window during low-traffic hours like 2-4 AM UTC).
- Environment: Start in staging; graduate to prod with approvals.
- Tools: Use Chaos Mesh (Kubernetes-native), LitmusChaos, or Gremlin for injections.
- Process:
- Pre-exercise: Announce 48h in advance via Slack/ PagerDuty.
- Run: 30-60 min injection + observation.
- Post: Retrospective (15 min) + report in shared doc.
- Blast Radius Philosophy: Always cap at <5% of traffic/pods/resources; rollback on alert breaches.
- Success Metric: Steady-state restored within SLO (e.g., 99% uptime in 5 min).
- Team: Chaos Captain (rotates), Observability Squad, On-Call.
4-Week Repeating Cadence
Progress from simple (infra) to complex (app/business logic). Rotate services quarterly (e.g., Week 1: Auth service; Week 2: Payments).
| Week | Exercise Name | Injection | Blast Radius Cap | Steady-State Hypothesis | Expected Learnings | Rollback Triggers |
|---|
| 1 | Pod Eviction | - Kill 1 pod per replica set (Chaos Mesh pod-chaos).- Target: Stateless services (e.g., API gateways). | - ≤10% of pods per namespace.- 1 namespace only.- No stateful sets/DBs. | Deployment scales out; traffic routes seamlessly; recovery <2 min. | - Horizontal Pod Autoscaler (HPA) responsiveness.- Readiness probe tuning.- Leader election in replicas. | - CPU/Mem >90th percentile alert.- Error rate >1%. |
| 2 | Network Latency | - Inject 500-2000ms latency on 20% of outbound traffic (tc-netem or Chaos Mesh network-chaos).- Target: Inter-service calls (e.g., API → Cache). | - ≤5% of total ingress traffic.- Single AZ/region.- Exclude critical paths (e.g., checkout). | Timeouts/circuit breakers activate; fallback to caches succeeds. | - Timeout configs (e.g., Istio/Envoy).- Circuit breaker efficacy (e.g., resilience4j).- Queue backlogs (Kafka/RabbitMQ). | - Latency P99 >5s.- Throughput drop >10%. |
| 3 | Resource Stress | - CPU throttle to 90% + Mem leak (1GB ramp-up; Chaos Mesh stress-chaos).- Target: Compute-heavy services (e.g., ML inference). | - ≤3 nodes/VMs.- 2% of cluster capacity.- Shadow traffic only. | OOMKills trigger; autoscaler evicts; no cascading failures. | - Resource quotas/limits enforcement.- Vertical Pod Autoscaler (VPA) signals.- Node drain/eviction policies. | - Cluster CPU >80% avg.- Pod failures >5%. |
| 4 | Dependency Failure | - Block 30% traffic to external dep (e.g., AWS S3; Chaos Mesh http-chaos or AWS fault injection). OR- DB read replica failure (kill queries). | - ≤2% end-user traffic.- Failover to secondary region.- Graceful degradation mode. | Feature flags route to mocks/stubs; offline queueing works. | - External dep resilience (e.g., retries, backoffs).- Caching layers (Redis TTLs).- Business impact of degradation. | - Synthetic user error rate >2%.- Revenue SLO breach. |
Quarterly Escalations
- Q1 Ramp: Double blast radius (e.g., 20% pods) on passing exercises.
- Q2 Multi-Fault: Combine 2 injections (e.g., Pod Kill + Latency).
- Q3 Game Days: Full-team sim with "unknown" faults; invite execs.
- Q4 Audit: Review all learnings; update runbooks/SLOs.
Learnings Capture Template
Use a shared Notion/Google Doc per exercise:
**Exercise**: [Name] | **Date**: [YYYY-MM-DD] | **Duration**: [X min]
- Hypothesis: [State]
- Metrics (Grafana screenshots): Error %, Latency P95, Throughput.
- Anomalies: [List]
- Root Causes: [e.g., "HPA minReplicas too low → Fixed to 3."]
- Actions: [Jira tickets, e.g., "Tune Istio timeouts."]
- Confidence Score: [1-10] | Retrospective Notes: [Blame-free feedback.]
Getting Started Checklist
- ✅ Instrument observability (Prometheus + Grafana dashboards for chaos metrics).
- ✅ Define global SLOs (e.g., 99.9% availability).
- ✅ Get buy-in: Present to Eng Leads with Netflix Chaos Monkey case studies.
- ✅ Pilot: Run Week 1 in staging this week.
- ✅ Automate: GitOps for experiment YAMLs.
This cadence builds antifragility iteratively. Track progress via "Chaos Score" (% exercises passing hypothesis). Ping me for customizations (e.g., AWS-specific or serverless)! 🕵️♂️