Optimal Size-Aware Dispatching Rules via Value Iteration and Some Numerical Investigations

Esa Hyytiä, Rhonda RighterarXiv 2024 · DOI

Introduction

In large-scale computing environments such as data centers or cloud clusters, a central dispatcher is tasked with assigning incoming jobs to a set of parallel servers. The goal is typically to minimize the overall waiting time or "backlog" across the system. While common heuristics like Join-the-Shortest-Queue (JSQ) or Least-Work-Left (LWL) are widely used, they are not necessarily optimal when the exact size of the incoming job is known.

System model of a dispatcher assigning new jobs to parallel servers.

This research addresses the challenge of finding truly optimal dispatching policies in size-aware systems. The primary difficulty lies in the "curse of dimensionality": the system state—defined by the backlog of every server—is continuous and multi-dimensional, making standard reinforcement learning and dynamic programming tools computationally expensive and numerically unstable as the number of servers increases.

Methodology: Stable Value Iteration

The authors utilize Value Iteration (VI) to solve the underlying Markov Decision Processes. To overcome the computational hurdles, several key technical refinements were introduced:

State-Space Reduction

Since the servers are identical, the system exhibits symmetry. The authors exploit this by sorting server backlogs ($0 \le u_1 \le u_2 \dots \le u_k$), which significantly reduces the number of states that need to be computed. This reduction is critical for making the numerical solution feasible for systems with more than a few servers.

Visualization of the sorted state space for three servers, which significantly reduces the computational grid.

Tailored Integration

A significant challenge in applying VI to continuous-time systems is "time-scale separation." As the server count grows, job arrivals occur much faster than processing. Standard numerical integration methods like Simpson’s rule often become unstable under these conditions. The authors developed a "tailored integration" rule that assumes smooth (linear or quadratic) behavior of the value function between grid points, ensuring stability even at high arrival rates.

Discretization and Truncation

The continuous backlog is mapped onto a finite grid. The researchers balanced accuracy and computation time by carefully selecting the step size ($\delta$) and the maximum backlog truncation point ($m$).

Key Insights: Strategic Unbalancing

The numerical investigations revealed several counter-intuitive properties of optimal dispatching:

  • The "Moustache" Pattern: Visualizing the value function (the cost of being in a specific state) reveals a distinct "moustache" shape when plotting server imbalance. This highlights how the system prioritizes certain states to minimize long-term costs.
  • Strategic Unbalancing: Contrary to the intuition of load balancing, the optimal policy does not always seek to equalize backlogs. In the "interior region" where backlogs are similar, the optimal choice is often to send a long job to the longer queue. This preserves the shorter queue for future short jobs, preventing a server from being "idled" by a massive task while short jobs wait.
  • The Fairness Trade-off: Minimizing the average waiting time for the entire system requires an "unfair" policy. Short jobs are given priority access to short queues, while long jobs are forced to wait significantly longer than they would under size-oblivious policies like LWL.

Numerical Results and Scalability

  • Convergence and Stability: The VI process typically converges within 1,000 rounds. While basic Simpson-based approaches failed for systems with four or more servers, the tailored integration method remained stable for up to six servers.
  • Policy Mapping: For two-server systems, the decision boundary for optimal actions is a complex curve dependent on the incoming job's size, rather than a simple linear split.
  • Computational Limits: Despite state-space reduction, the state space grows exponentially. A 6-server system required nearly 2 GB of RAM, suggesting that for very large-scale systems, optimal policies may eventually converge toward simpler logic like "Join-the-Idle-Queue" (JIQ).

Conclusion and Future Work

This work provides a robust numerical framework for exploring optimal dispatching in size-aware systems. However, limitations remain. The results are currently specific to exponential job size distributions; heavy-tailed workloads might yield different optimal structures. Furthermore, practical implementation is challenged by the need for real-time, exact knowledge of server backlogs, which is often delayed in real-world distributed systems.

Summary updated

BibTeX
@misc{hyytia2024optimal,
  author = {Esa Hyytiä and Rhonda Righter},
  title = {{Optimal Size-Aware Dispatching Rules via Value Iteration and Some Numerical Investigations}},
  year = {2024},
  eprint = {2402.08142},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.08142},
}
Figure