Derandomized Load Balancing using Random Walks on Expander Graphs

Dengwang Tang, Vijay G. SubramanianarXiv 2019

Abstract

In large-scale distributed systems, the "power-of-$d$ choices" (PoD) algorithm is a cornerstone for efficient load balancing, significantly reducing queue lengths compared to random assignment with minimal overhead. However, PoD requires a substantial amount of high-quality randomness—$O(\log n)$ bits per arrival—which can be computationally expensive in high-throughput environments. This paper presents a derandomized alternative, the Non-backtracking Random Walk based Power-of-$d$-choices (NBRW-Pod) scheme. By utilizing random walks on expander graphs, the proposed method achieves the same asymptotic performance as standard PoD while reducing the randomness requirement to $O(1)$ bits per arrival. We provide a fluid limit analysis to prove convergence to the same system of ordinary differential equations (ODEs) as PoD and validate our findings through extensive simulations.

1. Introduction

Load balancing is critical for maintaining low latency in modern data centers. While Join-the-Shortest-Queue (JSQ) provides optimal performance, its communication overhead is prohibitive at scale. The power-of-$d$ choices (PoD) algorithm offers a middle ground: by sampling $d$ servers and choosing the least loaded, it achieves exponential improvements in queue length over random assignment. Yet, the reliance on independent random samples for every job arrival introduces a significant demand for random bits. As systems scale to millions of servers ($n$), the $O(\log n)$ bits required per job become a bottleneck.

2. The NBRW-Pod Algorithm

The authors propose replacing independent sampling with non-backtracking random walks (NBRW) on a $k$-regular expander graph. In this model, the servers are nodes in a graph $G$. The dispatcher maintains $d$ independent walkers. For each incoming job, the dispatcher queries the $d$ servers currently occupied by these walkers, assigns the job to the shortest queue, and then moves each walker to a random neighbor (excluding the node it just came from).

The choice of a non-backtracking walk is intentional. By preventing immediate returns, the walk explores the graph more efficiently, which is crucial for maintaining the "independence" of samples in a derandomized setting. Unlike previous attempts that required periodic "resets" (jumping a walker to a completely random spot), this paper proves that if the graph is a good expander with high girth, resets are unnecessary.

3. Mathematical Framework and Notation

To rigorously analyze the performance of NBRW-Pod, the authors employ a fluid limit approach. The system state is described by the proportion of servers with a queue length of at least $i$ at time $t$. The following table summarizes the key notation used in the derivation of the system's dynamics.

Table I: Summary of notation and definitions used for the fluid limit analysis of the NBRW-Pod system.

The core theoretical contribution is proving that as $n \to \infty$, the stochastic process $X^{(n)}(t)$ converges to a deterministic fluid limit $u(t)$, which satisfies the same set of ODEs as the standard PoD algorithm. This convergence implies that the queue length distribution of the derandomized version is identical to the fully randomized version in the limit.

4. The Role of Expander Graphs

The success of NBRW-Pod hinges on the "mixing" properties of the underlying graph. On an expander graph, a random walk quickly loses memory of its starting position. The authors show that if the graph has high girth (few short cycles) and strong expansion properties, the samples obtained via the walk are "sufficiently independent" to mimic true random sampling.

This leads to a massive reduction in randomness. Instead of $O(\log n)$ bits to pick a server from $n$ candidates, the dispatcher only needs $O(\log(k-1))$ bits to choose the next neighbor in a $k$-regular graph. Since $k$ is a small constant (e.g., $k=6$), the randomness cost per job becomes $O(1)$, independent of the total number of servers.

5. Simulation and Results

The theoretical predictions were tested against simulations using various graph topologies with $n = 12,180$ servers:

  • LPS Graphs: As optimal expanders (Ramanujan graphs), these matched the ODE predictions almost perfectly, confirming that NBRW-Pod can achieve PoD-level performance without resets.
  • Torus and Cycle Graphs: These served as counter-examples. Due to their poor expansion and low girth, the walkers remained "trapped" in local neighborhoods, leading to significantly worse load balancing performance than predicted by the fluid limit.

6. Conclusion and Future Work

The NBRW-Pod algorithm demonstrates that high-quality load balancing does not strictly require high-quality independent randomness. By leveraging the structural properties of expander graphs, one can achieve the benefits of the power-of-$d$ choices with a fraction of the random bits.

However, limitations remain. The current analysis focuses on light traffic models; investigating performance under "heavy traffic" (where arrival rate approaches service capacity) is a key next step. Additionally, while high-girth expanders are mathematically ideal, finding the minimum graph requirements for practical data center topologies remains an open question.

Summary updated

BibTeX
@misc{tang2019derandomized,
  author = {Dengwang Tang and Vijay G. Subramanian},
  title = {{Derandomized Load Balancing using Random Walks on Expander Graphs}},
  year = {2019},
  eprint = {1901.09094},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.09094},
}
Figure