Online Demand Scheduling with Failovers

Konstantina Mellou, Marco Molinaro, Rudy Zhou

TL;DR

Cloud data centers must deploy new server racks under tight power limits while ensuring hardware redundancy against power failures. This paper formalizes this challenge as the Online Demand Scheduling with Failover problem, proving a tight worst-case competitive ratio of roughly $1/2$ and designing an algorithm for stochastic demand arrivals that achieves sublinear additive regret—meaning its competitive ratio approaches $1$ as system scale grows.

What Problem Does This Paper Address?

Power—not space—is the primary bottleneck when expanding modern data centers. To maintain strict "five-nines" availability, server racks cannot depend on a single power supply. Instead, production architectures split each workload’s power evenly across two power devices (machines). If one device fails, the surviving device must absorb the entire workload, running temporarily at an elevated failover capacity $B \ge 1$ (normalized against a nominal capacity of $1$).

In this setting, demands arrive online one-by-one with sizes $s_j \in [0, \min(1, B/2)]$. The algorithm must irrevocably assign each demand to a pair of devices (an edge in a multi-graph over devices) without rejecting demands until space runs out. Two capacity constraints must hold simultaneously:

  1. Nominal Constraint: Total load on device $u \le 1$.
  2. Failover Constraint: If neighbor $v$ fails, the total load on $u$ plus the load shared exclusively with $v$ cannot exceed $B$ ($L_u + \max_{v \ne u} L_{uv} \le B$).

Unlike classic bin packing or AdWords problems, packing feasibility depends not only on a node's aggregate load, but on how demands are distributed across its incident edges. Spreading demands thinly reduces worst-case edge load but consumes devices prematurely; packing them densely risks violating failover budgets.

Methods

The authors tackle both adversarial and stochastic arrivals:

  • Worst-Case Algorithm (FailoverWorstCase): Demands are partitioned into size intervals $I_k$ based on clique thresholds. Demands in interval $I_k$ are assigned to cliques of size $k$, placing at most one demand per edge to strictly control failover exposure. Small demands ($I_{\ge L}$ where $L = m^{1/3}$) are packed into $L$-cliques using a first-fit heuristic.
  • Stochastic Online Framework (FailoverStochastic): When demand sizes arrive i.i.d. from an unknown distribution $\mu$, the algorithm operates in doubling rounds ($n_k = 2^k$). It uses previously scheduled demands to solve an offline device minimization problem, creating an assignment "template." Incoming demands are then matched into the template using Rhee and Talagrand’s online monotone matching procedure; unmatched demands are placed on dedicated spare devices.
  • Offline Device Minimization (OffMinFailoverAlg): To generate templates, the authors formulate a configuration LP relaxing the failover constraint to $\sum_{s \in C} s + \max_{s \in C} s \le B$. After solving via column generation and rounding, a bipartite matching procedure (MatchConfigs) assigns demands to edges while adding only $O(DT)$ extra machines (where $D$ is configuration degree and $T$ is the number of demand types).

Datasets

Not discussed in the paper. The work is purely theoretical, providing mathematical proofs and asymptotic guarantees without empirical evaluations on synthetic or production traces.

Key Insights and Ideas

  • The 1-Demand-Per-Edge Invariant: In the worst-case clique construction, restricting each edge to at most one demand ensures that the failover penalty $\max_{v} L_{uv}$ is bounded by the individual demand size rather than an accumulated sum. This unlocks an average utilization of $\approx 1/4$ per node, matching the offline optimum's upper limit of $1/2$ within a factor of two.
  • Linearity of Stochastic Device Demand: Doubling algorithms often suffer constant-factor losses because separate batches use separate devices rather than reusing leftover capacity. The authors overcome this by proving that the expected minimum device requirement $\mathbb{E}[\text{OPT}_{\text{mach}}]$ is asymptotically linear in the number of arrivals ($T \cdot c(\mu) \pm O(T^{5/6})$), showing that batching incurs only sublinear device waste.
  • Relaxed-to-Realized Configuration Matching: Instead of tracking edge assignments directly inside the configuration LP (which would make configurations non-independent), the authors track only node-level subsets. They then prove that any valid node configurations can be realized on actual edges via alternating bipartite partitioning with negligible demand spillover.

Key Results

  • Worst-Case Bound: The deterministic algorithm achieves a competitive ratio of $\frac{1}{2} - O(m^{-1/3})$, which is essentially tight against an upper bound of $1/2$.
  • Stochastic Sublinear Regret: For i.i.d. arrivals, FailoverStochastic achieves total utilization: $$\text{OPT} - O(\text{OPT}^{5/6} \log \text{OPT})$$ with probability at least $1 - O(1/m)$.

  • Asymptotic Optimality: Because $\text{OPT} = \Theta(\min\{n, m\})$, the multiplicative competitive ratio is $1 - O\left(\frac{\log \xi}{\xi^{1/6}}\right)$ where $\xi = \min\{n, m\}$, converging to $1$ in large data centers.

Limitations and Future Work

  • Single-Failure and 50/50 Power Split: The model assumes exactly one machine fails at a time and workloads cannot be split unevenly (e.g., 60/40) or across more than two devices.
  • No Rejection / Permanent Halt: The online model assumes execution halts entirely as soon as a single demand cannot be scheduled, which penalizes adversarial settings heavily.
  • Stationary Demand Distribution: The stochastic analysis requires demands to be drawn i.i.d. from a stationary distribution, leaving open adversarial perturbations, Markovian arrivals, or non-stationary drift.
  • Regret Exponent: The additive regret exponent of $5/6$ leaves room for improvement toward the $\tilde{O}(\sqrt{\text{OPT}})$ rates seen in classic online bin packing.

Summary updated

BibTeX
@inproceedings{mellou2023online,
  author = {Konstantina Mellou and Marco Molinaro and Rudy Zhou},
  title = {{Online Demand Scheduling with Failovers}},
  booktitle = {ICALP},
  year = {2023},
  url = {https://openreview.net/forum?id=tbWh2tA3lX},
}

Loading related content...

Figure