Run a search
- Open any design and press Can you break it? in the top bar, or press F.
- Under What has to hold, pick a goal and adjust its number if you like.
- Open What can go wrong to choose which kinds of fault it may use, and which parts to leave alone.
- Press Try to break it.
The goals
Which goals you see depends on the design.
The last three are correctness goals. They are explained on Verification.
What the search tries
Crashes, losing one instance, slowdowns, random errors, cut connections, requests delivered twice, stalls, and answers lost on the way back. Some only apply to some goals: duplicates, stalls and lost answers are tried for the payment goal, where they matter. The search plays by fixed rules so its answers are fair:- Faults land between 10s and 15s, and the goal is measured from 5s to 35s, so every fault has time to show its effect.
- A break has to miss the goal by a margin, and also be worse than the same traffic with no faults, on two runs of traffic. A design that only just misses on luck does not count.
- Parts every request has to pass through are named as Single points of failure first. By default the search only slows them and takes down single machines, because crashing the only database breaks everything and teaches nothing. Tick Crash and cut them too to include them. The correctness goals include them anyway, because an outage on its own cannot break those.
Read the answer
- Broke it. The panel lists the faults, what they did to the goal, and how many tries it took to find and then shrink them.
- Held across a number of fault schedules. Nothing it tried broke the goal. The panel says the closest it came.
- Already broken with no faults. The design misses the goal before anything goes wrong. Fix that first.
- Press Watch the replay to play the break on your canvas, with the faults marked on the parts they hit.
- Press Replay link to copy a link that plays the same run for someone else.
- For a correctness goal, press Follow request to read the story of the first request that broke the rule, step by step.
- Press Try to fix it, change the design, and run the search again. It tries the faults that broke it last time first, and tells you when that break no longer works.
Try it on Checkout and payments
Open the example, press F, and pick Every payment charged at most once.