Load Balancing in Compute Clusters with Delayed Feedback

Anam Tahir, Bastian Alt, Amr Rizk, Heinz Koeppl

TL;DR

This paper introduces POL (Partial Observability Load-Balancer), a framework designed for real-time job routing in compute clusters where server feedback is randomly delayed. By framing the problem as a Partially Observable Markov Decision Process (POMDP) and combining Monte Carlo Tree Search (MCTS) with particle filtering, POL achieves performance comparable to full-information load balancers while operating under realistic, limited-information constraints.

What Problem Does This Paper Address?

Classic load-balancing algorithms—like Join-the-Shortest-Queue (JSQ) or Shortest-Expected-Delay (SED)—rely on a heavy assumption: that the load balancer has perfect, instantaneous knowledge of every server's queue length and processing state.

In real-world distributed systems and data centers, this assumption breaks down. Network propagation delays and event-triggered reporting mean that a load balancer only learns about completed jobs after a non-deterministic delay. This creates a partially observable (PO) system. Stale information can lead to disastrous routing decisions, such as overloading a single server because its recent completions haven't been acknowledged yet. The authors tackle the challenge of finding an optimal control law under these delayed, acknowledgement-based feedback loops.

Fig. 1: A parallel queuing system with a load-balancer that maps jobs to servers. The load-balancer observes the inter-arrival times u and the feedback, i.e., the number of acknowledgements, from each server yi. The load-balancer does not observe the queue states bi, the job service times, or the delayed feedback xi, i.e., the number of acknowledgements on the way back.

Methods

The authors model the cluster as a POMDP (for exponentially distributed times) or a Partially Observable Semi-Markov Decision Process (POSMDP, for general distributions). To solve this online without explicit transition probabilities, they introduce POL, which integrates several components:

  • State Estimation via Particle Filtering: A Sequential Importance Resampling (SIR) particle filter tracks the hidden queue states. It updates the system's "belief state" by accounting for the probability that acknowledgements are still in transit (modeled using a Binomial distribution).
  • Online Planning via MCTS: POL uses a scalable Monte Carlo Tree Search algorithm (adapted from POMCP) to simulate potential future trajectories up to a certain depth. Actions are selected using the Upper Confidence bounds for Trees (UCT) algorithm to balance exploration and exploitation.
  • Flexible Reward Design: Instead of hardcoding a specific heuristic, POL optimizes a user-defined reward function. This allows operators to flexibly prioritize minimizing queue lengths, preventing job drops, or eliminating server idle time.
  • Bayesian Parameter Inference: If the cluster's inter-arrival or service time distributions are unknown, POL uses a Bayesian approach (implemented via Hamiltonian Monte Carlo) to infer these distributions at runtime from observed data.

Datasets

The framework was evaluated using both synthetic environments and real-world trace data:

  1. Synthetic Simulations: Clusters ranging from $N=2$ to $N=90$ servers, tested under exponential, Gamma, and heavy-tailed Pareto distributions for service and inter-arrival times.
  2. Real-World Trace Data: The authors utilized the Labeled Network Traffic Flow dataset provided by Kaggle (2019) to evaluate POL against realistic, heterogeneous network workloads.

Key Insights and Ideas

  • Tracking the Unobserved Pipeline: Instead of just guessing queue lengths, POL explicitly tracks the number of unacknowledged jobs currently "on the wire" ($x_i$). This allows the particle filter to maintain an accurate belief state even when feedback delays are highly variable.
  • Bridging the Information Gap: The core "aha" moment is that an intelligent online planner can match the performance of full-information strategies without the massive network overhead required to maintain instantaneous state synchronization.
  • Dynamic Policy Adaptation: Because POL derives its policy from a reward function rather than a fixed heuristic, it automatically shifts its strategy based on server heterogeneity. For example, it naturally learns to favor faster servers even when their queues appear slightly longer.

Key Results

  • Outperforming Limited-Information Rivals: POL significantly outperforms other limited-information strategies like Join-the-Most-Observations (JMO), which frequently drop jobs due to stale data loops.
  • Matching Full-Information Baselines: In a 2-server heterogeneous setup with a 40% probability of acknowledgement delay per epoch, POL achieved a job drop rate and response time nearly identical to full-information strategies (JSQ-FI, SED-FI).
Fig. 3: N = 2 heterogeneous servers with exponential service rates µ1 = 4, µ2 = 2. Job inter arrival times are exponentially distributed with rate λ = 5. POL outperforms the algorithms with limited information, JMO and JMO-E, in terms of (a) cumulative reward (higher is better), (b) response time (lower is better), and (c) job drops (lower is better). Although POL only observes the randomly delayed job acknowledgements, while SED-FI, DJSQ-FI and JSQ-FI know the exact buffer fillings and service times / rates, POL still has comparable performance. The heatmap (d) shows the allocation preference of POL based on how filled the queue is b1(b2), i.e., the label bar 1.0(2.0) denotes the allocation to queue 1(2), respectively.
  • Scalability: When scaled up to 50 and 90 servers, POL maintained robust performance, proving that particle-based belief states successfully mitigate the curse of dimensionality in large queuing networks.

Limitations and Future Work

The primary limitation of POL is its computational overhead. Because the MCTS simulation and particle filter updates must occur online at every single job arrival, the decision window shrinks as the arrival rate (offered load $\eta$) increases. At extremely high loads or massive server scales, this constraint can lead to a slight degradation in load-balancing performance.

To address this, the authors point to several promising future directions:

  • Parallelizing the MCTS tree search using GPUs to enable more trajectory simulations in constrained timeframes.
  • Extending the simulator to account for memory effects (e.g., heavy-tailed service times where the duration of the last served job correlates with the next).
  • Expanding the framework to support multi-agent environments featuring multiple parallel load balancers.

Summary updated

BibTeX
@article{tahir2021load,
  author = {Anam Tahir and Bastian Alt and Amr Rizk and Heinz Koeppl},
  title = {{Load Balancing in Compute Clusters with Delayed Feedback}},
  journal = {IEEE Trans. Computers},
  year = {2021},
}
Figure