In this post
How is an experiment structured?
The Principles of Chaos Engineering describe it: define steady state as a measurable output of normal behaviour, hypothesise that it will continue during the failure, introduce the failure, and look for a difference between the experimental group and a control group. A difference means you have found a weakness to fix.
Is it safe to run in production?
It can be, once you have practised elsewhere, have good monitoring and can stop the experiment at once. Keep the blast radius small, such as one instance or a small share of traffic, and expand only as confidence grows. Many teams start in staging and with scheduled game days, where people watch the experiment together.
What should you test first?
The failures you already expect and have built protections for: an instance dying behind a load balancer, a dependency timing out behind a circuit breaker, a failover to a replica. If those protections do not work, nothing more ambitious will.
What do you need before you start?
Observability good enough to see the steady state and any change in it, SLOs to tell you what matters to users, a runbook for stopping the experiment, and agreement from the people who own the system and will be on call.
What do you do with the results?
Treat a failed hypothesis like an incident found early: write it up, fix the weakness, and re-run the experiment to confirm the fix. Experiments that pass can be automated and run regularly, so protections keep working as the system changes.
Sources and further reading
- Principles of Chaos Engineering. principlesofchaos.org.
- Basiri, A. et al. Chaos Engineering. IEEE Software, 33(3), 2016.
- Rosenthal, C. and Jones, N. Chaos Engineering: System Resiliency in Practice. O’Reilly, 2020.
Go deeper: CSTP™ credential · the TPBOK™ standard · Check your experience
IICTP is an independent technical credentialing body.