Solving Max-Min Fair Resource Allocations Quickly on Large Graphs

Pooria Namyar, Behnaz Arzani, Srikanth Kandula, Santiago Segarra, Daniel Crankshaw, Umesh Krishnaswamy, Ramesh Govindan, Himanshu Raj

TL;DR

Computing max-min fair resource allocations in large-scale systems like cloud WANs and GPU clusters traditionally requires solving a slow sequence of linear programs or relies on single-path waterfilling heuristics that fail in multi-path settings. This paper introduces Soroush, a suite of algorithms that converts iterative optimization sequences into single-shot linear programs and generalizes waterfilling to multi-path graphs. Soroush Pareto-dominates existing allocators in speed, fairness, and efficiency, and is deployed in Microsoft Azure's production WAN traffic engineering pipeline with an average $2.4\times$ speedup.

What Problem Does This Paper Address?

In large-scale cloud systems—such as wide-area network (WAN) traffic engineering (TE) and cluster scheduling (CS)—operators need to allocate shared resources fairly, efficiently, and rapidly. Standard max-min fairness ensures smaller requests are prioritized over larger ones, preventing starvation.

However, existing exact solutions (e.g., Danna et al., Gavel) require solving a sequence of linear programs (LPs) to iteratively freeze bottlenecked demands from smallest to largest, taking minutes to hours on large topologies. In fast-changing networks (where demand shifts every 5 minutes), slow solvers miss deadlines, forcing systems to lag behind and causing up to 60% loss in fairness and 30% loss in efficiency. Meanwhile, classic single-path waterfilling heuristics are ultra-fast but fundamentally cannot handle multi-path allocations because local fairness across individual links does not equal global max-min fairness.

Methods

Soroush provides a general graph abstraction where edges represent resources (e.g., links, GPU, CPU) and paths represent groups of resources assigned jointly. Over this model, Soroush offers three complementary allocators:

  1. GeometricBinner (GB): Rather than iteratively solving an LP sequence with geometrically increasing rate limits (like SWAN), GB reformulates the problem into a single-shot LP. It introduces per-demand, per-bin variables and weights them with geometrically decreasing coefficients ($\epsilon^{b-1}$) in the objective, proving demands saturate smaller bins before taking from larger ones. GB matches SWAN's $\alpha$-approximation worst-case fairness guarantee while solving only one LP.
  2. AdaptiveWaterfiller (AW): Generalizes classical waterfilling to multi-path environments without using an LP solver. AW assigns virtual subdemands to each path and dynamically updates path weight multipliers based on allocations from previous iterations—iteratively shifting traffic from congested paths to less-congested paths. The authors prove that when AW converges, it converges to a bandwidth-bottlenecked state that contains the optimal solution.
  3. EquidepthBinner (EB): Combines AW and binning. AW first quickly estimates demand ordering; EB then dynamically places demands into equi-depth bins (similar to equi-depth histograms in databases) and solves a single LP. This prevents bin imbalance and achieves the highest empirical fairness.
┌────────────────────────────────────────────────────────┐
│                        Soroush                         │
├────────────────────┬───────────────────────────────────┤
│ GeometricBinner    │ Single-shot LP; provable          │
│ (GB)               │ α-approximation fairness          │
├────────────────────┼───────────────────────────────────┤
│ AdaptiveWaterfiller│ Combinatorial, LP-free; iterative │
│ (AW)               │ multi-path weight adaptation      │
├────────────────────┼───────────────────────────────────┤
│ EquidepthBinner    │ Hybrid: AW order estimation +     │
│ (EB)               │ single-shot LP with dynamic bins  │
└────────────────────┴───────────────────────────────────┘

Datasets

The authors evaluated Soroush across multiple network topologies and cluster workloads:

  • WAN Topologies:
  • Azure production WAN traces: WANLarge ($\sim 1000$s of nodes/edges) and WANSmall ($\sim 100$s of nodes, $\sim 1000$s of edges).
  • Internet Topology Zoo: Cogentco (197 nodes, 486 edges), UsCarrier (158 nodes, 378 edges), GtsCe (149 nodes, 386 edges), and TataNld (145 nodes, 372 edges).
  • Demands synthesized using Gravity, Poisson, Uniform, and Bimodal traffic distributions across scale factors from light to high loads.
  • Cluster Scheduling Workloads:
  • Synthesized via Gavel's job generator using 26 deep learning job types (ResNet-18/50, CycleGAN, Transformer, LSTM, A3C, Autoencoder) over Vision, NLP, RL, and Recommendation datasets (CIFAR-10, ImageNet, Multi30k, Wikitext2, ML-20M).
  • Cluster worker distributions derived from the Microsoft Philly public trace across V100, P100, and K80 GPUs.

Key Insights and Ideas

  • Max-min fair sorting without sorting networks: While an exact single-shot LP requires an $O(n \log^2 n)$ sorting network (which explodes in size and suffers double-precision errors), approximate geometric binning eliminates the need to sort individual flows. Grouping rate increments into bins and using $\epsilon$-weighting creates a compact, single LP.
  • Dynamic weight shifting unlocks multi-path waterfilling: Waterfilling fails across multiple paths because a flow receiving a small allocation on a congested link could have alternative paths. Multiplying subdemand weights iteratively by $f_k^p / f_k$ naturally penalizes congested sub-paths, causing flow weights to converge rapidly (typically within 5–10 iterations).
  • Equi-depth binning boosts fairness: Fixed geometric bins suffer from bin-imbalance (many flows falling into the same bin, where they are treated unfairly). Using a fast waterfiller to pre-rank demands enables balanced, equi-depth binning that minimizes allocation distortion.

Key Results

  • Production WAN Deployment: GeometricBinner deployed in Microsoft Azure's production WAN traffic engineering pipeline achieved an average $2.4\times$ speedup (up to $5.4\times$) while keeping fairness and efficiency within 1% of the existing production solver.
  • Traffic Engineering Benchmarks: Under high load, GeometricBinner was $4.5\times$ faster than SWAN on average ($6\times$ at the 90th percentile). AdaptiveWaterfiller achieved a $21.4\times$ speedup over SWAN while improving fairness by 19%.
  • Cluster Scheduling: In scenarios with 8,192 jobs, EquidepthBinner achieved fairness and efficiency comparable to Gavel with waterfilling while running $\sim 2$ orders of magnitude faster. AdaptiveWaterfiller outperformed standard Gavel across fairness (+10%), efficiency (+30%), and runtime.

Limitations and Future Work

  • Theoretical Bounds for Heuristics: While GeometricBinner preserves the $\alpha$-approximation guarantee of SWAN, AdaptiveWaterfiller only guarantees convergence to a "bandwidth-bottlenecked" set containing the optimum, lacking a strict worst-case unfairness bound. EquidepthBinner also lacks formal worst-case guarantees.
  • Alternate Fairness Metrics: The framework strictly focuses on max-min fairness and does not yet handle proportional fairness, balanced fairness, or other non-graph-based constraints.
  • Decentralization: Soroush currently targets centralized solvers; extending its one-shot and adaptive approaches to distributed, in-network environments remains an open challenge.

Summary updated

BibTeX
@inproceedings{namyar2024solving,
  author = {Pooria Namyar and Behnaz Arzani and Srikanth Kandula and Santiago Segarra and Daniel Crankshaw and Umesh Krishnaswamy and Ramesh Govindan and Himanshu Raj},
  title = {{Solving Max-Min Fair Resource Allocations Quickly on Large Graphs}},
  booktitle = {NSDI},
  year = {2024},
  url = {https://openreview.net/forum?id=zUICP6vDl1},
}
Figure