TL;DR
This paper tackles the challenge of efficiently allocating services to cloud machines while ensuring reliability against failures, especially when memory is a bottleneck. They introduce a novel two-step heuristic that balances resource usage and failure probability, outperforming simpler methods in simulations.
What Problem Does This Paper Address?
Cloud platforms are becoming increasingly large and complex, hosting numerous services that require significant resources. A critical challenge is ensuring these services remain available and performant despite inevitable machine failures. Traditional approaches often struggle with the scale of modern clouds or are too simplistic to handle nuanced reliability requirements. This paper focuses on a specific cloud scenario: a large platform with a relatively small number of large, independent services. The core problem is to allocate these services to physical machines (PMs) such that:
- Resource Constraints are Met: Each service gets its required CPU and memory.
- Reliability is Ensured: The probability of a service not receiving enough CPU due to machine failures is below a defined threshold (SLA).
- Efficiency is Achieved: The number of machines used is minimized, and the allocation process is computationally efficient.
The paper highlights that estimating the reliability of an allocation is a computationally hard problem (#P-complete), making direct optimization difficult.
Methods
The authors propose a two-step heuristic approach:
- Focus on Reliability (Normal-Approx Model):
- They first relax the problem by considering global resource capacities rather than per-machine constraints.
- They introduce a "Normal-Approx" model that approximates the binomial distribution of available CPU (due to failures) with a Gaussian distribution. This allows for a more tractable mathematical formulation.
- The goal here is to find "homogeneous allocations" where each service is distributed across machines with the same CPU allocation per machine. This phase uses techniques like binary search and column generation to find optimal homogeneous allocations that satisfy the relaxed reliability constraints.
- Focus on Packing (Splitting Services):
- Once reliable "slices" of services are determined, the second step focuses on packing these slices onto physical machines, considering both CPU and memory constraints.
- They leverage the fact that memory constraints limit the number of services per machine, leading to a manageable number of "machine configurations" (sets of services on a machine).
- A column generation technique is employed to solve a linear program formulated over these configurations. This method efficiently explores a vast number of potential configurations without explicitly enumerating them all.
- A sub-problem, "SPLIT-KNAPSACK," arises from this, which is proven to be NP-complete. The authors propose a dynamic programming approach to solve it efficiently.
The overall algorithm iteratively refines the reliability estimates and packing configurations.
Datasets
The paper mentions using a "Google trace" for justification of their assumptions about service distribution (large services dominating CPU usage). However, the primary evaluation is based on simulations using two scenarios:
- UNIFORM: Services have similar CPU demands.
- BIVALUED: A mix of very large services and many small services.
These scenarios are designed to test the algorithm under different load distributions.
Key Insights and Ideas
- Reliability Estimation is Key: The core difficulty lies in accurately and efficiently estimating the probability of service failure under various allocation strategies.
- Approximation is Necessary: Due to the #P-completeness of exact reliability calculation, approximations (like the Gaussian approximation for binomial distributions) are crucial for tractability.
- Homogeneous Allocations as a Starting Point: Relaxing the problem to find homogeneous allocations first simplifies the reliability optimization.
- Memory as a Bottleneck for Configurations: The limited memory capacity per machine restricts the number of services that can co-reside, leading to a manageable set of "machine configurations" that can be exploited by column generation.
- Column Generation for Scalability: This technique is vital for handling the large number of potential configurations in a cloud environment.
- Splitting Services for Efficiency: Allowing services to be split across machines (within memory limits) improves both packing efficiency and reliability.
Key Results
- Algorithm Performance: The proposed two-step heuristic (colgen_pd) significantly reduces the number of required machines compared to a simple "no_sharing" heuristic, especially in scenarios with diverse service demands.
- Resource Efficiency: The colgen_pd algorithm achieves allocations that are very close to the lower bound (colgen_float), indicating high resource utilization. The difference between the rounded integer solution (colgen_pd) and the fractional lower bound is at most 2.5%.
- Reliability Compliance: The algorithms generally meet the reliability constraints, with achieved failure probabilities staying below or very close to the aimed probabilities. The BIVALUED scenario shows even better reliability.
- Execution Time: The "no_sharing" heuristic is extremely fast. The colgen_pd algorithm's execution time is generally polynomial and much faster than the unoptimized colgen variant, especially in scenarios with low memory capacity. The probability estimation algorithm is efficient, capable of estimating very low failure probabilities (10⁻¹⁷) within reasonable timeframes (around 40s).
Limitations and Future Work
- Approximation Accuracy: While the Normal-Approx model is effective, it's an approximation. The paper acknowledges that the resulting allocations might not perfectly meet the exact reliability constraints under the NO-APPROX model, though simulations show good compliance.
- Memory Constraint Assumption: The paper assumes a relatively low memory capacity per machine (e.g., holding at most 10 services). While this simplifies the configuration-based approach, it might not hold for all cloud environments.
- Future Work: The authors suggest extending their work to more complex scenarios, such as heterogeneous machines, unsplittable memory constraints, and more dynamic cloud environments. They also believe their techniques can be applied to other fault-tolerant allocation problems.
Summary updated