[Paper Review] Task-Cloning Algorithms in a MapReduce Cluster with Competitive Performance Bounds
This paper proposes SRPTMS+C, a novel online task-cloning algorithm for MapReduce clusters that minimizes weighted job flowtime by leveraging the Shortest Remaining Processing Time (SRPT) principle. It achieves a (1+ε)-speed o(1/ε²)-competitive ratio and reduces weighted/unweighted job flowtime by nearly 25% compared to the Mantri baseline, outperforming existing heuristic-based schemes with formal performance bounds while respecting MapReduce's phase precedence constraints.
Job scheduling for a MapReduce cluster has been an active research topic in recent years. However, measurement traces from real-world production environment show that the duration of tasks within a job vary widely. The overall elapsed time of a job, i.e. the so-called flowtime, is often dictated by one or few slowly-running tasks within a job, generally referred as the "stragglers". The cause of stragglers include tasks running on partially/intermittently failing machines or the existence of some localized resource bottleneck(s) within a MapReduce cluster. To tackle this online job scheduling challenge, we adopt the task cloning approach and design the corresponding scheduling algorithms which aim at minimizing the weighted sum of job flowtimes in a MapReduce cluster based on the Shortest Remaining Processing Time scheduler (SRPT). To be more specific, we first design a 2-competitive offline algorithm when the variance of task-duration is negligible. We then extend this offline algorithm to yield the so-called SRPTMS+C algorithm for the online case and show that SRPTMS+C is $(1+ε)-speed$ $o(\frac{1}{ε^2})-competitive$ in reducing the weighted sum of job flowtimes within a cluster. Both of the algorithms explicitly consider the precedence constraints between the two phases within the MapReduce framework. We also demonstrate via trace-driven simulations that SRPTMS+C can significantly reduce the weighted/unweighted sum of job flowtimes by cutting down the elapsed time of small jobs substantially. In particular, SRPTMS+C beats the Microsoft Mantri scheme by nearly 25% according to this metric.
Motivation & Objective
- To address the straggler problem in MapReduce clusters, where slow tasks drastically increase job completion time.
- To design a scheduling algorithm that minimizes the weighted sum of job flowtimes, considering precedence between Map and Reduce phases.
- To provide performance guarantees (competitive bounds) for online job scheduling with limited prior knowledge of task durations.
- To reduce reliance on full task duration distributions by using only first and second moments of task durations.
- To outperform heuristic-based speculative execution schemes like Mantri with provable efficiency and lower system instrumentation overhead.
Proposed method
- Formulate the job scheduling problem as a stochastic optimization task to minimize weighted job flowtime under precedence constraints between Map and Reduce phases.
- Design an offline 2-competitive algorithm under the assumption of negligible task duration variance, inspired by the SRPT scheduler.
- Extend the offline algorithm to an online setting via the SRPTMS+C algorithm, using resource augmentation (1+ε-speed) to overcome theoretical lower bounds.
- Apply potential function analysis to derive an o(1/ε²)-competitive upper bound for SRPTMS+C in the online case.
- Integrate task cloning by launching backup copies of tasks based on effective workload estimates, prioritizing tasks with shorter remaining processing time.
- Use trace-driven simulations on real-world job traces to evaluate performance, comparing SRPTMS+C against SCA and Mantri under varying cluster sizes and parameters.
Experimental results
Research questions
- RQ1Can a task-cloning algorithm achieve provable competitive performance bounds for minimizing weighted job flowtime in a MapReduce cluster?
- RQ2How does respecting Map-Reduce phase precedence improve scheduling efficiency compared to ignoring such constraints?
- RQ3What is the impact of using only first and second moments of task durations instead of full distributions on algorithm performance?
- RQ4How does the SRPTMS+C algorithm compare to heuristic-based schemes like Mantri in terms of flowtime reduction and system overhead?
- RQ5What parameter settings (ε, r) optimize the trade-off between flowtime reduction and resource utilization in the SRPTMS+C algorithm?
Key findings
- SRPTMS+C reduces the weighted sum of job flowtimes by nearly 25% compared to the Mantri baseline scheme in trace-driven simulations.
- The algorithm achieves a (1+ε)-speed o(1/ε²)-competitive ratio for online scheduling, providing formal performance guarantees.
- For small jobs, over 50% complete within 100 seconds under SRPTMS+C, compared to 46% and 44% under SCA and Mantri, respectively.
- For large jobs, 90% complete within 1000 seconds under SRPTMS+C, outperforming SCA (88%) and Mantri (86%).
- The offline algorithm achieves a 2-competitive ratio when task duration variance is negligible, with high-probability completion time bounds.
- The algorithm performs well even with 8K machines, achieving flowtime performance comparable to 12K-machine clusters, indicating efficient resource utilization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.