Abstract
Due to the ubiquity of batch data processing in cloud computing, the related problem of scheduling malleable batch tasks and its extensions have received significant attention recently. In this paper, we consider a fundamental model where a set of $n$ tasks is to be processed on $C$ identical machines and each task is specified by a value, a workload, a deadline and a parallelism bound. Within the parallelism bound, the number of machines assigned to a task can vary over time without affecting its workload. For this model, we obtain two core results: a sufficient and necessary condition such that a set of tasks can be finished by their deadlines on $C$ machines, and an algorithm to produce such a schedule. These core results provide a conceptual tool and an optimal scheduling algorithm that enable proposing new algorithmic analysis and design and improving existing algorithms under various objectives.
Introduction
In cloud computing, batch processing often involves malleable tasks. Unlike "rigid" tasks that require a fixed number of processors, a malleable task's workload is constant, but the number of machines assigned to it can change over time, up to a specific parallelism bound. The core challenge is scheduling $n$ such tasks on $C$ identical machines to optimize for goals like social welfare (total value of completed tasks) or machine minimization. While the "Earliest Deadline First" (EDF) rule is optimal for single-machine scheduling, it does not translate directly to the malleable, multi-processor world. This paper introduces a theoretical framework to bridge this gap.
Theoretical Foundations: The Boundary Condition and LDF
The authors build their approach on two core theoretical results. First, they identify a Boundary Condition: a sufficient and necessary test to determine if a set of independent malleable tasks can all be completed by their deadlines on $C$ machines. This condition relies on analyzing resource utilization relative to machine capacity.
Second, they propose the Latest Deadline First (LDF) algorithm. Unlike classic EDF, LDF works by identifying an "optimal resource utilization state" that ensures machines are filled in a "stepped-shape" manner. This approach preserves maximum flexibility for future tasks by maintaining a specific distribution of idle resources.
Algorithmic Framework
Using these foundations, the authors derive several advanced algorithms:
- GreedyRLM: An improved greedy algorithm that considers tasks in order of their "marginal value" (value per unit of workload).
- Dynamic Programming (DP): The first exact DP algorithm for social welfare maximization in this context, using an $L$-dimensional vector to track resource utilization across different deadline segments.
- Machine Minimization: An exact algorithm that uses binary search combined with the boundary condition to find the minimum number of machines needed for a feasible schedule.
Key Insights: Stepped-Shape Utilization
A key "aha moment" in the paper is the realization that an optimal schedule should maintain a stepped-shape utilization profile. By ensuring that the number of available machines at earlier time slots is always greater than or equal to later slots (within a deadline window), the scheduler preserves the ability to fit in urgent, high-parallelism tasks later.
The authors also define slackness ($s$) as the ratio of a task's deadline to its minimum possible execution time. They show that the performance of greedy algorithms is fundamentally tied to this ratio, with GreedyRLM achieving a performance guarantee of $\frac{s-1}{s}$.
Key Results
The paper provides rigorous mathematical proofs for several performance guarantees:
- Optimal Greedy Performance: The $\frac{s-1}{s}$ bound for GreedyRLM is proven to be the best possible for any marginal-value-based greedy algorithm.
- Exact Solutions: The authors provide the first exact algorithms for social welfare maximization ($O(ndC^L)$ complexity) and machine minimization ($O(n^2, L \cdot n \log n)$ complexity).
- Weighted Completion Time: They improve upon previous approximation algorithms for minimizing maximum weighted completion time, achieving a $(1+\epsilon)$-approximation.
Conclusion
While the dynamic programming algorithm's complexity is exponential in the number of distinct deadlines ($L$), this is often manageable in practice where deadlines are grouped into windows. Future work could extend this framework to heterogeneous cloud environments with varying machine configurations or to tasks with complex precedence constraints (DAGs).
Summary updated