Introduction
In traditional scheduling theory, a machine is typically modeled as a resource that processes one job at a time. However, modern cloud computing environments—such as those managed by AWS, Azure, or GCP—rely on virtualization to run multiple jobs concurrently on a single physical server. This "capacitated" setting requires that the combined resource demands (e.g., CPU, RAM) of all active jobs on a machine do not exceed its total capacity. This paper presents the first polynomial-time algorithms with constant approximation guarantees for minimizing the weighted sum of job completion times in such environments.
The Capacitated Scheduling Problem
The authors address a scenario where each job $j$ is characterized by three parameters: a processing time $p_j$, a resource requirement $d_j$ (expressed as a fraction of a machine's capacity), and a weight $w_j$ representing its priority or importance. The objective is to minimize $\sum w_j C_j$, where $C_j$ is the completion time of job $j$.
Because this problem is NP-hard, the research focuses on finding approximation algorithms that are provably close to the optimal solution. The core challenge lies in the dual nature of the constraints: jobs must be packed efficiently in terms of resource capacity while also being ordered to prioritize high-weight, short-duration tasks.
The Weighted Smallest Volume First (WSVF) Algorithm
The central algorithmic contribution is the Weighted Smallest Volume First (WSVF) rule. In non-capacitated scheduling, the Weighted Shortest Processing Time (WSPT) rule is optimal for a single machine. In the capacitated setting, the authors identify that the relevant metric is "volume"—the product of a job's duration and its resource demand ($p_j \cdot d_j$).
As shown in the pseudocode above, WSVF sorts jobs in non-decreasing order of their volume-to-weight ratio. It then greedily schedules each job at the earliest possible time on any machine that has sufficient spare capacity for the entire duration of the job.
Illustrative Example
To demonstrate the effectiveness of the WSVF rule, the authors provide a numerical example involving eight jobs scheduled across two machines ($m_1$ and $m_2$). The table below details the parameters for each job, including the calculated priority ratio $(p_j \cdot d_j) / w_j$.
In this example, jobs with lower ratios (like $j_1$ and $j_2$) are prioritized. The Gantt chart illustrates how the algorithm packs these jobs, allowing multiple tasks to run concurrently on the same machine when their combined demands $d_j$ are $\le 1$.
Advanced Strategies: HYBRID-WSVF and Iterative Packing
The authors observe that "high-demand" jobs (those requiring more than 50% of a machine's capacity) behave differently than "low-demand" jobs. To handle the general case for $M \ge 2$ machines, they propose HYBRID-WSVF:
- High-demand jobs ($d_j > 0.5$): These are scheduled using the classic WSPT rule, as no two such jobs can share a machine.
- Low-demand jobs ($d_j \le 0.5$): These are scheduled using the WSVF rule to maximize resource utilization.
For the single-machine case ($M=1$), the paper introduces a more sophisticated iterative approach. This method repeatedly solves a knapsack-style problem to select high-weight job sets and employs 2D strip-packing techniques to fit them into the schedule.
Key Results and Approximation Guarantees
The paper establishes the first constant approximation ratios for this problem class, significantly improving upon previous non-weighted results:
- WSVF Performance: If the maximum resource demand is $\alpha < 1$, WSVF achieves an approximation ratio of $(\frac{1}{1-\alpha} + 1)$.
- General Parallel Machines ($M \ge 2$): The HYBRID-WSVF algorithm achieves a $4 + o(1/M)$ approximation ratio.
- Single Machine ($M = 1$): The iterative algorithm provides a $12 + \epsilon$ approximation ratio.
Limitations and Future Work
While providing a robust theoretical foundation, the current model assumes a single bottleneck resource and that all job information is known in advance (offline). Future research directions include extending these algorithms to handle multidimensional resource demands (e.g., simultaneous CPU and RAM constraints), online scheduling where jobs arrive dynamically, and stochastic durations to better reflect real-world uncertainty in cloud environments.
Summary updated