Skip to content
IT glossary
DevOps and cloudUpdated December 3, 2026

Chaos engineering

Chaos Engineering

A way to test a system’s resilience by deliberately introducing a realistic failure under controlled conditions and measuring whether users can still do what they need to do.

What it is

Having three replicas tells you how a service is deployed. It does not tell you whether customers can still check out when one replica disappears. Chaos engineering turns that assumption into an experiment: introduce a plausible failure, observe what users experience, and compare the result with a prediction. The point is to learn how the system responds, not to cause the biggest outage possible.

What makes it an experiment?

  • Measure normal behavior. Pick an outcome that represents useful work, such as the order completion rate or the time it takes to process a payment. CPU usage and process health can help explain a result, but they do not tell you whether customers got what they needed.
  • Make a prediction. State the fault, the conditions, and the limits you expect the system to stay within. Decide how long to observe it and make sure you have enough traffic to interpret the result. If practical, compare affected traffic with a similar group that does not receive the fault.
  • Set guardrails before starting. Limit the blast radius: which instances, traffic, or environments can be affected? Assign someone to stop the experiment, define the conditions that trigger a stop, and verify that the fault can be removed promptly. A failed hypothesis and an emergency stop are different outcomes: you can miss a reliability target without crossing a safety limit.
  • Check recovery and follow up. Confirm that the system returns to normal after the fault is removed. Use metrics, logs, and traces to explain any surprising behavior, then rerun the scenario after a fix.

Example: losing a queue worker

A team pauses one worker in a staging environment while submitting jobs at a representative rate. The hypothesis is that the remaining workers will keep the oldest pending job under 30 seconds. Instead, the oldest job reaches 45 seconds, even though the queue is still accepting new work and the other workers look healthy. The experiment shows that accepting requests is not the same as completing them on time. The team checks whether it has enough spare processing capacity, adjusts it, and repeats the experiment at the same input rate.

Where it fits

SRE and platform teams use chaos experiments to check failover, fallback behavior, and recovery in distributed systems. Fault injection is the technique used to create the disturbance; it is only one part of the experiment. Load testing asks what happens as demand changes, while chaos engineering can ask what happens when a dependency fails at a given demand. The two can be combined. Production can reveal behavior that staging misses, but it is not a requirement. A successful run supports the hypothesis only under the conditions tested.

In an interview

If asked how you would test the loss of a service replica, start with what users should still be able to do. Then explain how you would limit the test, what would make you stop, and how you would tell whether the system had recovered. Naming a fault-injection tool is less useful than explaining what the experiment can show.