Abstract
The efficient task scheduling in cloud environment has become the main research topic recently, the execution time, execution cost and load balancing for optimization in a cloud environment is significant. The scheduling of execution time and cost is a NP-hard multi-objective optimization problem, however, the current task scheduling under the cloud environment is generally the execution time or cost of single objective optimization with constraint conditions, incompletely meeting the complex cloud systems with load balancing. Given above motivations, in this paper, we propose a Memetic algorithm (MA, Memetic Algorithm) aiming at cloud task scheduling. Standardizing the objective function, the algorithm introduces the selection scheme based on the roulette, and Hill Climbing algorithm as local search. At last, we demonstrate the feasibility and efficiency of the proposed approach on the CloudSim simulator.
Introduction
In the rapidly evolving landscape of cloud computing, task scheduling—the process of assigning user tasks to virtual machines (VMs)—is a critical challenge. This process is fundamentally an NP-hard optimization problem. While traditional algorithms often focus on a single objective, such as minimizing execution time or cost, real-world cloud environments require a more holistic approach that balances multiple competing goals simultaneously, including system-wide load balancing.
The failure to account for these multi-objective realities often leads to inefficient resource utilization and suboptimal user experiences. This research introduces a Memetic Algorithm (MA) designed to navigate these complexities by combining global search capabilities with local refinement.
Methodology: The Memetic Algorithm Approach
The proposed Memetic Algorithm (MA) enhances the standard Genetic Algorithm (GA) framework by integrating a local search component. While a GA uses population-based evolution (crossover and mutation) to explore the broad solution space, the MA incorporates a Hill Climbing algorithm to "zoom in" on promising areas and find local optima. This hybrid approach prevents the algorithm from becoming trapped in mediocre solutions.
Key Technical Features:
- Indirect Encoding: Chromosomes are represented as arrays where the index corresponds to a task and the value represents the assigned VM ID.
- Fitness Function Normalization: To handle the different units of "time" and "cost," a weighted normalization technique merges them into a single fitness score. This allows for adjustable prioritization using a weight variable ($\omega$).
- Roulette Wheel Selection: This probabilistic method ensures that higher-performing schedules have a greater likelihood of contributing to subsequent generations.
Experimental Setup
The efficacy of the MA was evaluated using CloudSim, a standard industry simulator for cloud environments. The researchers tested the algorithm across two primary scenarios:
- Scenario 1: A small-scale test involving 20 tasks and 10 virtual machines.
- Scenario 2: A larger-scale test involving 40 tasks and 20 virtual machines.
The simulation defined specific "Data Amounts" for tasks and "Processing Capacities" (MIPS) for VMs to accurately model a heterogeneous cloud environment.
Key Results and Insights
The experimental results highlight a clear Pareto-like trade-off between execution time and cost. As shown in the performance curves, there is an inverse relationship where reducing execution time typically necessitates higher costs.
Major Findings:
- Hybrid Advantage: The integration of Hill Climbing significantly refines schedules compared to a pure evolutionary approach.
- Scalability: As the number of tasks increases (e.g., from 20 to 40), the optimization curves become smoother and more predictable, though achieving perfect load balance becomes more challenging.
- Efficiency: In Scenario 1, execution time was reduced from approximately 4800ms to 200ms as cost increased, demonstrating the algorithm's ability to find high-efficiency schedules across a wide search space.
Conclusion and Future Work
While the Memetic Algorithm proves effective in a simulated environment, several areas for future research remain. The current study utilizes a static batch of tasks; moving toward dynamic scheduling for real-time task arrivals would better reflect actual cloud traffic. Additionally, while CloudSim is a robust tool, real-world factors like network latency and hardware failures present further complexities. Future benchmarks against other hybrid algorithms, such as PSO-GA, would also provide deeper insights into the relative performance of the MA approach.
Summary updated