Abstract
In distributed computing frameworks, co-flows represent groups of parallel data transfers that must all complete for a task to finish. This paper addresses the challenge of scheduling these co-flows under realistic constraints: flow sizes are stochastic and transfers are non-preemptive. We introduce the Non-Preemptive Stochastic Co-flow Scheduling (NPSCS) algorithm, which utilizes a time-indexed linear programming relaxation to achieve the first known approximation guarantees for minimizing weighted completion times in this setting.
Introduction
Modern data center applications, such as MapReduce and Spark, rely on "shuffling" data between stages of computation. These transfers are modeled as co-flows. A co-flow is a collection of individual flows between source and sink ports; the co-flow is only complete when its last constituent flow finishes.
Existing literature often assumes deterministic flow sizes or allows for preemption (pausing and resuming transfers). However, in practice, network conditions make flow sizes unpredictable (stochastic), and preemption is often avoided due to high signaling overhead and latency. This paper bridges this gap by providing an algorithmic framework for stochastic, non-preemptive scheduling.
Problem Formulation
The network is modeled as an $m \times m$ input-queued switch where each source port can send to at most one sink port at a time, and vice versa. Each co-flow $k$ consists of multiple flows $(i, j, k)$ with stochastic processing times $S_{i,j,k}$.
The objective is to minimize the total weighted expected completion time of all co-flows. This is particularly difficult because the scheduler does not know the exact realization of $S_{i,j,k}$ until the flow completes, and once a flow starts, it cannot be interrupted.
Methodology: The NPSCS Algorithm
The proposed Non-Preemptive Stochastic Co-flow Scheduling (NPSCS) algorithm follows a multi-stage approach:
- Time-Indexed LP Relaxation: The problem is relaxed into a linear program where variables represent the probability of a flow starting at a specific time.
- Stochastic Modeling: The algorithm incorporates the expected processing times $\mathbb{E}[S_{i,j,k}]$ and their variance to handle the inherent uncertainty of network transfers.
- Tentative Scheduling: Using the LP solution and the Weighted Shortest Expected Processing Time (WSEPT) rule, tentative start times are generated.
- Decomposition and Sequencing: To resolve port conflicts, the algorithm employs Greedy Low Jitter Decomposition (GLJD) to create non-conflicting matchings, which are then sequenced into a final non-preemptive schedule.
Key Results
The authors establish competitive ratios that bound the algorithm's performance relative to an optimal offline scheduler. A key finding is that the performance depends on the squared coefficient of variation ($\Delta$) of the flow sizes.
For scenarios where all co-flows are available at time zero, the competitive ratio is: $$\frac{(2 \log m + 1)(1 + \sqrt{m\Delta})(1 + m\Delta)(3 + \Delta)}{2}$$
In the general case with arbitrary release times, the ratio is: $$(2 \log m + 1)(1 + \sqrt{m\Delta})(1 + m\Delta)(2 + \Delta)$$
Notably, for the deterministic case ($\Delta = 0$), these results provide the first approximation bounds for non-preemptive co-flow scheduling, simplifying to $O(\log m)$ approximations.
Discussion and Future Work
While this work provides a theoretical foundation, the competitive ratios are relatively large, suggesting they may be pessimistic upper bounds. Furthermore, solving large-scale time-indexed LPs remains computationally intensive. Future research should focus on tightening these bounds and evaluating the algorithm's performance in real-world network simulators to account for transient congestion and background traffic.
Summary updated