Abstract
We study a single-server scheduling problem for the objective of minimizing the expected cumulative holding cost incurred by jobs, where parameters defining stochastic job holding costs are unknown to the scheduler. We consider a general setting allowing for different job classes, where jobs of the same class have statistically identical holding costs and service times, with an arbitrary number of jobs across classes. In each time step, the server can process a job and observes random holding costs of the jobs that are yet to be completed. We consider a learning-based $c\mu$ rule scheduling which starts with a preemption period of fixed duration, serving as a learning phase, and having gathered data about jobs, it switches to nonpreemptive scheduling. Our algorithms are designed to handle instances with large and small gaps in mean job holding costs and achieve near-optimal performance guarantees. The performance of algorithms is evaluated by regret, where the benchmark is the minimum possible total holding cost attained by the $c\mu$ rule scheduling policy when the parameters of jobs are known. We show regret lower bounds and algorithms that achieve nearly matching regret upper bounds. Our numerical results demonstrate the efficacy of our algorithms and show that our regret analysis is nearly tight.
Introduction
In classical scheduling theory, minimizing the total weighted completion time (or cumulative holding cost) is a fundamental problem. When job parameters—specifically the cost per unit time ($c$) and the service rate ($\mu$)—are known, the optimal policy is the Smith’s rule, also known as the $c\mu$ rule. This rule dictates that jobs should be prioritized in decreasing order of their $c\mu$ indices.
However, in many modern applications such as data center management, content moderation, or emergency services, these parameters are not known a priori. Instead, the holding cost of a job is often a stochastic process that can only be observed while the job remains in the system. This creates an exploration-exploitation trade-off: the scheduler must process jobs to clear the queue but also needs to observe them to learn which ones are the most costly to delay.
The Preemptive-then-Nonpreemptive (PN) $c\mu$ Rule
To address this uncertainty, we propose the Preemptive-then-Nonpreemptive (PN) $c\mu$ rule. This algorithm operates in two distinct phases:
- The Learning Phase (Preemption): For a fixed duration $\tau$, the server is allowed to preempt jobs. By switching between jobs at each time step, the scheduler can observe the random holding costs of all jobs in the system, allowing for the refinement of mean cost estimates ($\hat{c}$). While preemption facilitates learning, it delays the completion of any single job, incurring a "preemption cost."
- The Commitment Phase (Non-preemption): After the learning phase, the algorithm transitions to a non-preemptive mode. It calculates the estimated $c\mu$ index for each job class and processes jobs in that order until the queue is empty.
Handling Unbalanced Job Classes
A significant challenge arises when job classes are "unbalanced"—for instance, when one class contains significantly more jobs than others. In such cases, a small estimation error during the learning phase can lead to a suboptimal scheduling order that persists for a long duration, resulting in massive regret.
To mitigate this, we developed a refined version of the PN algorithm. This version utilizes Upper and Lower Confidence Bounds (UCB/LCB). It prioritizes the largest job class by default unless another class is statistically proven, via its confidence intervals, to have a significantly higher $c\mu$ index. This "conservative" approach prevents the scheduler from committing to an expensive error early in the process.
Key Insights and Regret Analysis
The performance of our algorithms is measured by regret, defined as the difference between the total holding cost incurred by our policy and the cost incurred by an oracle that knows all parameters. We decompose regret into three primary components:
- Preemption Delay: The cost added by not finishing jobs during the learning phase.
- Ordering Errors: The cost of picking the wrong job class to prioritize first.
- Suboptimal Sequencing: The cost of any ordering mistakes in the remaining queue.
Our analysis shows that the optimal duration for the learning phase $\tau$ scales with $S^{2/3}$, where $S$ is a scaling factor for the number of jobs. This leads to a near-optimal regret bound of $O(S^{2/3})$, matching the theoretical lower bounds established in this work.
Numerical Results and Conclusion
We validated our theoretical findings using synthetic simulations with sub-Gaussian cost distributions (e.g., Bernoulli, Poisson) and service times drawn from Pareto distributions to mimic heavy-tailed real-world workloads. The results demonstrate that the PN $c\mu$ rule is robust across various scenarios. It avoids the pitfalls of "pure" preemptive strategies (which fail when costs are similar) and "pure" non-preemptive strategies (which fail when cost gaps are large).
Future research will focus on "blind" scheduling scenarios where both the mean holding costs and the mean service times are unknown, as well as tightening the bounds for stochastic service times.
Summary updated