Uptime monitoring from outside your own infrastructure that alerts you the minute your site goes down — upordown.online
This is a hypothetical case study. The company and numbers are invented; the failure is a common one: the page you monitor stays up while the dependency the money path needs is dying.
The setup
An online store, about 15,000 orders a day, runs a Rails app behind nginx and an AWS load balancer. Sessions and the cart live in ElastiCache Redis. The product catalogue is in Postgres and is also cached in Redis. The homepage, category pages and the /health endpoint do not need a session. Checkout does.
Uptime checks hit https://www.example.com/ and https://www.example.com/health every minute from two regions. Both have to return 200 in under 5 seconds. They have been green for months.
Redis was sized for last year's peak. maxmemory-policy is allkeys-lru. Nobody is paged on Redis memory.
The incident
Friday, 18:40. A marketing campaign lands. Traffic to a handful of product pages jumps. The catalogue cache fills Redis with new keys. Evictions start.
18:47. Session keys start getting evicted along with cache keys. Customers who already had a cart see an empty cart, or are bounced to login and then back to an empty cart. New checkout attempts create a session, put a cart in Redis, and lose it on the next request if the key was evicted. The checkout form posts, the server can't find the cart, and the app renders the cart page again with a generic "something went wrong, try again". The HTTP status is 200.
18:40–20:10. The homepage is fast and 200. /health pings Postgres and returns 200. It does not ping Redis. The load balancer is happy. The uptime monitors are happy. Support gets 30 chats in 20 minutes: "I can't pay", "my cart emptied itself", "the place order button does nothing".
20:10. An engineer on-call for a different service looks at a support-escalation Slack message, opens Redis metrics, and sees memory at the cap and evictions in the tens of thousands per minute. They fail closed: scale the Redis node up, and temporarily point the catalogue cache at a second database so sessions stop competing with product HTML.
20:25. Checkout starts completing again. About 90 minutes of the evening campaign's traffic had a store that looked open and would not take money.
Fixing the immediate damage
They kept the larger Redis node, split cache and sessions into two instances so a catalogue stampede couldn't evict sessions, and refunded or honoured the handful of duplicate orders from people who retried after the fix. They emailed customers who had started checkout and not finished during the window, with a direct link and a short explanation.
A homepage 200 is not a working store. upordown.online can watch the real checkout path from outside, with a timeout, and alert when that path stops completing, even if the homepage and the health endpoint stay green.
What actually went wrong
The monitors measured the wrong path. The homepage and /health were chosen because they were cheap and stable. They do not exercise Redis, sessions, or the payment form. They cannot fail in the way checkout failed.
/health was a liveness check pretending to be a readiness check. It answered "is this process up?", which is what the load balancer needed. It was also used as the public proof that the site worked. Those should not have been the same endpoint.
Redis was a single shared bag of keys. Sessions, carts and a large catalogue cache competed under allkeys-lru. The cache was doing its job — filling with hot product pages — and evicting the keys the business actually needed.
The checkout error was a 200. Nothing in the access log looked like an outage: no spike of 5xx, no rise in latency on /. The useful signal was "orders per minute", and nobody was looking at it on a Friday evening.
The fixes
1. Split Redis by purpose. One instance for sessions and carts (volatile-lru or no eviction, with explicit TTLs). One for the catalogue cache, allowed to evict. Memory alerts on both, with a page if evictions happen on the session instance at all.
2. Change /health into two endpoints. /health/live stays cheap, for the load balancer. /health/ready checks Postgres and a Redis PING plus a short set/get on the session instance. The load balancer can keep using live; humans and monitors use ready.
3. Add a synthetic checkout check. A monitor, from outside, adds a known item, starts checkout, and stops before paying (or pays in a sandbox). It must fail if the cart vanishes or the form returns the "try again" page with a 200. Status is not enough; the body and the sequence matter.
4. Alert on business metrics. Orders per minute, checkout-start to checkout-complete ratio, payment-provider errors. A drop below a quiet-Friday baseline should page even if every HTTP check is green.
5. Treat eviction as an incident on the session store. A cache hitting maxmemory is normal. A session store hitting it is an outage in progress.
What I'd take from it
If the money path needs a dependency, a monitor that never touches that dependency will be green for the whole incident. Health endpoints that avoid "expensive" checks become expensive in a different way: they hide the failure. And HTTP status on a marketing page is a poor proxy for "customers can pay".
Related reading
- Failing over to a backup region or origin? A 12-point checklist so DNS, TLS and sessions actually survive
- Stop monitoring your homepage. Monitor the path that makes you money.
- Your health check returns 200 while users get errors: 7 health check mistakes
- Case study (hypothetical): the payment provider's status page said 'operational' while our checkout timed out for 40 minutes
Have you had an outage where the homepage never went down? What was the dependency, and how do you check it now?
Top comments (0)