Chaos Engineering Explained: Testing Resilience on Purpose
What chaos engineering is, steady-state hypotheses, blast radius, game days, tools like Chaos Mesh and LitmusChaos, and running safe experiments in productio...
Published December 4, 2026
Every distributed system fails in ways nobody designed for: a dependency becomes slow instead of down, a zone loses network, a retry storm amplifies a small blip into an outage. Chaos engineering finds these weaknesses deliberately, through controlled experiments, before they find you at 3 a.m.
The concept
An experiment starts with a steady-state hypothesis expressed in user-facing metrics: "checkout success rate stays above 99% and p95 latency under 800 ms." You then inject a realistic fault (kill pods, add latency to a dependency, drop packets, exhaust CPU, fail a zone) into a limited blast radius, observe whether the steady state holds, and stop immediately if it does not.
Start small: in staging, with one service, during working hours, with an abort switch. Game days, scheduled sessions where a team runs experiments together, are a great way to practice incident response and validate runbooks. Mature teams automate experiments in production with tight blast radius and automatic rollback.
How an experiment works
- Define steady state with user-facing metrics
- Form a hypothesis ("system tolerates loss of one zone")
- Inject a fault with limited blast radius
- Observe metrics and alerts; abort if thresholds breach
- Fix weaknesses found; repeat and automate
Common experiments
| Fault | What it reveals | Tool examples |
|---|---|---|
| Pod / instance termination | Restart behaviour, PDBs, readiness | Chaos Mesh, LitmusChaos, kubectl |
| Added latency to a dependency | Timeouts, retries, circuit breakers | Toxiproxy, Chaos Mesh NetworkChaos |
| Packet loss / partition | Failover, split-brain handling | tc netem, Chaos Mesh |
| CPU / memory stress | Autoscaling, throttling, OOM behaviour | stress-ng, LitmusChaos |
| Zone or region outage | Multi-AZ design, DNS failover | Cloud fault injection services |
Example: slow dependency
Practical examples
Chaos Mesh: add latency to a service
Targets pods by label in one namespace.
apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata: { name: payments-latency, namespace: shop }
spec:
action: delay
mode: all
selector: { namespaces: [shop], labelSelectors: { app: payments } }
delay: { latency: "2s", jitter: "200ms" }
duration: "5m"Simple pod-kill experiment
Verify replicas, readiness and PDBs keep the service up.
kubectl delete pod -n shop -l app=api --field-selector=status.phase=Running --wait=false | head -1
watch -n2 'kubectl get pods -n shop -l app=api'Local latency injection with Toxiproxy
Test client timeouts during development.
toxiproxy-cli create -l localhost:26379 -u localhost:6379 redis
toxiproxy-cli toxic add -t latency -a latency=1500 redisCommon mistakes
- Running experiments without a defined steady state or abort conditions.
- Starting in production with a large blast radius.
- Not telling stakeholders and on-call before a game day.
- Finding weaknesses but never fixing them.
Key takeaways
- Chaos engineering tests resilience with controlled experiments.
- Define steady state in user-facing metrics and keep an abort switch.
- Start small, then automate with tight blast radius.
- The value is in fixing what experiments reveal.
FAQ
Is chaos engineering only for big companies?
No. Even small teams benefit from killing a pod or adding latency in staging to validate timeouts and retries.
Is it safe to run in production?
With careful blast-radius limits, monitoring and automatic abort, yes; that is where real behaviour is observed.
What is a game day?
A planned session where a team runs failure scenarios together, practising detection, response and runbooks.