Abstract With multiple identical unit speed servers, the online problem of scheduling jobs that migrate between two phases—limitedly parallelizable or completely sequential—and choosing their respective speeds to minimize the total flow time is considered. In the limited parallelizable regime, allocating $k$ servers to a job yields a speed of $k^{1/\alpha}$ for $\alpha > 1$, representing a sub-linear, concave speedup function. In the sequential phase, a job can be processed by at most one server with a maximum speed of unity. This paper proposes a Last-Come-First-Served (LCFS) based algorithm for scheduling jobs which assigns equal speed to jobs in the same phase. The algorithm is shown to have a constant competitive ratio dependent only on $\alpha$. For the special case where all jobs are available beforehand, an improved competitive ratio is obtained.
1. Introduction
In large-scale data centers, scheduling is the fundamental mechanism for resource management. Modern workloads, such as MapReduce tasks, are rarely uniform; they often transition between highly parallelizable "elastic" phases and strictly sequential "in-elastic" phases. Minimizing the total flow time—the sum of the time elapsed between a job's arrival and its completion—is a primary objective. However, achieving this in an online setting where the scheduler does not know the remaining work of a job (non-clairvoyance) is notoriously difficult.
Historically, proving the performance of non-clairvoyant algorithms has required "speed augmentation," a theoretical framework where the online algorithm is granted more resources (e.g., faster or more servers) than the optimal offline baseline. This paper breaks that barrier, providing a constant competitive ratio for multi-phase jobs without the need for speed augmentation.
2. System Model and Problem Formulation
We consider a system with $m$ identical unit-speed servers. Jobs arrive online and consist of multiple phases. Each phase is either:
- Elastic (Parallelizable): If $k$ servers are allocated to the job, it processes at speed $s = k^{1/\alpha}$, where $\alpha > 1$. This concave function reflects the diminishing returns of parallelization.
- In-elastic (Sequential): The job can utilize at most one server, processing at a maximum speed of 1.
The scheduler is "semi-non-clairvoyant": it knows the current phase of each job but is unaware of the total work required to complete the phase or the job. The goal is to minimize the total flow time $\sum (C_j - A_j)$, where $A_j$ is the arrival time and $C_j$ is the completion time of job $j$.
3. Proposed Algorithms
3.1 FRACTIONAL-LCFS
For the online setting, the paper introduces FRACTIONAL-LCFS. This algorithm maintains a list of active jobs ordered by their arrival times. At any time $t$, it selects a fraction $\beta$ of the most recently arrived jobs. Within this set, it partitions the servers among jobs based on their phase:
- Sequential jobs are prioritized with one server each.
- Remaining servers are distributed equally among the elastic jobs.
By prioritizing recent arrivals, the algorithm mimics the behavior of Shortest Remaining Processing Time (SRPT) without requiring knowledge of job sizes, as newer jobs are statistically likely to have less remaining work.
3.2 PA-EQUI
For the static case where all jobs are available at $t=0$, the paper proposes Phase-Aware EQUI (PA-EQUI). This algorithm treats the server pool as a single resource block. If the number of sequential jobs is high, it prioritizes them; otherwise, it distributes processing power equally among elastic jobs to exploit the concave speedup function.
4. Theoretical and Numerical Results
4.1 Competitive Analysis
Using the Potential Function Method, the paper proves that FRACTIONAL-LCFS achieves a constant competitive ratio for any $\alpha > 1$. For the specific case of $\alpha = 2$, the derived bound is 636. While this constant is high, its significance lies in its independence from the number of jobs ($n$) or their sizes, and the fact that it is achieved without speed augmentation.
For the static case (PA-EQUI), the competitive ratio is significantly lower, approximately 16.67 for $\alpha = 2$. These results highlight that the "concavity" of the speedup function ($\alpha > 1$) is a critical enabler for constant competitiveness.
4.2 Simulation Performance
Simulations were conducted using Poisson-distributed job arrivals and phase counts (averaging 7 phases per job, modeled after MapReduce datasets). The results demonstrated that FRACTIONAL-LCFS significantly outperforms standard Phase-Aware First-Come-First-Served (PA-FCFS) strategies, often by a factor of 2 to 3, and remains competitive with "Inelastic-First" heuristics.
5. Conclusion
This work provides a theoretical foundation for scheduling multi-phase jobs in modern computing environments. By proving a constant competitive ratio without speed augmentation, it bridges a significant gap in scheduling theory for parallelizable workloads. Future research may focus on optimizing the parameters $\beta$ and $\theta$ to reduce the absolute value of the competitive constant and exploring the boundary case of $\alpha = 1$.
Summary updated