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 levelPart 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.
- No broken or illegal connections
- No component is overloaded
- If every Internal Service machine dies, under 0.1% of requests fail
- If a broken release ships, under 1% of requests fail
- Fewer than 0.1% of requests fail
- p99 response time under 250 ms
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
- The outage began at 11:20 UTC on 18 November 2025. Most traffic was flowing by 14:30, and everything was normal by 17:06 (Published: Cloudflare: outage on November 18, 2025)
- A change to database permissions made the Bot Management settings file double in size (Published: Cloudflare: outage on November 18, 2025)
- The limit was 200 entries, against about 60 in normal use. Past it the code crashed and requests got an error (Published: Cloudflare: outage on November 18, 2025)
- A new file was generated and sent out every five minutes (Published: Cloudflare: outage on November 18, 2025)
- Cloudflare's fixes: harden how its own settings files are read, add more global kill switches, and review failure modes across the proxy (Published: Cloudflare: outage on November 18, 2025)
- Bot Check as a separate service with a circuit breaker. At Cloudflare it's a module inside the proxy, and the equivalent is a kill switch (Estimate)
- 6,000 req/s and the machine counts. They're sized for this simulator (Estimate)
Check yourself
A bot score service breaks. Should requests fail open or closed?
- Closed: refuse every request
- Open: carry on without the score
- Wait until it's fixed
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?
- To every machine at once
- Only after a week of testing
- To one machine first, stopping if it fails
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.