How do you load-test a service at peak traffic without taking production down? Uber answers by breaking it on purpose: engineers built Muttloader, a system that reroutes real customer requests away from some instances so the survivors have to carry failover-level load.
The tool did not come out of a lab exercise. Johan Mena, Tony He and Jingyu Cai trace it on the Uber Engineering blog to October 2020, when a database cluster handling Delivery orders failed in one data center region. Roughly half of orders went unassigned for hours during the busiest slot of the week. On-call teams failed over to the surviving region, which was already strained by demand, and the mitigation turned into an outage of its own.
Uber already ran company-wide failover drills in production. They were high fidelity and rare. They needed coordination across many teams, often could not run at peak traffic because of the risk, and a single under-provisioned service could abort the whole exercise. Because services deploy continuously, confidence in the next failover decayed with every deploy that followed a drill.
A traffic drain is the mechanism, and it is worth defining because everything else hangs off it. Uber's service mesh load balancer, Muttley, can shift requests off unhealthy instances; Muttloader automates a timed sequence of those drains, taking a service and a load target, usually a CPU percentage, as its inputs. A PID controller, the feedback loop a thermostat uses, computes the gap to the target each iteration and emits a traffic-shift percentage to close it. Uber fixes the proportional and derivative terms low to prevent overshoot and derives the integral term from the service's live ratio of requests per second to CPU, so most services run with no tuning at all.
Safety carries the design. An eligibility validator rejects services whose capacity is not spread across zones and regions, whose traffic is too volatile to reach a target, or whose CPU does not scale predictably with request volume. During a test the health monitor watches hundreds of signals with thresholds tighter than the on-call alerts, and it treats rising request queue processing latency as the earliest reliable sign of overload. Unexpected process exits abort a run immediately, as do packet loss, cross-zone latency spikes, control plane degradation and company-wide lockdowns.
The platform gets tested like the services it tests. Every Muttloader deploy runs an end-to-end load test against synthetic, low-priority production services kept for that purpose; if the PID loop fails to converge, or load is not fully removed at the end, the deploy rolls back and a human reviews it. New code bakes in an environment restricted to low-priority services before promotion to the fleet, a change made after a Muttloader bug hit a service whose weekly test ran just after the bad deploy. A lingering-test detector pages the team whenever a traffic operation outlives its declared expiration time.
Two limits are structural. Muttloader raises load by moving requests, which assumes any instance can serve any request, and stateful storage layers break that assumption, so Uber covers them differently. A wider test is more realistic but riskier, so the team has shrunk scope to the smallest test that still yields confidence. Uber does not put a number on how many services Muttloader covers, how often they run, or how many incidents it has caught, so the return is asserted rather than measured.
What changes inside Uber is who carries the work. Service teams no longer stand up staging stacks with synthetic payloads or fight hand-tuned load generators; a small set of knobs, step duration, soak duration and step limit, replaces that. The cost moves to the platform team that owns the eligibility rules and the synthetic fleet, plus on-call engineers whose paging now sits behind a more sensitive detector.
The external stake is that Uber keeps betting reliability on live traffic. It is running fully driverless Motional robotaxis in Las Vegas, Just Auto reports, a service where a regional overload is not an inconvenience but a safety problem. Watch whether Uber publishes coverage numbers and whether the stateful gap closes; those two facts decide if continuous failover testing is a real discipline or a demonstration for the stateless half of the stack.





