Online scheduling of time-critical tasks to minimize the number of calibrations

Zuzhi Chen, Jialin Zhang

Introduction

In many industrial and computing environments—ranging from pharmaceutical manufacturing to cloud server rentals—machines are not always ready for immediate use. They often require a calibration or activation phase (taking $\lambda$ time) before they can process work. Once calibrated, they remain active only for a limited duration ($T$).

This paper addresses the Online Scheduling of Time-Critical Tasks under these constraints. The objective is to minimize the total number of calibrations performed while ensuring every job—arriving online with a release time, unit processing time, and strict deadline—is completed on time. The authors assume an infinite pool of machines, modeling scenarios like cloud computing where resources can be "rented" on demand.

Scheduling problems vary significantly based on whether the input is known in advance (offline) or arrives dynamically (online), and whether the system uses single or multiple machines.

Comparison of scheduling results across different input types and machine configurations.

As shown in the table above, while offline scenarios often allow for optimal or near-optimal solutions (like PTAS), online scenarios are more complex. Previous work in online scheduling achieved $O(1)$-competitive ratios only when deadlines were absent. This paper fills a critical gap by providing an asymptotically optimal algorithm for online tasks with strict deadlines and non-zero activation times.

The Integrated Algorithm

The researchers propose a hybrid strategy called the Integrated Algorithm. The core innovation lies in classifying jobs based on their "window" (the duration between release and deadline) relative to the calibration period $T$:

  • $\alpha$-Long Window Jobs: These jobs have significant "slack." The algorithm employs a proactive "Virtual Scheduling" trick. At each time step, it runs a "what-if" simulation using an Earliest Deadline First (EDF) strategy to check if current calibrations can handle pending jobs. This allows the system to delay new calibrations as long as possible, effectively batching future jobs into a single $T$-length window.
  • $\alpha$-Short Window Jobs: These urgent jobs require a different approach. The authors prove a mathematical reduction that transforms the problem with activation time ($\lambda > 0$) into a simpler version where $\lambda = 0$. They then utilize an existing $e$-competitive "machine minimization" algorithm to determine when to trigger new calibrations.

The final algorithm routes incoming jobs to the appropriate sub-routine based on an optimized parameter $\alpha$ (set at $1/3$).

Key Results and Competitive Analysis

The performance of the algorithm is measured by its competitive ratio: the ratio between the calibrations performed by the online algorithm and those performed by an "all-knowing" offline optimal algorithm.

  1. General Case: The algorithm achieves a competitive ratio of $3(e + 1)\lambda + 3e + 7$. Since the authors also established a lower bound of $\max\{e, \lambda\}$, this $O(\lambda)$ result is considered asymptotically optimal—the performance scales linearly with activation time, which is the best possible theoretical "shape" for such an algorithm.
  2. Rent Minimization ($\lambda = 0$): In the special case where calibration is instantaneous, the ratio improves to $3e + 7 \approx 15.16$. This represents a major advancement over the previous state-of-the-art, which had a competitive ratio of approximately 30.

Limitations and Future Directions

While the algorithm provides a robust theoretical framework, some limitations remain. The current proof is specifically tied to unit processing times; real-world tasks often vary in length. Additionally, while the algorithm is asymptotically optimal, a numerical gap exists between the lower bound ($\approx \lambda$) and the upper bound ($\approx 11\lambda$).

Future research may focus on closing this gap or developing algorithms that are simultaneously optimal for both the number of calibrations and the total number of physical machines required at any given moment.

Summary updated

BibTeX
@article{chen2022online,
  author = {Zuzhi Chen and Jialin Zhang},
  title = {{Online scheduling of time-critical tasks to minimize the number of calibrations}},
  journal = {Theoretical Computer Science},
  year = {2022},
  doi = {10.1016/j.tcs.2022.01.040},
}
Figure