Bugpit

Lessons › Real outages

Cloudflare: one bad file, everywhere

On 18 November 2025, a large part of the web returned errors for hours. Cloudflare's bot detection reads a small file of settings, rebuilt every five minutes and sent to every machine. One day the file came out twice its normal size, the code reading it crashed, and it took the whole request with it. You run a small copy: 6,000 req/s, and every request asks a Bot Check service for a score.

Play this level

Part of Bugpit Pro. It runs in your browser: build the design, press Run, and watch what breaks.

The lesson

Two things went wrong, and each has its own defence. The first: a helper that isn't essential was allowed to take down the main path. A page served without a bot score is better than no page.

That choice is called failing open: if the helper breaks, carry on without it. Failing closed means refusing the request. Fail closed for things like payments and logins. Fail open for scoring, recommendations and analytics. Here, tick **Circuit breaker** on the service.

The second: the bad file reached every machine within minutes. A generated settings file is a release, even though nobody thinks of it as one. It should reach one machine first and stop there if that machine starts failing. Tick **Canary releases**.

Cloudflare's own list of fixes says the same: treat files it generates with the same suspicion as user input, add more switches to turn a feature off everywhere, and review how each part of the proxy behaves when it fails.

What you have to achieve

6,000 requests a second at the busiest hour, 5% of them writes.

What you learn

Crash Bot Check: users still get pages. Ship a broken release: one machine fails and the rest carry on. The file's limit was 200 entries and normal use was about 60, so nobody expected to hit it. Limits you never expect to reach are where to look for the next outage.

The real numbers behind it

Check yourself

A bot score service breaks. Should requests fail open or closed?

Show the answer

Open: carry on without the score. A page without a bot score beats no page. Fail closed only for things like payments and logins.

How should a generated settings file reach your machines?

Show the answer

To one machine first, stopping if it fails. A generated file is a release. A canary catches a bad one before it reaches everyone.

Try it yourself

More in Real outages

← Microsoft 365: the servers that dropped out AWS: everything in one region →