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 Vahdat
Abstract
The reliance on scarce and expensive accelerators such as GPUs and TPUs in modern datacenters places unprecedented demands on backend infrastructure. For workloads characterized by heterogeneous service times and complex multi-stage processing, such as Generative AI, conventional load balancing techniques are often inadequate, relying heavily on costly overprovisioning to maintain service level objectives. This paper introduces DLB, the Distributed Load Balancer, a novel system designed to minimize end-to-end user latency for large-scale, heterogeneous workloads. DLB employs a scalable, distributed design with peer-to-peer probing to maintain real-time visibility into server capacity across large-scale, geographically distributed infrastructure. The system continuously learns latency models to estimate the latency impact of routing decisions, allowing it to effectively manage heterogeneous hardware and diverse model architectures. We provide a novel theoretical analysis of our routing algorithms that establishes their stability and global performance guarantees over time. We also evaluate DLB through extensive simulations, which show substantial gains compared to state-of-the-art load balancing algorithms. Finally, following a 22-month deployment of DLB at Google, where it facilitates large-scale Generative AI inference for thousands of different machine learning models and millions of requests per second, we detail the design choices and practical experiences gained from the system in production. Analysis of production migrations demonstrates that DLB yields statistically significant latency reductions compared to the legacy baseline, including a 17\% decrease in median latency and a 13\% decrease at the p95 tail.
Create a lesson
Metadata
- Categories
- cs.DC, cs.SY, eess.SY
Related papers
Physically Partitioned KVCache Format for CPU--GPU Load Balancing in MoE Inference
Shared title terminologycs.DCEnda Yu, Dezun Dong, Xiangke Liao
Activation-Aware Balancing of Fused CPU and GPU Expert Execution for Offline MoE Inference
Shared title terminologycs.DCBorui Xu, Weihao Cui, Yao Chen et al.
TopoEP: Topology-Aware Load Balancing for Expert-Parallel MoE Training
Shared title terminologycs.DCJiacheng Zhu, Xie Zhao, Gongming Zhao et al.
Communication-Aware Model Distributed Inference via Latent Representation Compression
Shared title terminologycs.DCPeyman Gholami, Theodoros-Thirimachos Davarakis, Teng Li et al.
Flamingo: On Load Balancing in DAG-based Consensus Protocols
Shared title terminologycs.DCZhen Ping Khor, Garvit Gupta, Mohammad Javad Amiri et al.
Accurate Distributed Tracing for Large-Scale AI Infrastructure: Time Synchronization as a Foundation for Reliable Observability
Shared title terminologycs.DCHesham Elbakoury, Ankur Sharma