Abstract
Selecting the optimal Infrastructure-as-a-Service (IaaS) instance is a complex challenge due to the vast array of configurations and the inconsistent performance of cloud resources. This paper introduces Daleel, an adaptive framework that utilizes machine learning to navigate the "black box" of cloud performance. By employing multivariate polynomial regression, Daleel accurately predicts application execution times across different instance types and temporal windows, enabling users to optimize for both cost and performance.
Introduction: The Cloud Selection Dilemma
The modern IaaS market is characterized by an overwhelming diversity of options. Major providers like Amazon Web Services (AWS), Google Cloud Platform (GCP), and Microsoft Azure offer dozens of instance types, each with unique combinations of vCPU, RAM, and storage. For developers, this creates a "composite decision" problem: selecting not only the right provider but also the specific instance type and the optimal time to execute workloads.
The core issue is that cloud environments are essentially "black boxes." Advertised specifications often fail to translate into consistent performance. Factors such as underlying hardware heterogeneity, "noisy neighbors" (resource contention from other users), and provider-specific throttling policies (e.g., AWS CPU credits) introduce significant volatility. Currently, users lack systematic tools to match their specific application requirements to these unpredictable offerings.
The Daleel Framework
To address these challenges, we propose Daleel (meaning "guide" in Urdu), an adaptive decision-making framework designed to automate and optimize cloud instance selection. Daleel operates through a continuous four-step cycle:
- Analysis: This stage profiles the target application to create a performance "vignette," capturing its resource requirements and behavior.
- Learning: Historical performance data is used to train predictive models. While standard linear models often fail in complex cloud environments, Daleel leverages Multivariate Polynomial Regression to account for non-linear interactions between variables such as RAM, vCPU, and time of day.
- Planning: Based on the predictive model, the framework recommends the most cost-effective instance that satisfies the user's performance constraints.
- Actuator: The system monitors performance and triggers a new optimization cycle if significant deviations occur or if the provider updates their service portfolio.
Experimental Evaluation
The effectiveness of Daleel was evaluated through an extensive experimental campaign on Amazon EC2 using VARD2, a memory-intensive computational linguistics tool. The study involved over 5,000 application runs across six different EC2 instance types (T2, M3, and C4 families) in the Ireland (eu-west-1) region over a seven-day period.
Performance Variability and Spec Mismatch
The experiments revealed that hardware specifications are often deceptive. For instance, the memory-rich m3.medium instance consistently underperformed compared to the compute-optimized c4.large, despite VARD2 being a memory-intensive application. Furthermore, the T2 "burstable" series offered excellent value but introduced high uncertainty due to its CPU credit system.
The Power of Non-Linear Modeling
A key finding was the necessity of non-linear modeling. The relationship between cloud resources and application performance is rarely linear; adding more RAM does not always yield a proportional speedup.
The Multivariate Polynomial Regression model significantly outperformed traditional methods:
- Accuracy: It achieved an $R^2$ of 0.93, explaining 93% of the variance in execution time, compared to just 0.37 for standard linear regression.
- Error Reduction: The Mean Squared Error (MSE) was approximately ten times lower than linear, Ridge, or Lasso baselines.
- Temporal Awareness: By incorporating the "day of the week" as a variable, the model successfully identified optimal launch windows to minimize execution lag caused by fluctuating provider demand.
Conclusion and Future Work
Daleel demonstrates that machine learning can effectively demystify cloud performance, providing users with actionable insights for instance selection. While the current study focuses on Amazon EC2 and a single application, it establishes a robust foundation for cross-provider optimization.
Future work will focus on extending Daleel to support multi-cloud "bursting" scenarios and developing automated migration logic to seamlessly move running applications between instances or providers as performance conditions change.
Summary updated