Lifting the Fog of Uncertainties: Dynamic Resource Orchestration for the Containerized Cloud

Yuqiu Zhang, Tongkun Zhang, Gengrui Zhang, Hans-Arno Jacobsen

Abstract

The transition from Virtual Machines (VMs) to containerized environments has provided developers with unprecedented granularity in resource allocation. However, this shift introduces significant complexity due to the "fog" of cloud uncertainties, including noisy neighbors, volatile spot pricing, and non-monotonic performance behaviors. This paper presents Drone, an online resource orchestration framework that leverages Contextual Bandits and Gaussian Processes to adaptively optimize container configurations. Experimental results demonstrate that Drone improves P90 latency by up to 45% and reduces resource footprints by 20% compared to state-of-the-art industry and research baselines.

1. Introduction

Cloud computing is undergoing a paradigm shift toward lightweight, granular containers. While this allows for millicore-level CPU tuning and byte-level memory allocation, finding the optimal configuration in a dynamic environment remains a challenge. Traditional autoscalers often rely on static rules or structural assumptions that fail to account for the inherent noise of shared infrastructure. We introduce Drone, a framework designed to navigate these uncertainties by treating resource orchestration as a continuous learning problem.

2. The Drone Framework

Drone moves beyond rigid, pre-trained models by employing an online learning approach based on Contextual Bandits with Gaussian Processes (GP-UCB).

2.1 Contextual Awareness and Modeling

Unlike standard optimization techniques, Drone incorporates "context"—external variables such as workload intensity, inter-container traffic, and AWS Spot instance prices. It utilizes Gaussian Processes (GP) to construct a non-parametric surrogate model of the environment. This allows the system to predict the performance of unexplored configurations while maintaining a quantified measure of uncertainty.

2.2 Optimization and Safety

Drone balances exploration and exploitation using the Upper Confidence Bound (UCB) algorithm. It operates in two distinct modes:

  • Public Cloud Mode: Optimizes for a Pareto-efficient balance between performance and monetary cost.
  • Private Cloud Mode: Focuses on performance optimization while strictly adhering to a "Safe Set" of resource limits to prevent Out-Of-Memory (OOM) errors.

To maintain computational efficiency and adapt to temporal shifts, Drone implements a sliding-window data sampler, ensuring the GP model remains focused on the most relevant recent observations.

3. Experimental Evaluation

The researchers evaluated Drone against industry standards, including Kubernetes' Horizontal Pod Autoscaler (HPA) and Google’s Autopilot, using a 16-VM Kubernetes cluster.

3.1 Workloads and Datasets

The evaluation utilized a diverse set of benchmarks:

  • Batch Processing: Apache Spark tasks including PageRank (memory/network-intensive), Sort (I/O-intensive), and Logistic Regression (CPU-intensive).
  • Microservices: The "Social Network" benchmark from DeathStarBench, comprising 36 interconnected services.
  • Traffic Simulation: Real-world diurnal patterns derived from a 6-hour Twitter Streaming trace.

4. Key Insights and Results

Drone's adaptive approach revealed that resource-performance relationships are often non-monotonic. For instance, in PageRank workloads, increasing RAM can occasionally degrade performance due to increased network shuffling overhead.

4.1 Performance and Efficiency

  • Latency Reduction: Drone achieved a 37% to 45% improvement in P90 latency for microservices over existing state-of-the-art solutions.
  • Resource Footprint: The framework reduced overall resource consumption by 20%.
  • Reliability: By explicitly modeling resource safety, Drone experienced 10x fewer OOM errors than other bandit-based approaches in constrained environments.

5. Limitations and Future Directions

While effective for evolving workloads, Drone faces challenges with "flash crowds"—sudden spikes occurring within seconds—due to the iterative nature of Gaussian Process learning. Additionally, as the number of configuration "knobs" (e.g., disk I/O, cache partitioning) increases, the search space grows exponentially. Future work will explore integrating graph-aware logic to better navigate the complex dependency topologies of modern microservices.

6. Conclusion

Drone demonstrates that by embracing cloud uncertainty rather than ignoring it, resource orchestrators can achieve significant gains in both performance and cost-efficiency. Through the use of contextual bandits, Drone provides a robust path forward for managing the complexities of the containerized cloud.

Summary updated

BibTeX
@inproceedings{zhang2023lifting,
  author = {Yuqiu Zhang and Tongkun Zhang and Gengrui Zhang and Hans-Arno Jacobsen},
  title = {{Lifting the Fog of Uncertainties: Dynamic Resource Orchestration for the Containerized Cloud}},
  booktitle = {SoCC},
  year = {2023},
  doi = {10.1145/3620678.3624646},
}
Figure