Optimizing stochastic scheduling in fork-join queueing models: Bounds and applications

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

TL;DR

This paper introduces a novel mathematical framework to derive computable stochastic bounds for waiting and response times in heterogeneous Fork-Join (FJ) queueing systems. It provides a method to optimize scheduling strategies, balancing the benefits of parallelization against the inherent synchronization penalty, leading to more efficient resource utilization in modern distributed systems.

What Problem Does This Paper Address?

Modern computing systems, from cloud platforms like MapReduce to parallel data processing frameworks, heavily rely on parallelization to improve performance. Fork-Join (FJ) queueing models are a natural way to represent these systems, where a job is split into multiple tasks that are processed in parallel, and the job only completes when all its tasks are finished. However, analyzing the performance of these systems, especially when servers are heterogeneous (i.e., have different processing capabilities) and scheduling strategies are complex, is analytically challenging. Existing methods struggle to provide exact performance metrics like waiting and response times in a general setting. This paper aims to bridge this gap by developing a generalized framework to derive computable bounds on these performance metrics and to optimize scheduling strategies for heterogeneous FJ systems.

Methods

The core of this paper lies in its development of a generalized mathematical framework for analyzing heterogeneous Fork-Join systems. The authors leverage martingale techniques and Doob's sub- and supermartingale inequalities to derive computable stochastic bounds on the tail probabilities of waiting and response times.

Key methodological contributions include:

  • Heterogeneous Server Modeling: The framework explicitly accounts for servers with varying service time distributions.
  • Probabilistic Scheduling Strategies: Instead of fixed server assignments, the paper models scheduling as a probabilistic choice of servers, allowing for dynamic adaptation and optimization. This includes strategies like binomial distributions for server selection.
  • Application-Specific Scaling: The paper introduces the concept of "parallelization benefit" as a scaling factor that modifies task service times based on the application's nature. This allows for modeling scenarios where parallelization gains are not linear.
  • Hierarchical Model: For heterogeneous servers, a hierarchical model is proposed where server characteristics (like service rates) are drawn from an underlying distribution, further enhancing the model's generality.
  • Optimization Framework: The derived bounds are used to formulate optimization problems, allowing for the identification of optimal scheduling strategies that minimize waiting and response times under various constraints (e.g., budget constraints).

Datasets

Not discussed in the paper. The paper focuses on analytical modeling and theoretical bounds, with numerical validation provided through simulations rather than experiments on real-world datasets.

Key Insights and Ideas

  • The Synchronization Penalty is Real: Even with parallelization benefits, the need for all tasks to complete before a job can exit the FJ system introduces a significant "synchronization penalty" that must be accounted for.
  • Optimal Strategies are Application-Specific: The "optimal" way to schedule tasks in an FJ system is not one-size-fits-all. It depends heavily on the application's specific parallelization benefit (how much it gains from parallelism) and the system's utilization.
  • Probabilistic Scheduling Outperforms Deterministic: In many scenarios, a probabilistic approach to selecting servers can lead to better performance (lower waiting/response times) than a fixed, deterministic assignment, especially in heterogeneous environments.
  • Heterogeneity Matters: The performance of FJ systems is significantly impacted by the heterogeneity of servers. The "slowest" or "most constrained" server often dictates the overall system performance.
  • Balancing Cost and Performance: The framework allows for optimizing scheduling strategies not just for performance but also considering economic factors, such as using cheaper, less reliable "spot instances" (modeled as servers with higher moments in service times) versus more expensive, reliable "on-demand" servers.

Key Results

The paper provides computable stochastic bounds for waiting and response times in heterogeneous FJ systems under various scaling regimes. It demonstrates that:

  • Improved Bounds: The derived bounds are shown to be effective in capturing the performance of FJ systems, as validated by simulations (e.g., Figure 2, 3, 4, 5).
  • Optimal Strategy Identification: The framework successfully identifies optimal scheduling strategies. For instance, in scenarios with no parallelization benefit, using all servers is often optimal. With partial scaling, the optimal strategy balances the scaling benefit against the synchronization penalty.
  • Application Examples: The paper illustrates the application of its framework to scenarios like cloud computing (MapReduce) and network transport protocols (Multipath TCP), showing how the proposed scheduling strategies can improve performance. For example, Figure 7 demonstrates how increasing the average number of used servers (subflows in MPTCP) can decrease response times.

Limitations and Future Work

  • Assumptions: The analysis relies on several assumptions, including work-conserving servers, renewal arrival processes, and the existence of finite MGFs for service and inter-arrival times. While these are common in queueing theory, they might not hold in all real-world scenarios.
  • Exact Analysis Elusive: While the paper provides bounds, exact analytical solutions for general heterogeneous FJ systems remain elusive, as acknowledged by the authors.
  • Complexity of Optimization: While the framework enables optimization, finding the optimal strategy can still be computationally intensive, especially for a large number of servers or complex distributions.
  • Future Work: The authors suggest extending the model to more complex FJ system variations, such as those with blocking or more intricate server dependencies. Further exploration of the trade-offs between performance and cost in cloud environments is also a promising direction. The paper also hints at the potential for applying these findings to other distributed systems beyond MapReduce and MPTCP.

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 queueing models: Bounds and applications}},
  booktitle = {INFOCOM},
  year = {2017},
  doi = {10.1109/infocom.2017.8057013},
}
Figure