Agile resource management in a virtualized data center

Wei Zhang, Hangwei Qian, Craig E. Wills, Michael RabinovichWosp/sipew 2010

TL;DR

This paper introduces "ghost VMs" – idle but ready virtual machines – to dramatically improve the agility of resource allocation in virtualized data centers. By leveraging these ghost VMs, the system can respond to sudden spikes in application demand in seconds, outperforming traditional methods that require minutes to activate new resources.

What Problem Does This Paper Address?

Utility computing platforms aim to provide computing resources on demand, but managing these resources efficiently to meet fluctuating application loads is a significant challenge. Over-provisioning resources to handle peak demand leads to waste, while under-provisioning can result in poor performance and user experience during demand surges. Traditional methods for scaling up resources, like starting new virtual machines (VMs) or migrating existing ones, are often too slow to react to sudden increases in traffic (e.g., "flash crowds"), leading to degraded service. The paper addresses this gap by focusing on agility: the ability to quickly reassign resources to meet changing demands.

Methods

The core innovation is the concept of ghost VMs. These are VMs that are already running and participating in an application's cluster management but are not actively serving client requests. They are "hidden" from the front-end load balancer. When demand increases, a ghost VM can be quickly promoted to an active VM by simply reconfiguring the load balancer, a process that takes seconds.

The system architecture consists of:

  • Resource Collector: Gathers CPU utilization data from VMs.
  • Resource Reallocator: Implements the core algorithm to adjust VM capacity and promote/demote ghost VMs based on high (HW) and low (LW) watermarks for utilization.
  • Ghost Manager: Manages the lifecycle of ghost VMs, ensuring they are available when needed and suspended when not.

The resource reallocation algorithm aims to keep VM utilization below the HW threshold. It prioritizes increasing the capacity of existing active VMs before promoting ghost VMs, and demotes active VMs to ghost VMs when demand decreases to free up resources.

Datasets

The paper uses the TPC-W benchmark (specifically the "browsing" request mix) to simulate a realistic web commerce workload. They modified the standard TPC-W configuration by reducing the mean think time and developing a testing harness to control client load and gather performance metrics. No new datasets were introduced; existing benchmarks were used for evaluation.

Key Insights and Ideas

  • Ghost VMs are a game-changer for agility: The ability to have VMs ready and participating in clusters, but not actively serving traffic, dramatically reduces the time to scale up. This is the key differentiator from traditional methods.
  • Over-provisioning active VMs can hurt performance: The paper demonstrates that simply having more active VMs than necessary can lead to performance degradation due to scheduling overhead, highlighting the importance of a more nuanced approach to resource management.
  • Agility is achievable across different virtualization technologies: The approach was successfully tested on both VMWare ESX (hard resource slices) and VMWare Server (soft resource allocation), showing its general applicability.
  • The "invisible" nature of ghost VMs is crucial: Hiding them from the load balancer ensures they don't receive traffic until explicitly activated, preventing partial or incomplete resource provisioning.

Key Results

  • Rapid Activation: The ghost VM approach can detect a sudden increase in application load and activate a ghost VM to handle client requests in as little as 18 seconds. This is significantly faster than legacy systems that might take minutes.
  • Performance Improvement: Compared to legacy systems that rely solely on suspending/resuming VMs, the ghost VM approach showed significantly better performance across key metrics like error rate, slow requests, and median response time, especially under fast load growth scenarios.
  • Competitive with Manual Control: The algorithm's performance was comparable to manually scripted resource changes, demonstrating its effectiveness even when workload patterns are known.
  • Efficient Resource Utilization: The system effectively reassigns resources, avoiding unnecessary active VMs and managing ghost VMs to balance resource availability with efficiency.

Limitations and Future Work

  • Ghost Manager Sophistication: The current ghost manager allocates ghosts proportionally to observed load. The authors suggest exploring more elaborate ghost management algorithms, as the correlation between current load and future demand might not always hold.
  • Network Utilization: The current capacity and utilization measures focus primarily on CPU. Future work will investigate incorporating network utilization into capacity determination.
  • User-Perceived Measures: Understanding the relationship between watermark thresholds (HW/LW) and user-perceived performance is an area for further exploration.
  • Geographically Distributed Data Centers: The paper focuses on a single data center. A significant future direction is understanding how the local resource manager should interact with a global resource manager for agility across distributed data centers.

Summary updated

BibTeX
@inproceedings{zhang2010agile,
  author = {Wei Zhang and Hangwei Qian and Craig E. Wills and Michael Rabinovich},
  title = {{Agile resource management in a virtualized data center}},
  booktitle = {Wosp/sipew},
  year = {2010},
  doi = {10.1145/1712605.1712626},
}
Figure