Modeled cloud outages and launch rushes: what breaks on load, capacity and failover before you ship. For SRE and platform teams. By an ex-Oracle cloud engineer.
We simulated the Microsoft 365 outage pattern: a lock-contention cascade took an assumed 7-worker gateway from 6 up to 0 in 5 steps. Cutting traffic didn't recover it; stopping new work did. Assumed topology, not Microsoft's system.
@gmkurtzer Fair, just read it. Human-directed with acceptance gates is the right call. Over time I think more of those gates get automated, so the human direction becomes less necessary.
;-)
@mjovanovictech Schemas help, but I'd also cap connections and statement time per module role. A rogue JOIN is as much a noisy-neighbor problem as a boundary one, and it can stall every other service that shares the database.
@system_monarch I'd also look at how many services share that database. Raising one pool to 500 often looks fine until five teams do it on the same instance, and the database hits its ceiling before any single app looks misconfigured.
@aakashgupta An 8x jump in agent traffic isn't 8x human traffic. Agents retry and fan out without getting tired, so the first thing to break is often a dependency that was sized for people, not for machines hitting it in a loop.
@CTOAdvisor@nvidia The token rate went up, but hold time is the real capacity number. An 85-hour cell means one Spark failure can wipe almost four days of work unless those jobs can fail over mid-run.
@AskYoshik The first outage that really hurts usually isn't a missing mesh policy. It's a stale DNS cache, a retry loop, or conntrack filling up when traffic shifts or a zone fails, and none of that shows up in a hello-world cluster.
@ThePracticalDev@shubhra_dev A cancel from the client isn't a cancel on the database. Those 12 abandoned queries are still holding the pool, and a retry wave after a timeout can pin every connection on work nobody is waiting for anymore.
Many 'application errors' are cloud architecture errors.
In a modeled 5x launch rush, 20% of sign-ins failed. The app code wasn't the cause: 3 of 10 servers weren't serving yet. (modeled, assumed setup)
Take the app out of the picture and test the architecture first.
@brankopetric00 I'd add one that comes before the outage: knowing which dependency hits its capacity wall first when traffic doubles. A lot of war-room time is spent discovering a limit nobody wrote down.
@RaulJuncoV The question that usually flips it: what does an hour of downtime actually cost, next to what active-active costs every month? Once those two numbers sit side by side, 99.9% with a well-rehearsed failover often wins.
@DavidLinthicum The part I'd watch is load shape: agents that spin up databases on demand also retry and fan out much faster than people do. Who sets the capacity and cost ceiling when the "user" is an agent creating short-lived workloads at 3am?
@mjovanovictech That 8x drop is usually the shared store turning into the bottleneck, not the 0.65 ms itself. A small in-memory deny-list holding only revoked token IDs until they expire keeps most requests off Postgres.
Engine update: rerun on a fixed model, this 50x rush fails ~77% of sign-ins, not 40.6%. The bottleneck is app server CPU, not DB connections: overloaded servers reject requests before they reach the DB, which sits at ~32% CPU. Correcting our earlier post. (modeled, assumed setup)
We simulated it: a game-launch sign-in rush on an assumed topology, not Sony's real system.
At 50x normal load, servers autoscaled 4→22, but 40.6% of sign-ins still failed. Most of that was the shared account DB running out of connections. p99 went from 188 ms to 1.9 s.
@statusisdown Engine update: with the overload fix, 4 servers at 89% CPU now model at 0% failed (p99 still ~247ms). The break comes at 3 servers: 15.9% failed. Correcting our earlier 4.6%.
@statusisdown If health checks are pulling servers, the survivors eat the load. We modeled a generic mail front end (assumed topology, not Microsoft's) at fixed traffic: 6 servers, 0% errors. Pull 2: 4.6% fail, p99 171→244ms. Pull 3: 10%+ fail, 329ms.
We simulated it: what breaks at 1,000 vs 100,000 users, on an assumed topology (ALB → app autoscaling 2–10 → Redis + Postgres), not anyone's real system.
~100 RPS: p95 59 ms, 0% errors.
~10k RPS: all 10 app nodes maxed, Postgres at 100% CPU, 82.2% errors (72 points from the DB pool), p95 1,029 ms.
The app scaled. The DB pool broke first.
We also hit a database wall on a real AWS load test — adding app servers didn't raise the breach point:
https://t.co/OE4ZeOICjO https://t.co/HxA6pSZGjt
build a basic URL shortener with AI.
then keep asking:
- what breaks at 1,000 users?
- what breaks at 100,000?
- what happens if the database goes down?
- how do we prevent abuse?
- where should caching happen?
- how do we measure latency?
that's system design :)