TL;DR
This paper introduces an "agile dynamic provisioning" technique for multi-tier internet applications that dynamically adjusts server resources to handle fluctuating workloads. It combines predictive and reactive methods to manage both long-term trends and sudden spikes, significantly improving responsiveness and reducing overhead compared to existing approaches.
What Problem Does This Paper Address?
Modern internet applications are increasingly complex, built using multi-tier architectures (e.g., web server, application server, database). These applications face highly dynamic workloads with variations occurring over different time scales, from daily patterns to sudden "flash crowds." Provisioning enough resources to handle peak loads is difficult and expensive, while under-provisioning leads to performance degradation and outages. Traditional methods often struggle with the complexity of multi-tier systems, either by treating them as a black box or by independently managing each tier, which can lead to shifting bottlenecks and slow responses. This paper addresses the challenge of efficiently and dynamically allocating resources to multi-tier applications to meet performance guarantees (SLAs) under varying loads.
Methods
The core of the proposed solution is a two-pronged approach:
- "How Much to Provision": A novel analytical model based on queuing theory is used to determine the optimal number of servers for each tier. This model treats each tier as a G/G/1 queuing system, allowing it to capture arbitrary arrival and service time distributions. It accounts for factors like session arrival rates, per-tier response times, and the aggregate demand triggered by a single user request. Crucially, it considers the entire application's needs rather than just individual tiers.
- "When to Provision": This is handled by a combination of:
- Predictive Provisioning: For long-term variations (hours/days), a workload predictor estimates future demand based on historical data and patterns (e.g., time-of-day effects). This allows proactive resource allocation before peak demand hits.
- Reactive Provisioning: For short-term fluctuations and prediction errors (minutes), this mechanism quickly responds to observed anomalies or sudden load spikes. It can be triggered by workload deviations or on-demand by a "sentry" component.
- Agile Server Switching: To enable rapid resource reallocation, the system leverages Virtual Machine Monitors (VMMs) like Xen. This allows servers to be quickly switched between applications, drastically reducing the overhead from minutes to milliseconds. Techniques are employed to manage residual sessions on servers being moved.
- Request Policing: A "sentry" component at the front-end of the application enforces admission control, dropping excess sessions when capacity cannot be increased further, ensuring SLAs are met.
Datasets
The paper describes experiments conducted on a 40-machine Xen/Linux-based hosting platform. The applications used were:
- Rubis: An eBay-like auction site.
- Rubbos: A bulletin-board application similar to Slashdot.
Workloads for these applications were generated based on real-world traces, specifically:
- Rubis: Workload generated from the 1998 Soccer World Cup site traces [Arlitt and Jin 1999].
- Rubbos: Workload generated from the DynaServer group at Rice University.
The paper also mentions using traces from the 1998 Soccer World Cup site for experiments on predictive and reactive provisioning.
Key Insights and Ideas
- Multi-tier complexity is key: Treating multi-tier applications as a single black box or managing tiers independently is insufficient. The interaction between tiers and potential for shifting bottlenecks requires a holistic approach.
- Predictive + Reactive is essential: Long-term patterns need proactive handling (predictive), while sudden, unpredictable events require rapid responses (reactive). Neither alone is sufficient.
- VMMs are game-changers for agility: Virtualization significantly reduces the overhead of reallocating servers, enabling truly agile provisioning. However, managing residual sessions is crucial for seamless transitions.
- "How much" and "When" are distinct but coupled: The analytical model determines the capacity needed, while the predictive/reactive mechanisms decide when to acquire it.
- Policing is a necessary fallback: When provisioning cannot keep up, admission control (policing) is vital to maintain performance guarantees.
Key Results
- Responsiveness: The system demonstrated the ability to double the capacity of a three-tier application within five minutes during a flash crowd, maintaining response-time targets.
- Reduced Overhead: Server switching time was reduced from several minutes to less than a second, while still meeting performance targets for residual sessions.
- Effectiveness vs. Single-Tier Methods: Experiments showed that independent per-tier provisioning and black-box approaches failed to adequately handle multi-tier dynamics, leading to SLA violations. The proposed multi-tier model successfully anticipated shifting bottlenecks.
- Handling Non-Replicable Tiers: The system correctly identified and handled constraints imposed by non-replicable tiers (like databases) by invoking policing instead of futile capacity additions.
Limitations and Future Work
- Model Simplifications: The core model assumes homogeneous servers and perfect load balancing within tiers. While the authors mention complementary work addressing load imbalances, this is a simplification.
- Parameter Estimation: The model relies on parameters like per-tier response times and workload characteristics, which are obtained through online measurements or offline profiling. The accuracy of these measurements impacts provisioning decisions.
- Future Work: The authors suggest that more sophisticated queuing models (like Layered Queueing Networks) could potentially replace their simpler G/G/1 building blocks for more accurate predictive provisioning. They also mention the possibility of comparing their queuing-theory-based model with probabilistic modeling approaches like Tree-Augmented Bayesian Networks (TANs).
Summary updated