TL;DR
This paper introduces Dyna, a novel framework for minimizing the cost of hosting scientific workflows on cloud platforms (Workflow-as-a-Service or WaaS). It tackles the challenges of dynamic cloud pricing and performance by offering probabilistic deadline guarantees and intelligently using both on-demand and cheaper, but less reliable, spot instances.
What Problem Does This Paper Address?
Running complex scientific workflows on Infrastructure-as-a-Service (IaaS) clouds like Amazon EC2 presents a significant challenge for WaaS providers: how to minimize operational costs while still meeting user-defined performance guarantees. Traditional approaches often assume static task execution times and fixed pricing, which don't reflect the reality of cloud environments. Clouds are dynamic; performance can fluctuate due to shared resources, and prices, especially for spot instances, can vary wildly. Simply aiming for a deterministic deadline (e.g., "must finish by X time") becomes overly expensive because it requires provisioning for the worst-case scenario. This paper argues for a more realistic approach: probabilistic performance guarantees, where users specify a desired likelihood of meeting a deadline (e.g., "90% chance of finishing by X time").
Methods
The core of Dyna is a two-pronged optimization strategy:
- Static Optimizations:
- A*-based Instance Configuration: This uses an A* search algorithm to find the most cost-effective on-demand instance type for each task in a workflow. It balances cost against the probabilistic deadline guarantee, pruning search paths that are too expensive or unlikely to meet the deadline.
- Hybrid Instance Configuration Refinement: This step takes the on-demand configuration and refines it by introducing spot instances. It employs a hybrid approach where tasks first attempt to run on a sequence of spot instances (with progressively higher bidding prices) before falling back to the on-demand instance. This allows for cost savings while maintaining a safety net for meeting deadlines. The paper proposes a localized heuristic to estimate performance and cost for these hybrid configurations, reducing computational overhead.
- Dynamic Optimizations: At runtime, Dyna incorporates techniques like instance consolidation and reuse to further minimize costs by avoiding unnecessary instance acquisitions and leveraging existing resources.
Datasets
The paper uses three real-world scientific workflow applications: Ligo, Montage, and Epigenomics. These workflows represent different computational characteristics (I/O-intensive, memory-intensive, CPU-intensive) and parallelism levels, allowing for a comprehensive evaluation. The performance dynamics (I/O and network) and spot prices were calibrated from real measurements on Amazon EC2.
Key Insights and Ideas
- Probabilistic Guarantees are Key: The paper strongly advocates for probabilistic deadline guarantees over deterministic ones. This shift allows for significant cost savings by acknowledging and managing the inherent uncertainty in cloud environments.
- Hybrid Spot/On-Demand is Powerful: Combining spot and on-demand instances is crucial for cost reduction. Spot instances offer substantial savings, but their unreliability necessitates a fallback to on-demand instances to ensure deadline satisfaction.
- Localized Heuristics for Efficiency: Estimating the performance and cost of hybrid configurations can be computationally intensive. Dyna's use of localized heuristics for these estimations is critical for achieving low runtime overhead, making it practical for online scheduling.
- A* for Smart Instance Selection: Employing A* search for initial on-demand instance selection is effective in navigating the large search space and finding good quality solutions.
Key Results
- Cost Reduction: Dyna significantly reduces monetary costs compared to existing approaches. It achieved savings of 15-73% over a baseline "Static" approach (which uses only on-demand instances) and 78-85% over a "SpotOnly" approach (which relies solely on spot instances).
- Deadline Satisfaction: Dyna accurately meets probabilistic deadline guarantees, often performing slightly better than the requested rate.
- Runtime Overhead: Dyna's optimization overhead is considerably lower than more exhaustive approaches like "Oracle" (which calculates global workflow execution time distributions), making it suitable for real-time scheduling.
- Workflow Type Performance: The effectiveness of Dyna was demonstrated across diverse workflows (Montage, Ligo, Epigenomics), showing its general applicability.
Limitations and Future Work
- Spot Price Volatility: While Dyna handles spot price dynamics, extreme and unpredictable spikes in spot prices can still lead to higher costs, as seen with the "SpotOnly" approach. The paper acknowledges that the performance of SpotOnly and Dyna can vary depending on the specific spot price history.
- Predefined Number of Spot Instances: The hybrid configuration allows for a predefined number of spot instances (
n). The paper suggestsn=2is sufficient, but exploring optimalnselection could be a future direction. - Future Work: The authors suggest further exploring the impact of different spot price distributions and potentially extending the framework to handle more complex QoS requirements beyond deadlines. They also mention the possibility of integrating more sophisticated prediction models for performance dynamics.
Summary updated