Skip to content
Careersadvanced

What is chaos engineering?

Updated Nov 30, 20263 min readBased on official documentation
What is chaos engineering?

In short

Chaos engineering is the practice of running controlled experiments on a system to find hidden weaknesses before they cause outages. Instead of waiting for failures, teams break parts of a system on purpose and watch how it behaves. The goal is to build confidence that the system can handle turbulent conditions in production.

Why distributed systems need it

Modern systems are often split into many small services that talk to each other over a network. Each service can work correctly on its own, yet the interactions between them can still produce surprising results. Add rare real-world events, such as a server dying or a traffic spike, and the whole system becomes hard to predict.

The Principles of Chaos project describes the typical weaknesses this approach targets. These include fallback settings that do not work when a service is unavailable, retry storms caused by poorly tuned timeouts, outages when a downstream dependency receives too much traffic, and cascading failures that start from a single point of failure. The idea is to find these problems while they are still small, instead of learning about them from customers.

How the experiments work

Chaos engineering treats each test as a scientific experiment. The documentation describes four steps:

  • Define steady state: pick a measurable output that shows normal behavior, such as throughput or error rate.
  • Form a hypothesis: predict that the steady state will stay the same in both a control group and an experimental group.
  • Introduce variables: inject realistic faults, such as crashed servers, failing disks or severed network connections.
  • Try to disprove the hypothesis: look for a difference in steady state between the two groups.

If the steady state holds, the system has passed that test, and confidence grows. If it breaks, the team has found a concrete weakness to fix before the same behavior shows up across the whole system.

The advanced principles

The documentation lists several principles for doing this well. Teams that follow them more closely tend to get more confidence from their results.

First, build the hypothesis around steady state rather than internal details. Measure what the system outputs, such as latency percentiles or error rates, and check that it still does its job. You are verifying that the system works, not trying to explain every internal step.

Second, vary real-world events. Rank events by their likely impact or how often they happen. Hardware failures, malformed responses and sudden scaling events are all good candidates.

Third, run experiments in production when possible. The source argues that real traffic is the only reliable way to capture how requests really flow, since behavior changes with the environment and load.

Fourth, automate experiments and run them continuously. Running them by hand is slow and hard to sustain.

Finally, minimize the blast radius. Some short-term impact may be accepted, but the engineer running the experiment is responsible for keeping any harm small and contained.

When to use it

Chaos engineering makes most sense for systems where many services depend on each other and where downtime is costly. If your system is a single small application on one server, the effort may not pay off. Before starting, make sure you already have good monitoring, so you can actually measure steady state and notice when it changes. Teams also need clear rules for stopping an experiment quickly if customers are affected.

Common mistakes

A common mistake is choosing a steady state that is too vague to measure. Another is running experiments without a plan to stop them, which can turn a test into a real incident. Teams also sometimes run experiments only once. The approach works best when experiments are repeated and automated, so that regressions are caught as the system changes.

Chaos engineering complements other reliability work rather than replacing it. Load testing checks how a system behaves under heavy traffic. Failure testing in a staging environment checks known scenarios in a safer setting. Chaos engineering adds the element of unplanned, controlled disruption to find problems you did not expect. For background on the systems involved, read more about the Principles of Chaos at the official site.

FAQ

Is chaos engineering the same as randomly breaking servers?

No. Each experiment starts with a defined steady state and a hypothesis. Faults are introduced on purpose, and the result is measured against that hypothesis.

Do I have to run chaos experiments in production?

The principles prefer production because real traffic reveals real request paths. Teams often start in lower-risk environments and move toward production as their controls improve.

What does steady state mean?

It is a measurable output that shows normal behavior, such as throughput, error rates or latency. If that output stays stable during an experiment, the system is handling the disruption well.

What is blast radius?

Blast radius is the amount of impact an experiment can have on users and systems. Keeping it small is a core responsibility when experimenting on live systems.

Sources

This page is based on the official documentation below. Read it for full detail.

Chaos engineering — official documentation ↗
blozhikDeveloper news from across the web, explained. Every story links to its original sources.