A Case for Sampling Based Learning Techniques in Coflow Scheduling

Akshay Jajoo, Y. Charlie Hu, Xiaojun Lin

TL;DR

Online coflow scheduling traditionally relies on complex multi-priority queues to guess coflow sizes, incurring high overhead and communication bottlenecks. Philae flips this approach by leveraging the spatial nature of coflows, sampling a tiny fraction of "pilot flows" to accurately estimate total size. This simple shift yields up to an 8× reduction in tail coflow completion times on a 150-node testbed while drastically improving coordinator scalability.

What Problem Does This Paper Address?

Data-intensive applications (like Spark or Hadoop) spend a massive chunk of their runtime shuffling data across the network. Schedulers optimize this using the coflow abstraction—a collection of parallel data flows between nodes that must all finish for a higher-level task to complete. To minimize the average Coflow Completion Time (CCT), the ideal strategy is Shortest-Coflow-First (SCF).

However, in production environments, flow sizes are rarely known in advance (non-clairvoyant scheduling). Prior state-of-the-art schedulers like Aalo approximate SCF using multi-level priority queues: new coflows start at the highest priority and get demoted as they send more data. The authors identify three major flaws with this approach:

  1. High Overhead: Constantly moving large coflows across queues delays other flows.
  2. Inadvertent Round-Robin: Schedulers struggle to differentiate similar-sized coflows, causing them to share bandwidth inefficiently.
  3. Scalability Bottlenecks: The central coordinator must constantly poll local agents for byte counts, overwhelming the system at scale.

Methods

The authors introduce Philae, an online coflow scheduler that explicitly learns coflow sizes via spatial sampling. Instead of tracking every byte sent across queues, Philae exploits the fact that a single coflow contains many parallel flows.

  • Pilot Flows: Upon a coflow's arrival, Philae pre-schedules a tiny fraction (typically <1%) of its constituent flows as "pilots."
  • Size Estimation: Once these pilot flows complete, their sizes are used to estimate the average flow size of the entire coflow.
  • Smart Piloting: To prevent pilot flows from disrupting the network, Philae schedules them on the least-busy ports.
  • Event-Driven Control: Once sizes are estimated, Philae applies an SCF policy adjusted for network contention. Unlike queue-based methods that require periodic updates (every $\delta$ ms), Philae only updates rates when explicit network events occur (e.g., coflow arrival or completion).

Interestingly, the authors explicitly avoid Multi-Armed Bandit (e.g., Upper Confidence Bound) error-correction techniques. They mathematically prove that trying to correct estimation errors iteratively re-introduces the destructive round-robin behavior they aim to avoid.

Table 1: Comparison of frequency of interactions be- tween the coordinator and local agents.

Datasets

The evaluation uses a publicly available production cluster trace from Facebook (FB trace), replayed on a Spark-like framework. They also evaluate using a Wide-coflow-only subset of this trace to isolate performance on large coflows, and scale the trace up 6× to simulate a 900-node cluster environment.

Key Insights and Ideas

  • The Spatial Dimension Advantage: Schedulers usually look at time or bytes sent (temporal dimension). Philae realizes that because a coflow is inherently distributed across many ports (spatial dimension), you can look at a few parallel pieces to understand the whole.
  • Why Rough Estimates are Enough: Using Hoeffding's Inequality, the authors show that precise size estimation isn't necessary. If two coflows are vastly different in size, a rough sample easily orders them correctly. If they are close in size, ordering them wrong doesn't significantly hurt the average CCT anyway.
  • Less Communication = Better Scalability: As shown in Table 1 (Figure 1), by moving away from periodic queue-status polling to event-triggered updates, Philae dramatically reduces coordinator-agent chatter.

Key Results

  • CCT Speedups: On a 150-node Azure testbed, Philae reduced average CCT by 1.50× and 90th percentile (P90) tail CCT by 8.00× compared to Aalo. On the 900-node testbed, the tail gains increased to 9.78×.
  • Job Completion Time (JCT): Improved by 1.16× (median) and 7.87× (P90), proving that network-level CCT gains translate directly to faster application performance.
  • Resource Efficiency: As detailed in Figure 2, Philae's coordinator CPU utilization dropped by 3.4× on average (5.0% vs 17.0%) and 2.6× during busy periods (10.4% vs 27.2%) compared to Aalo, making it far more viable for massive datacenters.
Resource usage in Philae and Aalo for 150 ports experiment.

Limitations and Future Work

While Philae performs exceptionally well, the authors note a few areas for improvement:

  • Iterative Sampling: Although straightforward UCB-type error correction degrades performance, more sophisticated iterative sampling algorithms might exist that could safely refine estimates without causing round-robin issues.
  • Decentralized Rate Allocation: Philae currently handles rate allocation centrally; future work could integrate ideas from architectures like Sincronia to offload rate allocation to local ports while keeping Philae's sampling-based ordering.
  • Generalization: The sampling-in-spatial-dimension technique is promising but currently limited to coflows; extending this to general cluster job scheduling remains an open direction.

Summary updated

BibTeX
@article{jajoo2021case,
  author = {Akshay Jajoo and Y. Charlie Hu and Xiaojun Lin},
  title = {{A Case for Sampling Based Learning Techniques in Coflow Scheduling}},
  journal = {IEEE/ACM Trans. Networking},
  year = {2021},
  doi = {10.48550/arxiv.2108.11255},
}
Figure