DLB: Distributed Load Balancing at Scale for Generative AI Inference

Santiago R. Balseiro, Bartek Wydrowski, Sameer Agarwal, David Applegate, Aaron Archer, Soheil Hassas Yeganeh, Alex Iriza, Bobby Kleinberg, Balasubramanian Sivan, Pranav Vaish, Oscar Zegarra, Wenxin Zhang, Vahab Mirrokni, Amin VahdatarXiv 2026

TL;DR

Google researchers have introduced DLB (Distributed Load Balancer), a Layer 7 global load balancing system designed specifically for the massive scale and extreme heterogeneity of Generative AI workloads. By combining a two-tier distributed architecture, real-time peer-to-peer probing, and dynamically learned latency models, DLB achieves a 17% reduction in median latency and allows data centers to run 20% higher accelerator utilization.

What Problem Does This Paper Address?

Large Language Models (LLMs) and GenAI workloads present unprecedented challenges for data center infrastructure. They rely on expensive, scarce machine learning accelerators (MLAs) like GPUs and TPUs, which must operate at high utilization ("running hot") to be cost-effective.

Traditional load balancers struggle with GenAI for three main reasons:

  1. Workload Heterogeneity: Requests span orders of magnitude, from millisecond-level recommendation tasks ("sand") to multi-minute complex reasoning queries ("boulders").
  2. Opaque Serving Stacks: Advanced optimizations like continuous batching and prefill-decode disaggregation mean that simple metrics (like the number of active connections) correlate poorly with actual serving latency.
  3. Delayed Feedback: Network delays mean routers act on stale state information. Aggressively routing traffic to a seemingly quiet cell can quickly overload it before the system can react, causing severe traffic oscillations ("herding").

Legacy systems typically rely on long control loops (on the order of tens of seconds) and require operators to maintain conservative capacity headroom to avoid tail-latency spikes. DLB was designed to jointly optimize network and serving latency in real time at a global scale.

Methods

DLB splits global traffic control from local server selection using a Layer 7, two-tier distributed architecture:

  • Two-Tier Routing Architecture: Incoming requests hit root routers, which use aggregate cell-level state to select an eligible data center cell. The request is forwarded to a leaf router within that cell, which selects the specific inference server using a distributed power-of-$d$-choices paradigm.
  • Black-Box Latency Modeling: Instead of trying to parse complex internal serving mechanics, leaf routers treat the cell as a black box. They track requests-in-flight (RIF) and continuously fit a parametric latency model (using a softplus functional approximation) to map current load to expected serving latency.
  • Dual Routing Mechanisms: To handle different traffic types, DLB implements two algorithms. Discrete routing immediately sends heavy "boulders" to the lowest-cost cell. Flow routing uses distributed gradient descent to gradually shift routing probabilities for high-throughput "sand" traffic, mathematically guaranteeing stability and preventing oscillations under delayed feedback.
  • Conditional Session Affinity: To exploit prefix caching (which reuses expensive prefill computations and cuts prefill costs by 40-50%), DLB routes identical sessions to the same server. However, this stickiness is conditional: if a server becomes too bogged down, DLB breaks affinity and re-routes the user.

The authors also provide a novel theoretical framework using Lyapunov's direct method to prove global convergence and stability of their flow-routing mechanics despite network delays.

Figure 1: DLB design. (a) Requests for an endpoint enter root routers, which select an eligible cell and forward each request to a leaf router there; the leaf then selects a local inference server. Each cell runs multiple root and leaf router replicas. Traffic-residency constraints can restrict eligible cells (here, traffic from cell yy cannot be routed to cell xx). (b) A root router runs the global routing algorithm and a probe client, while a leaf router runs the local routing algorithm, a probe server, and a latency estimator. At the leaf, the local routing algorithm exports latency samples and RIF/error state to the estimator and probe server; at the root, the probe client supplies the aggregated response to the global routing algorithm. Solid arrows show request routing; dotted arrows show telemetry and probing.

Datasets

Not discussed in the paper. The system was evaluated using real production traffic traces from Google's GenAI serving stack (including Gemini models) and a high-fidelity C++ simulator that integrates the production codebase to model disaggregated prefill-decode architectures.

Key Insights and Ideas

  • The "Sand" vs. "Boulders" Split: A single routing policy cannot handle all GenAI traffic. For heavy queries, processing time completely dominates network latency, making greedy discrete routing ideal. For short, high-throughput queries, network latency is highly significant, requiring smooth flow routing to prevent massive traffic swings.
  • Learning the Latency Curve: Rather than relying on static capacity limits, DLB dynamically maps out each cell's unique utilization-latency curve. This allows it to automatically adapt to mixed hardware generations (e.g., older vs. newer TPUs) and software updates without manual tuning.
  • Mitigating the Exploration-Exploitation Loop: Load balancers inherently suffer from a closed-loop dilemma: if a cell is flagged as slow, routers stop sending traffic there, which prevents them from observing when the cell recovers. DLB elegantly mitigates this "starvation loop" via out-of-band background probing and Bayesian shrinkage.

Key Results

Following a 22-month live deployment at Google serving thousands of models and millions of requests per second, production data revealed substantial improvements over the legacy baseline:

  • Latency Reductions: An interrupted time-series analysis across 68 production endpoints showed a 17% decrease in median (p50) latency, a 13% decrease in mean latency, and a 13% decrease at the p95 tail.
  • Higher Asset Utilization: DLB successfully flattened the latency-utilization curve, allowing Google to run its accelerator fleets 20% hotter on average without violating service level objectives.
  • Negligible Overhead: The aggregate compute footprint of all DLB routers is roughly 2500× smaller than the cost of the MLAs they balance (accounting for just 0.04% of end-to-end latency).
Figure 2: Mean latency of one illustrative high-throughput endpoint while transitioning from the legacy system (MNLB) to DLB in March 2025.

Limitations and Future Work

  • Tail Latency Optimization: DLB’s current mathematical analysis and routing algorithms focus primarily on optimizing mean latency. The authors note that explicitly controlling tail latencies (like p99) is a key area for future research.
  • Nonmonotone Processing Rates: Complex server behaviors like aggressive batching or caching can sometimes cause nonmonotone processing rates (where adding more requests temporarily improves throughput). The current fluid model assumes strictly increasing processing functions.
  • Multi-Objective Constraints: Different tenants care about different metrics (e.g., minimizing time-to-first-token vs. maximizing overall throughput). The authors hope to extend DLB to natively support these heterogeneous objectives without introducing complex configuration overhead for operators.

Summary updated

BibTeX
@misc{balseiro2026dlb,
  author = {Santiago R. Balseiro and Bartek Wydrowski and Sameer Agarwal and David Applegate and Aaron Archer and Soheil Hassas Yeganeh and Alex Iriza and Bobby Kleinberg and Balasubramanian Sivan and Pranav Vaish and Oscar Zegarra and Wenxin Zhang and Vahab Mirrokni and Amin Vahdat},
  title = {{DLB: Distributed Load Balancing at Scale for Generative AI Inference}},
  year = {2026},
  eprint = {2609.21079},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.21079},
}
Figure