Cloud providers offer a diverse array of optimizations to improve efficiency, ranging from Spot VMs for low-priority tasks to hardware-level CPU overclocking. However, a significant challenge remains: matching a specific workload to the right optimization. Standard telemetry, such as CPU and RAM utilization, provides data on what a workload is doing but fails to capture the intent or the flexibility of the workload. For example, a CPU spike does not indicate whether a workload is delay-sensitive (requiring immediate resources) or delay-tolerant (capable of waiting). To bridge this gap, researchers from Microsoft and Penn State conducted a massive empirical study of 188 internal cloud workloads, representing over 100,000 VMs, to characterize workload requirements at scale.
Methodology
The study employed a multi-step approach to map workload functions to cloud optimizations:
- Requirement Mapping: Defining characteristics like statelessness and preemptibility needed for ten common optimizations.
- Large-Scale Survey: Surveying owners of 188 "first-party" Microsoft workloads, including free-form functional descriptions.
- Qualitative Coding: Using "open coding" to categorize workloads into functional classes with high inter-rater reliability (Cohen’s kappa of 0.965).
- Statistical Analysis: Correlating these classes with performance and reliability metrics to create distinct workload profiles.
Characterizing the Six Workload Families
The researchers identified six distinct workload families that encompass nearly all internal cloud activity: Big Data, Web Apps, Real-Time Communication (RTC), ML Inference, Web Proxy, and DevOps. Each family exhibits a unique "fingerprint" regarding its performance and user-facing requirements.
As shown in the figure above, RTC and ML Inference are almost entirely user-facing, necessitating high performance and low latency. In contrast, DevOps workloads are significantly less critical in terms of immediate user interaction, providing more flexibility for resource scheduling.
Unlocking Efficiency through Delay Tolerance
A key finding of the study is the "intent gap" in ML Inference. While often perceived as high-priority, a large fraction of ML Inference cores are actually delay-tolerant (e.g., background text prediction). This makes them ideal candidates for "Harvest VMs"—lower-priority resources that can be reclaimed by the provider.
The distribution of delay tolerance varies significantly across classes. While Web Apps and RTC are predominantly delay-sensitive, DevOps and ML Inference show substantial delay tolerance, allowing for more aggressive use of preemptible instances. Furthermore, the study found that 61.4% of cores are partially or fully region-agnostic, suggesting massive potential for "carbon-aware" computing by shifting workloads to greener energy grids.
Key Results and Optimization Potential
The mapping of workloads to optimizations revealed significant untapped potential:
- Overclocking: 41% of cores (primarily Big Data and RTC) are suitable for overclocking to meet peak demand.
- Underclocking: 36% of cores could be underclocked to save power without impacting user experience.
- Auto-scaling: 33% of cores are ideal for auto-scaling, with Web Proxies showing 95.6% suitability.
- Reliability: While most cores require 99.9% availability, DevOps workloads often have no strict availability requirements, allowing for more flexible placement.
Future Directions
While manual surveys provided high-quality ground truth, they are not a scalable long-term strategy. The researchers plan to use this labeled dataset to train machine learning models capable of automatically inferring complex traits—like delay tolerance and statelessness—directly from standard telemetry signals. This "cloud-workload interface" will eventually allow the platform to dynamically adapt to the changing needs of diverse services, further maximizing cloud efficiency and reliability.
Summary updated