Abstract
This paper introduces BEKP, a new approximation algorithm for scheduling jobs with the option to reject them at a cost proportional to their processing time. This model is particularly relevant for "green" cloud computing providers who must balance local machine utilization with the cost of offloading tasks to traditional data centers. By adapting subset-sum techniques, the authors achieve a $1.25(1+\epsilon)$ approximation ratio, a significant improvement over the previous $1.5$ state-of-the-art. Experimental results demonstrate that BEKP is not only more accurate but also more computationally efficient for large-scale workloads.
Introduction
In traditional scheduling, the primary objective is typically to minimize the makespan—the time at which the last job finishes. However, modern cloud infrastructures, such as those utilizing "digital boilers" for heat recovery, operate under different constraints. These energy-efficient machines are limited in number. When demand exceeds capacity, providers face a choice: increase the makespan on local machines or "reject" jobs by offloading them to external data centers at a penalty.
This paper addresses the scheduling problem where the rejection cost is directly proportional to the job's size (processing time). The challenge lies in finding the "sweet spot" that minimizes the total cost: the sum of the machine occupation (makespan $\times$ number of machines) and the total rejection penalties.
Problem Formulation
The problem involves $m$ machines and $n$ jobs. Each job $i$ has a processing time $p_i$. A schedule $\mathcal{S}$ determines which jobs are accepted and how they are assigned to machines. The total cost $Z^{\mathcal{S}}$ is a weighted sum of the resulting makespan $C^{\mathcal{S}}$ and the total area of rejected jobs $R^{\mathcal{S}}$.
The BEKP Algorithm
The proposed BEKP algorithm draws inspiration from the Multiple Subset Sum Problem (MSSP) and operates in three distinct phases:
- Job Categorization: For a given target makespan $T$, jobs are classified as "long" or "short." Long jobs are further partitioned into four size-based "buckets" (e.g., jobs taking between $3/4T$ and $T$).
- The
FillMaxAreaRoutine: This core component attempts to maximize the area of accepted jobs on the $m$ machines. By exploiting the limited number of ways large jobs can be combined within a makespan $T$, the algorithm efficiently explores valid configurations. Short jobs are then used to greedily fill remaining capacity. - Geometric Search: As the optimal makespan is unknown, the algorithm performs a search over a range $[L, U]$ using a geometric progression (stepping by $1+\epsilon$) to find the optimal balance between makespan and rejection costs.
Experimental Evaluation
The authors evaluated BEKP using synthetic datasets with job times following a log-normal distribution to simulate realistic diversity in task sizes.
- Performance: BEKP consistently outperformed the standard Longest Processing Time (LPT) heuristic and matched or exceeded the performance of the previous state-of-the-art algorithm, LIULU.
- Efficiency: A key advantage of BEKP is its complexity: $O(m^3(m+n) \log_{1+\epsilon} \rho)$. Unlike LIULU, which scales cubically with the number of jobs ($n^3$), BEKP scales cubically with the number of machines ($m^3$). In typical cloud scenarios where $n \gg m$, BEKP offers significant speedups.
- Accuracy: In all tests, the cost produced by BEKP remained within 20% of the theoretical lower bound calculated via Integer Linear Programming (ILP).
Discussion and Insights
The assumption of proportional rejection costs allows the scheduling problem to be treated similarly to a packing problem. The "1.25" factor is derived from the algorithm's ability to guarantee that the accepted job area is at least $3/4$ of the optimal area by carefully managing "waste" through job bucketing.
While BEKP provides strong theoretical and practical results for offline scheduling, future work is needed to adapt these techniques for "online" environments where jobs arrive dynamically. Additionally, incorporating fixed overheads or hard deadlines would further refine the model for complex real-world applications.
Summary updated