r/ObservabilityOPS • • 1d ago

Cloudflare kept serving cached pages for two hours while the origin was down

TL;DR my uptime check only ever hit a cached homepage so it stayed green through a two hour origin outage. Looking for better ways to check the origin through Cloudflare.

One of my clients runs WordPress behind Cloudflare with fairly aggressive page caching. On Sunday the origin server ran out of disk. For about two hours the homepage and most posts loaded fine from cache while the contact form, the cart and wp admin all returned 5xx. I found out when the client couldn't log in.

What I changed my Dotcom Monitor check now loads a page with a cache bypass query string plus the login page so it actually reaches the origin. Where the setup allows it I also check the origin IP directly with the Host header set.

So for anyone who has solved this properly through Cloudflare with bypass URLs, straight to the origin, or both? And how do you keep the bypass check from being flagged by bot protection?

1 Upvotes

1 comment sorted by

2

u/tankerkiller125real 1d ago

Health endpoint that's ignored by cache rules. That's literally it.

Also, how did the host run out of storage without sending out some kind of an alert either when it happened, or the more industry standard before it ran out by some percentage full.