Optimizing Stochastic Scheduling in Fork-Join Queuing Models: Bounds and Applications

Wasiur R. KhudaBukhsh, Amr Rizk, Alexander Frömmgen, Heinz Koeppl

Introduction

Modern distributed computing relies on parallel processing frameworks like MapReduce, Apache Spark, and multipath network protocols such as MPTCP. These systems typically operate under a Fork-Join (FJ) model: an incoming job is "forked" into multiple tasks, processed in parallel across several servers, and "joined" only when the final task completes.

Despite their ubiquity, FJ systems are notoriously difficult to analyze mathematically. Exact closed-form expressions for waiting and response times are generally unavailable for systems with more than two servers. This paper addresses this gap by providing computable stochastic bounds and optimizing scheduling strategies to balance the inherent trade-offs of parallelization.

The Fork-Join Scheduling Problem

System designers face a fundamental tension between two competing forces:

  1. Parallelization Benefit: Distributing a job across more servers reduces the individual workload per server, potentially speeding up task completion.
  2. Synchronization Penalty: Because a job is only as fast as its slowest task, increasing the number of servers increases the statistical likelihood that at least one "straggler" will delay the entire job.
Fork-Join model illustrating the scaling of tasks across multiple servers.

As illustrated in Figure 1, the efficiency of this process depends on how well an application scales. The authors model this using a scaling factor $\phi \in [0, 1]$. A value of $\phi=1$ represents perfect linear scaling (e.g., Monte Carlo simulations), while $\phi < 1$ indicates diminishing returns (e.g., video transcoding), where the total work increases as it is split further.

Methodology: Computable Stochastic Bounds

Since exact analysis is intractable, the authors derive computable stochastic bounds on the tail probabilities of waiting and response times. Their approach utilizes several advanced mathematical techniques:

  • Martingale Analysis: By constructing separate martingales for each server and applying Doob’s sub- and supermartingale inequalities, they establish robust performance bounds.
  • Probabilistic Scheduling: The framework introduces stochastic task assignment, where jobs are distributed across a random subset of servers (e.g., via a Binomial distribution). This allows for a more flexible optimization space than traditional deterministic scheduling.
  • Optimization Framework: The derived upper bounds serve as objective functions. By minimizing these bounds, the authors can identify optimal scheduling parameters, such as the ideal probability $p$ for selecting a server from a heterogeneous pool.

Key Insights and Results

The research yields several critical insights into the behavior of parallel systems:

  • Scaling Dictates Strategy: For applications with high parallelization benefits ($\phi \to 1$), the optimal strategy is typically to utilize all available resources. Conversely, for poorly scaling applications ($\phi \to 0$), it is often better to use fewer, faster servers to avoid the "synchronization trap."
  • The Heterogeneity Bottleneck: In systems mixing fast on-demand instances with slower spot instances, performance is heavily constrained by the slowest selected node. The system is effectively bottlenecked by the first-order statistic of service rates.
  • Logarithmic Delay Growth: In scenarios with no parallelization benefit ($\phi=0$), waiting time percentiles grow logarithmically—$O(\log E[S])$—relative to the number of servers used.
Empirical waiting time distribution vs. the derived stochastic upper bound.

As shown in Figure 2, the derived exponential upper bounds closely track empirical data obtained through discrete-event simulations. This validates the utility of using these bounds as proxies for system performance in real-time optimization.

Applications and Future Work

The authors evaluated their theoretical framework using custom simulations and Mininet-based network emulations of Multipath TCP (MPTCP). In the MPTCP context, they found that increasing the average number of subflows could successfully overcome synchronization penalties, leading to measurable decreases in total response time.

Future research directions include applying this framework to cloud pricing models. By dynamically modulating the number of utilized servers based on the fluctuating costs of revocable spot instances (e.g., Amazon EC2), providers could balance monetary expenditure against guaranteed stochastic bounds for job completion times.

Summary updated

BibTeX
@inproceedings{khudabukhsh2017optimizing,
  author = {Wasiur R. KhudaBukhsh and Amr Rizk and Alexander Frömmgen and Heinz Koeppl},
  title = {{Optimizing Stochastic Scheduling in Fork-Join Queuing Models: Bounds and Applications}},
  booktitle = {INFOCOM},
  year = {2017},
  doi = {10.1109/infocom.2017.8057013},
}
Figure