CarbonClipper: Optimal Algorithms for Carbon-Aware Spatiotemporal Workload Management

Adam Lechowicz, Nicolas Christianson, Bo Sun, Noman Bashir, Mohammad Hajiesmaili, Adam Wierman, Prashant J. ShenoyarXiv 2024 · OpenReview

Abstract

We study carbon-aware spatiotemporal workload management, which seeks to address the growing environmental impact of data centers. We formalize this as an online problem called spatiotemporal online allocation with deadline constraints ($\mathsf{SOAD}$), in which an online player completes a workload (e.g., a batch compute job) by moving and scheduling the workload across a network subject to a deadline $T$. At each time step, a service cost function is revealed, representing, e.g., the carbon intensity of servicing a workload at each location, and the player must irrevocably decide the current allocation. Furthermore, whenever the player moves the allocation, it incurs a movement cost defined by a metric space $(X,d)$ that captures, e.g., the overhead of migrating a compute job. $\mathsf{SOAD}$ formalizes the open problem of combining general metrics and deadline constraints in the online algorithms literature, unifying problems such as metrical task systems and online search. We propose a competitive algorithm for $\mathsf{SOAD}$ along with a matching lower bound that proves it is optimal. Our main algorithm, ${\rm C{\scriptsize ARBON}C{\scriptsize LIPPER}}$, is a learning-augmented algorithm that takes advantage of predictions (e.g., carbon intensity forecasts) and achieves an optimal consistency-robustness trade-off. We evaluate our proposed algorithms for carbon-aware spatiotemporal workload management on a simulated global data center network, showing that ${\rm C{\scriptsize ARBON}C{\scriptsize LIPPER}}$ significantly improves performance compared to baseline methods and delivers meaningful carbon reductions.

Introduction: The SOAD Framework

As the environmental impact of AI and cloud computing grows, researchers are seeking ways to make "carbon-aware" decisions—scheduling jobs when and where the power grid is cleanest. This paper introduces SOAD (Spatiotemporal Online Allocation with Deadline Constraints), a framework for moving compute workloads across different data centers and time slots to minimize costs like carbon emissions.

A scheduler faces two conflicting challenges: spatial movement across a network and strict temporal deadlines. Moving data between regions incurs a "switching cost" (latency or energy), typically studied as a Metrical Task System (MTS). Simultaneously, jobs must be finished by a specific time; waiting too long for clean energy risks being forced to run the job at the last minute using "dirty" energy. The SOAD problem bridges this gap, providing a way to navigate general metric spaces while respecting strict temporal constraints.

The SOAD problem modeled on a global metric space (X, d), where workloads can move between regions or switch between ON and OFF states.

Methodology: PCM and ST-CLIP

The authors propose two primary algorithms to address these challenges:

  • PCM (Pseudo-Cost Minimization): This robust baseline uses Randomized Metric Tree Embeddings to simplify complex global network distances into a tree structure. It then employs a "pseudo-cost" function—a mathematical hedging strategy that assigns an artificial cost to "not making progress." This prevents the algorithm from being too "lazy" and risking a deadline violation.
  • ST-CLIP (Spatiotemporal Consistency-Limited Pseudo-cost): This is the "learning-augmented" core of CarbonClipper. It leverages untrusted ML predictions of future carbon costs to improve performance. To ensure safety, it uses a consistency-robustness trade-off, following ML advice as long as costs remain within a factor of $(1+\epsilon)$ of the advice's cost, but switching to the robust PCM strategy if the advice becomes unreliable.
Mapping the physical metric space of data centers to a hierarchical tree structure using randomized metric tree embeddings.

Key Results and Insights

The algorithms were evaluated using a simulated global network of data centers with real-world AWS latency data, carbon intensity traces from Electricity Maps and WattTime, and Google cluster job traces. Key findings include:

  • Superior Performance: ST-CLIP improved upon standard heuristic baselines (like "Greedy" or "Delayed Greedy") by an average of 32% to 79%.
  • Robustness: When provided with adversarial ML predictions, ST-CLIP gracefully degraded to its robust backup strategy, preventing cost explosions.
  • Efficiency: The per-slot runtime for ST-CLIP was roughly 24 milliseconds, making it practical for real-time scheduling in data centers.
  • Theoretical Optimality: The paper provides a matching lower bound, proving that their algorithm achieves the best possible worst-case performance for this class of problems.

Conclusion

CarbonClipper demonstrates that adding deadline constraints can actually improve competitive analysis by providing a "horizon" that limits adversarial punishment. While the current model focuses on single workloads, future work will address multi-job management with overlapping deadlines and server capacity constraints.

Summary updated

BibTeX
@misc{lechowicz2024carbonclipper,
  author = {Adam Lechowicz and Nicolas Christianson and Bo Sun and Noman Bashir and Mohammad Hajiesmaili and Adam Wierman and Prashant J. Shenoy},
  title = {{CarbonClipper: Optimal Algorithms for Carbon-Aware Spatiotemporal Workload Management}},
  year = {2024},
  eprint = {2408.07831},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.07831},
}
Figure