Abstract
We study distributed load balancing in bipartite queueing systems where frontends route jobs to heterogeneous backends with workload-dependent service rates. The system's connectivity—governed by compatibility constraints such as data residency or resource requirements—is represented by an arbitrary bipartite graph. Each frontend operates independently without communication with other frontends, and the goal is to minimize the expected average latency of all jobs. We propose a closed-loop policy called the Greatest Marginal Service Rate (GMSR) policy that achieves effective coordination without requiring knowledge of arrival rates. In a discrete-time stochastic model, we show that the behavior of our routing policy converges to the behavior of a fluid model in the limit as job sizes tend to zero. In the fluid regime, we demonstrate that the policy attains an $\epsilon$-suboptimal solution in $O(\delta + \log{1/\epsilon})$ time, implying global convergence to centrally coordinated optimal routing. Finally, we analyze the fluid model when the system is overloaded, showing that GMSR lexicographically maximizes throughput and minimizes the collective workload of stable backends.
Introduction
In modern large-scale distributed systems, such as data centers executing heavy machine learning inference tasks, load balancing is a critical challenge. Traditional load-balancing models often assume that a server's processing speed is constant. However, in practice, factors like parallelism, memory contention, and batching mean that a server's service rate changes dynamically based on its current workload.
Furthermore, real-world systems must operate under three major constraints:
- Distributed Control: Frontends (routers) often cannot communicate with each other due to latency or privacy concerns.
- Limited Connectivity: Not every frontend can communicate with every backend due to geographic proximity or data residency laws.
- Unknown Demand: Job arrival rates are often unpredictable and unknown to the routers.
While policies like "Join-the-Shortest-Queue" (JSQ) are effective for identical servers with constant rates, they often become suboptimal when servers are heterogeneous and exhibit complex, non-linear service rates. This paper introduces the Greatest Marginal Service Rate (GMSR) policy to address these complexities.
The GMSR Policy
The core innovation of the GMSR policy is a shift in routing logic. Instead of routing a job to the server with the fewest jobs (minimizing current latency), a frontend routes jobs to the connected backend with the highest marginal service rate.
In mathematical terms, this means routing to the server where adding an additional unit of work results in the greatest increase in the total processing speed (the gradient of the service rate function). This approach ensures that the system prioritizes backends where additional work contributes most to the overall system throughput, rather than just looking at the individual server's current state.
Theoretical Framework
To validate the effectiveness of GMSR, the authors employ several sophisticated mathematical frameworks:
- Fluid Limits: The authors prove that a discrete, stochastic system—characterized by noisy, individual job arrivals—converges almost surely to a "fluid model" (smooth, continuous flows) as job sizes scale down and arrival rates scale up.
- Differential Inclusions: Because multiple servers might share the same marginal rate (creating "ties"), the authors utilize differential inclusions to model the system's trajectory accurately.
- Lyapunov Stability: A novel Lyapunov function based on "flow imbalance"—the difference between job arrival and completion rates—is used to prove that the system is globally stable and consistently moves toward the optimal state.
- TierGraphs: The authors introduce "TierGraphs" as a combinatorial tool to track how groups of frontends and backends synchronize their marginal rates over time.
Key Insights and Results
Implicit Coordination
One of the most significant findings is that GMSR achieves global coordination without explicit communication between frontends. The backends act as a shared signal; by independently selecting the best marginal rate, frontends indirectly balance the entire system. This makes the policy "agnostic" to arrival rates, as it only requires visibility into the current state of the backends.
Convergence and Optimality
The research provides rigorous proofs for the following:
- Global Convergence: GMSR always converges to the centrally coordinated optimal routing, regardless of the initial state.
- Fast Convergence: The policy reaches an $\epsilon$-suboptimal solution in $O(\delta + \log 1/\epsilon)$ time, where $\delta$ represents the initial distance from the optimum.
- Generalization of JSQ: The paper demonstrates that GMSR is a natural extension of the Join-the-Shortest-Queue policy, proving JSQ's optimality in a much broader range of scenarios than previously established.
Performance Under Overload
In scenarios where the system is overwhelmed (arrival rates exceed total capacity), GMSR does not fail catastrophically. Instead, it "lexicographically" maximizes throughput. This means it keeps as many servers stable as possible while processing the absolute maximum number of jobs allowed by the hardware constraints, effectively minimizing the collective workload of those stable backends.
Conclusion and Future Work
The GMSR policy offers a robust, distributed solution for load balancing in heterogeneous systems with non-linear service rates. While the theoretical results are promising, the authors identify several areas for future research:
- Information Delay: The current model assumes instantaneous knowledge of backend workloads. Real-world delays in state reporting could lead to oscillations.
- Knowledge of Service Functions: The policy assumes frontends know the shape of the service rate functions. Future work could explore learning these functions on the fly.
- Multi-layer Routing: Extending the analysis from bipartite graphs to multi-layer network topologies would further increase the policy's applicability to complex modern infrastructures.
Summary updated