Abstract
Motivated by energy-efficient scheduling in data centers, this research addresses the "machine activation" problem, a generalization of set cover and load balancing on unrelated machines. In this scenario, $n$ jobs must be distributed among $m$ machines, each with a specific startup cost and job-specific processing times. The objective is to minimize total startup costs while maintaining a makespan constraint $L$. We present a randomized online algorithm that achieves an $(O(\log (mn)\log m), O(\log m))$-competitive ratio. This approach is notable for applying the online primal-dual framework to a mixed linear program (LP) containing both packing and covering constraints, a significant departure from traditional applications limited to one or the other.
Introduction
In modern cloud computing environments, energy efficiency is often achieved through "partial shutdown" strategies—deactivating idle hardware to reduce power consumption. However, reactivating these machines incurs a "startup cost" (representing energy spikes or latency). This creates a fundamental optimization conflict: minimizing the cost of active machines (a set cover problem) while ensuring that no single machine is overwhelmed by its workload (a load balancing problem).
While offline solutions for this "machine activation" problem exist, real-world data centers operate in an online environment. Jobs arrive dynamically, and scheduling decisions must be made immediately without knowledge of future arrivals. This paper introduces the first online algorithm for this problem, providing a near-optimal balance between cost and performance.
The Machine Activation Problem
The problem involves $n$ jobs and $m$ unrelated machines. Each machine $i$ has a startup cost $f_i$. For every job $j$ and machine $i$, there is a processing time $p_{ij}$. The goal is to select a subset of machines to activate and assign each job to an active machine such that:
- Total Startup Cost $\sum_{i \in \text{Active}} f_i$ is minimized.
- Makespan (maximum load on any machine) does not exceed a target $L$.
In the online version, jobs arrive one by one. Upon arrival, a job must be assigned to a machine. If that machine was not previously active, its startup cost is incurred.
Methodology: Primal-Dual for Mixed LPs
The core technical contribution of this work is the extension of the online primal-dual framework to handle mixed Linear Programs. Traditionally, this framework is used for either packing constraints (e.g., capacity limits) or covering constraints (e.g., ensuring all jobs are processed). This problem requires both.
1. The Potential Function
The algorithm maintains a potential function $\phi_i$ for each machine. This function is designed to be linear with respect to the machine's startup cost but exponential with respect to its current load. This dual-nature allows the algorithm to "sense" when a machine is becoming too expensive to activate or too crowded to accept more work.
2. Fractional Allocation
When a new job $j$ arrives, the algorithm first determines a fractional assignment. It increases the variables $x_{ij}$ (the fraction of job $j$ assigned to machine $i$) at a rate inversely proportional to the machine's current potential. This ensures that jobs are preferentially routed to machines that are already active or have low current utilization.
3. Online Randomized Rounding
To convert the fractional assignments into a discrete schedule, the authors employ a randomized rounding scheme. This process ensures that the expected total startup cost and the maximum load remain within provable theoretical bounds relative to the optimal offline solution.
Key Results
The research establishes a randomized online algorithm with a bicriteria competitive ratio of $(O(\log(mn) \log m), O(\log m))$.
- Makespan Guarantee: With high probability, the maximum load on any machine is at most $O(\log m)$ times the optimal offline makespan $L$.
- Cost Guarantee: The total expected startup cost is at most $O(\log(mn) \log m)$ times the cost of the optimal offline schedule.
Furthermore, the authors prove that these ratios are nearly optimal. Given the lower bounds for the constituent problems (set cover and load balancing), no online algorithm can significantly improve these factors under standard complexity assumptions.
Discussion and Future Work
This work bridges a gap in online scheduling theory by providing a robust mechanism for handling startup costs alongside load constraints. The most significant insight is the successful application of primal-dual updates to mixed LPs. This technique suggests that other complex online problems—previously thought to be outside the scope of primal-dual methods—may be solvable using similar potential-function-based approaches.
While the algorithm is theoretically near-optimal, the logarithmic factors may be influential in massive-scale systems. Future research could explore deterministic versions of this algorithm or investigate whether specific job arrival distributions (rather than worst-case sequences) allow for even tighter competitive ratios.
Summary updated