chaos engineering

term

ops culturecloud

Kept in this browser · My desk

The discipline of experimenting on a distributed system in production to build confidence in its capability to withstand turbulent conditions, as Netflix's engineers defined it in 2016.

An experiment defines a steady state that users feel, such as Netflix's stream starts per second, hypothesizes that it holds in a control group and an experimental group, injects real-world faults into the experimental group and looks for a difference. The Principles of Chaos Engineering add running in production, automating experiments to run continuously and minimizing the blast radius. Netflix ran Chaos Monkey on weekdays in working hours and simulated the loss of an AWS region monthly with Chaos Kong; AWS and Microsoft now publish guidance and managed services for the practice.

Practice. Basiri and colleagues list the inputs Netflix used: terminated instances, injected latency, failed requests between services, failed internal services and a whole region made unavailable, simulated by redirecting traffic since Netflix could not take an AWS region offline. They justify production because a test environment never reproduces every aspect of the system. Safety. AWS asks for stop conditions on the metrics that represent steady state and turns successful experiments into automated regression tests; Microsoft treats the error budget as the investment available for fault injection, starts outside production and warns that fault injection in production can cause downtime. Limits. Google's SRE book publishes a test that blocked one database in a hundred and caused a wider outage, lengthened by a rollback that had not been tested, which is why rollback is tested before large experiments. Relation. Chaos Monkey is the tool that started it; game days and Google's DiRT are scheduled, human-centred versions.

Also known as: engenharia do caos, chaos experiment, steady-state hypothesis, chaos kong

← Back to C Back to the glossary