Timely Cloud Computing: Preemption and Waiting

Ahmed Arafa, Roy D. Yates, H. Vincent Poor

In modern Internet of Things (IoT) and remote sensing applications, raw data often requires heavy-duty computation that exceeds local processing capabilities. These tasks are typically offloaded to cloud servers. However, the stochastic nature of computation times introduces a significant challenge: by the time a result is returned, the information may already be stale. This paper investigates the optimization of data freshness in such systems using the Age of Information (AoI) metric.

System Model and the AoI Problem

The researchers model a system where a scheduler manages the timing of data measurements and uploads to a cloud server. The goal is to minimize the AoI at a remote monitor, which is defined as the time elapsed since the latest successfully received update was originally sampled.

System model of a cloud-based monitoring system with a scheduler, sensor, and remote monitor.

The core problem is a trade-off between waiting for a slow, ongoing computation to finish or preempting it to start a fresh measurement. If a task takes too long, the resulting update will have a high age upon arrival. Conversely, frequent preemption might waste resources and delay the delivery of any update.

Methodology: Waiting and Preemption

The authors propose a "generate-at-will" system where the scheduler employs a stationary deterministic policy characterized by two parameters:

  1. Waiting Time ($W$): An idle period after an update is received before the next measurement is triggered.
  2. Cutoff Time ($\gamma$): A maximum service time threshold. If a cloud computation exceeds $\gamma$, it is cancelled (preempted), and a new measurement is immediately initiated.

To find the optimal values for $W$ and $\gamma$, the study utilizes fractional programming and Lagrangian duality to minimize the long-term average AoI. This approach is applied to general service time distributions, with specific focus on exponential and shifted exponential distributions (where a constant overhead $c$ is present).

Key Insights: Thresholds and Phase Transitions

The analysis reveals that the optimal strategy follows a threshold structure. The scheduler should not necessarily sample immediately after receiving an update; instead, it should wait until the AoI reaches a specific threshold.

A particularly interesting finding is the "phase transition" observed in shifted exponential distributions. The researchers identified a critical value for the constant overhead, $c = \sqrt{2}$. If the overhead is large ($c \ge \sqrt{2}$), a "zero-wait" policy—sampling immediately after an update—becomes optimal. For smaller overheads, strategic waiting is required to maintain optimal freshness.

Performance Results

The proposed "optimal preemption + optimal waiting" policy was evaluated against several baselines. As shown in the performance analysis, this combined approach consistently achieves the lowest long-term average AoI.

Comparison of long-term average AoI across different policies as a function of service overhead $c$.

The results demonstrate that preemption is a powerful tool for preventing the system from being "clogged" by outlier tasks that take an unusually long time. In AoI-sensitive systems, completing every task is secondary to ensuring that the monitor receives the most recent information possible.

Conclusion

This research highlights that in cloud-based monitoring, "more work" does not always mean "better information." By strategically waiting and preempting slow computations, systems can significantly improve the timeliness of remote monitoring. Future work may extend these models to account for transmission delays, multi-source competition for cloud resources, and energy constraints in battery-powered devices.

Summary updated

BibTeX
@inproceedings{arafa2019timely,
  author = {Ahmed Arafa and Roy D. Yates and H. Vincent Poor},
  title = {{Timely Cloud Computing: Preemption and Waiting}},
  booktitle = {Allerton},
  year = {2019},
  doi = {10.1109/allerton.2019.8919891},
}
Figure