Abstract
Hybrid cloud provides an attractive solution to microservices for better resource elasticity. A subset of application components can be offloaded from the on-premises cluster to the cloud, where they can readily access additional resources. However, the selection of this subset is challenging because of the large number of possible combinations. A poor choice degrades the application performance, disrupts the critical services, and increases the cost to the extent of making the use of hybrid cloud unviable. This paper presents Atlas, a hybrid cloud migration advisor. Atlas uses a data-driven approach to learn how each user-facing API utilizes different components and their network footprints to drive the migration decision. It learns to accelerate the discovery of high-quality migration plans from millions and offers recommendations with customizable trade-offs among three quality indicators: end-to-end latency of user-facing APIs representing application performance, service availability, and cloud hosting costs. Atlas continuously monitors the application even after the migration for proactive recommendations. Our evaluation shows that Atlas can achieve 21% better API performance (latency) and 11% cheaper cost with less service disruption than widely used solutions.
Introduction
In modern microservice architectures, the hybrid cloud model offers a balance between the security of on-premises infrastructure and the elasticity of the public cloud. During peak traffic periods, engineers often need to "offload" specific components to the cloud to maintain performance. However, this process is plagued by a "combinatorial explosion." For an application with just 30 components, there are over 500 million potential ways to split them between environments.
A naive migration choice—such as moving the most CPU-intensive services—can be disastrous. If two services that communicate frequently are separated by a high-latency inter-datacenter link, the resulting network overhead can make user-facing APIs sluggish or cause them to fail entirely. Atlas addresses this by moving away from component-centric metrics toward an API-centric understanding of the system.
The Atlas Framework
Atlas operates as a data-driven advisor through a three-stage pipeline: learning, recommendation, and monitoring.
1. Application Learning
Atlas utilizes standard telemetry tools (such as Istio, Jaeger, and cAdvisor) to profile the application. It maps the "network footprint" of every user-facing API, identifying exactly how many bytes are exchanged between specific services during a request. This allows Atlas to understand the dependencies that are most sensitive to inter-datacenter latency.
2. Migration Recommendation
To predict performance without risky live testing, Atlas employs a delay injection technique. It takes existing execution traces and mathematically "injects" artificial network delays into paths that would cross the on-prem/cloud boundary in a proposed plan.
Finding the optimal plan is handled by a Deep Reinforcement Learning (DRL)-based Genetic Algorithm. While standard genetic algorithms can be overly random, Atlas uses DRL to train an agent that intelligently combines successful migration plans to produce superior "offspring." Finally, a hierarchical post-processing step clusters these plans into performance-focused or cost-focused categories, allowing operators to choose based on their specific business priorities.
3. Post-migration Monitoring
Atlas continues to monitor the system after migration using Kullback-Leibler (KL) divergence to detect "drift." If user behavior changes—for example, if a new feature makes certain API calls heavier—Atlas identifies that the current plan is no longer optimal and proactively suggests adjustments.
Evaluation and Results
The researchers evaluated Atlas using the DeathStarBench suite, focusing on complex Social Network and Hotel Reservation applications. The results demonstrate that Atlas significantly outperforms traditional heuristics.
Key findings include:
- Performance Gains: Atlas achieved 21% better API latency compared to affinity-based solutions. As shown in the evaluation, simply offloading the "busiest" components often leads to significantly higher latency than the plans recommended by Atlas.
- Cost Efficiency: Atlas produced migration plans that were 11% cheaper than state-of-the-art baselines while maintaining higher performance levels.
- High Accuracy: The delay injection technique estimated post-migration latency with a remarkably low error margin of approximately 4ms.
- Operational Speed: Despite the massive search space, Atlas generates high-quality recommendations in under 35 seconds.
Key Insights
Atlas reveals several counter-intuitive insights for cloud migration. For instance, it recognizes that parallelism acts as a buffer; if two services are triggered in parallel, offloading the faster one may have zero impact on total latency because the system is still gated by the slower on-prem component. Additionally, Atlas identifies that background tasks (like logging) are "free moves" that can be offloaded with no impact on user experience.
Conclusion and Future Work
Atlas provides a robust, automated way to navigate the complexities of hybrid cloud migration by prioritizing the end-to-end user experience. While currently dependent on distributed tracing (like Jaeger), future iterations could aim to reduce this dependency or integrate more tightly with live data migration tools to handle stateful service moves more seamlessly. As organizations move toward "Sky Computing" across multiple cloud providers, the API-aware logic of Atlas will become increasingly vital.
Summary updated