Intelligent SLA-Aware VM Allocation and Energy Minimization Approach with EPO Algorithm for Cloud Computing Environment

Department of Information Technology, Dr. B. R. Ambedkar National Institute of Technology, Jalandhar, India School of Computer Science and Engineering, VIT Bhopal University, Bhopal, India Computer Science and Engineering Department, (apar Institute of Engineering and Technology (TIET), Patiala, India Manipal University Jaipur, Jaipur, India College of Computers and Information Technology, Taif University, Taif 21944, Saudi Arabia


Introduction
Promptly, cloud computing (CC) has been established as one of the prevailing network technologies in the past. In today's world, data is turned into a vital resource of information due to the arrival of big data. For mining data value, CC is very efficient, valuable, and inexpensive. It creates a significant effect on social and economic development [1][2][3][4].
In CC environment, the main keystone is virtualization. In this, each physical machine (PM) or host's hardware resources are splitted into various execution environments which are represented as a virtual machine (VM). In PM, the computing request from the user is organized by the VM with fulfilling the computational resource constraints such as the size of the memory, time for computing, and CPU resources [5,6].
In general, the cloud collects the data from VMs, resources, hosts, data centers, and so forth [7]. Cloud services are provided by data centers in cloud environments. However, a large amount of energy is utilized by these data centers in their tasks. e yearly energy consumption of data centers in the United States is 91 billion kWh, which is assumed to rise by 140 billion kWh in 2020. Like that, in the data center, a quick rise in power consumption leads to a key financial problem and also environmental trouble. And also, the energy cost of amazon's data center is approximately 42% of the entire operational price [8,9].
In future, this energy requirement is rising by more than 80% as expected and the data centers are an important reason for this enhancement. Compared to the old office systems, 100 times more energy is used in data centers. is statement is based on the report of the Environmental Protection Agency [10,11].
Based on the computational capacity of PM and computational necessity of allocated VMs, the power consumption of particular PM is differed. For physical servers which are idle, the power utilization is exceeding two-thirds of the used server [12][13][14].
To overcome this energy inefficiency, efficient usage of physical machine resources using virtualization is a promising solution. Specifically, virtual machine placement (VMP) is an effective solution. In a data center, VMP refers to how VMs are allocated on PMs. Due to this, the usage of physical servers is enhanced and the number of underloaded servers is minimized. For power efficiency purpose, the load of the underloaded server is allocated to another available server and turn the underloaded server to sleep mode [15][16][17].
However, due to the following factors, providing an effective solution to this problem is not simple. First, VMs and PMs have heterogeneous features. Next, the improper VMP causes server exhaustion. Due to this, the server is unable to host any more VMs. ird, the complexity is increased by searching the optimum allocation among hundreds of candidates (sometimes, a lot of requests are received by data centers) [18,19]. erefore, in this paper, we suggest an optimal multiobjective VM allocation scheme. is scheme will allocate the VMs in an efficient way with energy efficiency than the other mechanisms because it is easy to implement and it utilizes less memory space for saving the best optimal solutions. e important contributions of the proposed VM placement method are as follows: (i) We proposed a multiobjective Emperor Penguin Optimization (EPO) algorithm that successfully allocates the VMs to the least number of active PMs in cloud data centers. (ii) EPO has more efficiency than BSGA, ACO, and PSO algorithms in terms of energy consumption and resource utilization and also the execution time and the quantity of active server is also reduced. (iii) We analyzed and tested the proposed work by creating the computer-based simulation using the CloudSim toolkit. Compared with other methods, this method has a competitive advantage.
e remaining portion of the paper is structured as follows: we analyzed recent studies about VM placement in Section 2; the detailed problem formulation approach is presented in Section 3; the proposed EPO methodology is presented in Section 4; Section 5 provides the obtained results and its explanation; and finally, Section 6 describes the conclusion.

Related Works
Development in the cloud area has opened the door to a comprehensive study. VM placement strategies largely led to the efficiency of cloud computing. In cloud data centers, various scholars from industry and institutions have tried to give the best VM placement recently [20,21].
Mohammadhosseini et al. [22] suggested a balancebased cultural algorithm for virtual machine placement (BCAVMP) with less energy consumption and efficient resource management. e authors evaluated the solutions using a new fitness function which is based on the total balance vector lengths for every VM allocation. e balanced resource usage is also studied by authors and the result is compared with PABFD that contains IQR-MMT, LRR-MMT, THR-MMT, MAD-MMT, and LR-MMT algorithms.
A combination of multiobjective Sine-Cosine Algorithm and Salp Swarm Algorithm is used by Gharehpasha et al. [23] for efficient VM allocation and their objectives are to decrease power consumption, waste of resources, and SLA violations. e authors compared results with Ant Colony System, First Fit, and Modified Best Fit Decreasing algorithm which are existing ones.
Abdessamia et al. [24] proposed an optimization method for VM allocation in the data center which is based on a gravitational search algorithm named Binary Gravitational Search Algorithm (BGSA). ey implemented their solutions in MATLAB for energy efficiency and evaluated the result with existing strategies.
An energy-efficient algorithm named GATA for VM allocation is designed by Zhao et al. [25]. ey generated the proposed algorithm with a combination of genetic algorithm and tabu search algorithm. Load balance of the data center is maximized to decrease energy consumption and results compared with the simulated annealing algorithm (SA), traditional genetic algorithm, and ant colony algorithm.
Wei et al. [26] have presented the mixed-integer linear program (MILP) considering makespan, energy consumption, and idle energy of active PMs for VM allocation problem. e authors used multiple capacity constraints to address the multiobjective problem and also used Branch and Bound algorithms for the MILP program to attain a solution.
Abohamamaa and Hamoudaa [8] have performed research for reducing the quantity of physical server which are active and shutting down the idle server to improve energy consumption rate by hybrid VMP algorithm in data centers. Besides, they reduced the resource wastage rate by balanced usage of CPU, RAM, and Bandwidth of servers which are active. For a hybrid VM allocation algorithm, the authors combined an enhanced permutation-based GA (IGA-POP) and resource-aware best fit strategy. e results were compared with deterministic algorithms and stochastic optimization algorithms.
Gharehpasha et al. [27] have analyzed the optimal placement of VMs with resource organization and avoidance of resource wastage in a cloud environment. For this, they introduced a new method based on the grouping of a multiverse optimizer with chaos function and a hybrid discrete multiobjective whale optimization algorithm, which can be optimally placed in a cloud data center. e results were compared with other algorithms such as MBFD, VMPACS, and First Fit.
Ruan et al. [28] have presented a "PPRGear" strategy for VM placement and migration with energy efficiency in the cloud based on host utilization. ey calculated the performance-to-power ratios (PPR) and estimated features of computing nodes at different usage levels, called gears. ey compared the solutions with IqrMc, MadMmt, and rRs algorithms.
Feng et al. [29] have developed a two-step SAG algorithm to minimize the energy consumption in cloud data centers. In the first step, Simulated Annealing (SA) algorithm was utilized to minimize the server and cooling energy consumption. e Greedy algorithm was used in the second step to reduce the energy consumption of the network. For performance evaluation, XINT-GA, power-aware and performance-guaranteed VMP (PPVMP), CAC, and task scheduling algorithm based on thermal-aware (TSTD) techniques are used.
For energy-efficient and SLA-aware VM placement problems, Elsedimy and Algarni [30] suggested a technique based on Particle Swarm Optimization (PSO) technique. To optimize the VM placement, the crowding entropy method was used. e existing algorithms named VMPACS, FDD, and MGGA were used for performance estimation. e authors analyzed their proposed approach via two experiments. In the first experiment, they evaluate SLA violation, power consumption, and wastage resource. In the second experiment, Spacing and Generational Distance (GD) was used as the performance metric.

Problem Formulation
In this work, our challenges are considered as NP-hard problem and our objective is VM placement with an energyaware approach in servers. In this effort, we utilized a bioinspired metaheuristic algorithm termed Emperor Penguin Optimization (EPO) for VM placement. We used some notations to explain the VM placement in a cloud environment that is presented in Table 1.
Consider n number of PMs and m number of VMs in a cloud data center and P denotes a group of PMs, where P i denotes the i th PM, i belongs to [1 . . . n], and P i ϵP.
Similarly, a set of VMs are represented by V, where V j represents the j th VM, j belongs to [1 . . . m], and V j ϵV.
Power consumption is an important aspect of this study that is related to memory resources and CPU utilization. V cpu j and V ram j are the required computational power and memory of V j . Similarly, P cpu i and P ram i are the capacities of P i for CPU and memory.

Multiobjective Optimization.
As the multiobjective optimization problem, VM placement is considered in this work. To optimize a number of possibly conflicting objects, a pool of VMs is placed in a minimum number of PMs [31]. A multiobjective optimization problem generally can be stated as follows: where the number of objectives is denoted by h ≥ 2, a set of feasible solutions are denoted by U, a feasible solution is denoted by u � [u 1 , u 2 , . . ., u k ], and the number of active PMs are represented by k. Decreasing the power consumption and SLA violation are two important key objectives which are analyzed in this paper.

Objective Function.
We assume that each PM has sufficient ability to host any single VM. us, only one PM can host a single VM. Here, s denotes the placement solution and that is represented by a zero-one adjacency matrix, where x ij � 1 if VM j is assigned to P i ; otherwise, x ij � 0. Similar to constraints, best VM placement can be expressed with the least active PM in a cloud data center, shown as follows: subject to According to equation (3), y i � 1 when Pi is active and y i � 0 when P i is idle. Equation (4) ensures that V j is allocated to only one PM in the group. Equations (6) and (7) relate to CPU and memory utilization respectively that must not exceed the value of capacity constraints (Pi). e power consumption of active PM without load is approximately 50% to 70% of fully utilized PM [32]. erefore, turning off inactive PMs are essential to decrease the total power consumption of a cloud data center.

Power Consumption.
erefore, the power consumption of the CPU utilization is formulated as follows: where P idle denotes idle state power consumption, P full denotes fully utilized CPU power consumption, and P cpu i ϵ[0, 1]. As per our assumption, the idle state CPU power consumption is 60% of the energy that is consumed in a fully utilized state. Efficient resource usage and decrease in the number of active PMs are effective ways to lower power consumption. us, maximum utilization of CPU would contribute to the total power consumption of active PMs, regardless of other resource types. erefore, we consider the CPU resource which is vital to decrease the power consumption in our model. e CPU utilization of ith PM is calculated by Here, C c ij is the CPU demand of every VM. e following equation (10) calculates the fitness function for power consumption: 3.4. SLA Violations. e SLA violations (SLAVs) arise either overuse of the PM or the requested processor and memory for VM is not allocated by the PM. For better assignment and satisfying QoS requirements, lowering the total SLA violation is important. e overall SLA violations are represented in the following equations: Here, T rm is the total requested MIPS and T am is the total assigned MIPS to VMs based on the resource demand.

Proposed Emperor Penguin Optimizer (EPO) in VM Allocation
is section presents a multiobjective VM placement model with the Emperor penguin optimizer algorithm and the proposed system architecture is shown in Figure 1.
Our proposed algorithm, Emperor Penguin Optimizer (EPO) is created based on the hunting behavior of penguins producing the best global result over concerted coordination in their dives during collective hunting and nutritional activities. e vocalization of penguins is close to the distinctive detection and identification of penguins, and this is difficult to recognizing penguins from a large number of colonies providing great similarity. Penguins are clustered in groups, the quantity of penguins may differ depending on the availability of food at a given spot, and they prefer to search in groups and go around randomly. e significance of the EPO algorithm is to obtain a global optimum solution with superior convergence. EPO provides a global solution even when the amount of penguin is high because EPO is strong, and it provides a clear compromise between the global and local minima.
By reducing the number of active PMs, the energy consumption of a cloud data center can be decreased efficiently. Hence, we changed the EPO algorithm for the VMP problem and gain a solution that maps the VMs to the least number of active PMs. We assume that list VM requests are collected and search for the PM. Initially, the EPO randomly assigns VM and calculates power consumption and SLAV of PM. If the values are least, then assign the VM to a particular PM. Before assignment, the CPU and memory capacity of PM is also considered. is is the iteration process to get the perfect PM for VM. Once the VM is assigned, the location of the PM is updated and the other inactive PMs are going to sleep mode state. Assume that allocating the number of physical machines n � 5 and number of virtual machines m � 4 like the penguins determine the huddle boundary, collect the VM request, and randomly initialize the VM1 or penguin to PM1 and calculate power consumption and SLAV using equations (7) and (9) which is similar to the temperature calculation of penguins. e penguins are fixed huddle boundary based on temperature.
After that, collect optimal power consumption and SLA violation values of PMs using the following equation: Here, PC (P cpu i ) is the power consumption value of PM and SLAV is the service level agreement violation value.
Based on equation (11), find the best optimal solution with the least power consumption and SLA violation.
And also to assign the VM to a particular PM, resource availability is very important. In our proposed method, the memory and CPU capacity of PM is calculated from the following equation: In P i , the value of i is 1 ≤ i ≤ n and V cpu j and V ram j are the sum of CPU and memory capacities of previously submitted VMs on P i , correspondingly. V cpu i and V ram i are the CPU and memory capabilities of unallocated VM. P cpu i and P ram i are the capabilities of PM. is equation is used to select the suitable PM for VM.
According to the best optimal solution and resource availability, the VM is placed to a suitable PM which is similar to the penguin that moved based on the temperature.
Sometimes, the collision is occurring when more than one PM can host a single VM. To avoid this problem, equation (4) is used. If the VM is allocated to one PM, then the value of that VM is changed to 1 and other entries are changed to zero. is method is used to prevent unnecessary confusion.

Algorithm.
e step-by-step methods of VM allocation based on the EPO algorithm would be described as follows: Step 1: initialization (i) We term the list of VMs (penguins) as m in the data center (ii) We term the list of PMs as n in the data center (iii) e total number of repetitions (iv) VM requests Step 2: choose the PM randomly that must be in the search space.
Step 3: calculate the objective values (power consumption and SLAV) of PM.
Step 4: the fitness function is used to determine how well a result can provide an effective answer. In every iteration, we calculate the fitness of power consumption value and also SLAV for every PM, then analyze the collected values, and sort them in ascending order.
Step 5: find the minimum optimum value from a set of collected values which is considered as the best optimum value. Based on the best optimum value and a set of resource availability, the penguin is placed in PM.
Step 6: to save power consumption, the remaining unallocated PMs are moved to a sleep mode state.
In Figure 2, all the algorithm steps are described in the form of a flow chart.

Computational Complexity.
e computational complexity of the EPO algorithm is discussed in this section. Space and time complexities of the proposed algorithm are given below.

Space Complexity.
During the initialization process of the proposed algorithm, the highest amount of space utilized at any one time is called space complexity. erefore, the space complexity is O (m × d). Here, m denotes the population size and d denotes the dimension of the given problem.

Simulation Results
e proposed EPO algorithm is analyzed in this section and it is compared with BSGA, ACO, and PSO-based algorithms in Windows 10 operating system with 4 GB RAM and Intel i5 2.60 GHz processor. For simulation, we used CloudSim tool with JAVA. In addition to the compared algorithms, all the tasks required in the algorithms have been applied in Java.

Particle Swarm Optimization (PSO).
It is based on fitness and groups [33]. Every member of the swarm is referred to as a particle, and each one represents a possible solution to the problem. Position and velocity are the two parameters of each particle. e position of each particle is linked with the value of fitness. e quality of the result is evaluated based on the fitness value. e PSO starts by assigning a group of random particles and then iterates until it finds the best solution. It imitates the interactive behavior of birds foraging.

Ant Colony Optimization (ACO). ACO [34] is a metaheuristic that was inspired by actual ant colonies and is
focused on their collective foraging behavior. Ants live in colonies and are social insects. Ants often move between their nest and food sources during the food search process. Generally, ants explore the environment in a random manner around their nest. ey leave unique substances termed pheromones along their paths. When deciding where to go, they are more likely to select routes with high pheromone concentrations. Once the ant finds a source of food, it evaluates the quantity and quality of the food and brings some of it back to the nest. During the return journey, the amount of pheromone left by the ants on the ground may depend on the quality and quantity of the food. Other ants will follow these pheromone trails to the food source. Moreover, it finds the shortest routes by these pheromone trails among their food sources and nest.

Binary Gravitational Search Algorithm (BGSA).
e gravitational search algorithm is based on the mass interactions and law of gravity [24]. In the Binary Gravitational Search Algorithm (BGSA), the search agents are a set of masses interacting according to Newtonian gravity and motion laws. e performance of search agents is measure by their masses. ese search agents get attracted to each other and move towards the search agents of heavy mass by the gravitational force. As a result, an object with a large mass has a superior solution to other objects. e movement of heavier masses is slower than that of lighter masses guarantees exploitation.

Parameters.
e effectiveness of the proposed VM placement solution is assessed using four efficiency metrics which are energy consumption, overall SLA violations, the number of active servers, and execution time.

Energy Consumption.
In a cloud data center, the total amount of energy consumed by all running PMs is represented by energy consumption [35][36][37][38]. To reduce expenditure, the least amount of energy consumption is used. For better assignments, the energy consumption should be lower. Most of the papers discussed in the literature review take this parameter. In [22], they try to achieve less energy consumption. However, the low convergence speed affects the performance of the algorithm.

Overall SLA Violations.
Overusage of PM causes SLA violations. For better assignments, the overall SLA violation should be lower. In [8], they mainly concentrate to reduce resource wastage. During this process, when there is high usage of CPU, SLA violations may occur.

Number of Active Servers.
To reduce the power usage of a data center, the number of active servers should be decreased. In [27], resource utilization is unbalanced. Hence, the number of active servers is increased.

Execution Time.
To obtain the result in a short time, the execution time of the algorithm should be reduced. In [27], the algorithm takes a long time for fitness evaluation. Hence, the execution time of this approach is increased.

Experimental Evaluation.
e same amounts of PMs and VMs are used in all algorithms for efficient comparison. We simulated a group of heterogeneous servers with various energy consumption and they use static resources such as CPU and memory. When we use different server tools in the data center, the energy consumption ratio will be different. In this research, we used two types of PMs as shown in Table 2. ree types of VMs are used for the simulation as shown in Table 3.
For the simulations, the power consumption and SLA violation have been calculated through the proposed EPO technique. To analyze the energy consumption of all PMs, we tried to allocate under 200 VM. As our algorithm has low complexity, a small number of VMs allocated in the algorithm give similar results. But the higher number of VMs gives an alternate result. Although our proposed algorithm gives better results with minor variations, as per the low complexity of our algorithm, we get the results in a very short time and simulation results are very similar. And also, it gives better results for the VM allocation problem compared to other algorithms with a high number of VMs. e energy consumption is depending on the number of active servers. After VM allocation using the EPO algorithm, the amount of active server is reduced and that is shown in Figure 3. e proposed approach attempts to make the most efficient use of a small number of hosts while allocating a large number of jobs to the active hosts. Since the number of active hosts in a data center is directly proportional to energy consumption, an increase in the number of host shutdowns will result in a decrease in energy consumption. e values of energy consumption and SLAV is calculated and evaluated to the other existing algorithms. Figure 4 and Table 4 explain the energy comparison of EPO with BGSA, ACO, and PSO. From the graph and table, it is observed that if the number of VM is increased then the energy consumption of the data center is also increased. e attained values show that the EPO approach helps to reduce the power consumption even if the number of VMs increases. Figure 5 and Table 5 explain the comparison of SLAV with the abovementioned algorithms. In terms of SLAV, the compared techniques have parallel performance [39,40]. However, compared to other approaches, PSO has the worst result. Compared with BGSA and ACO, BGSA's performance is better. But in most of the iterations, the performance of EPO is superior. Hence, it is observed that energy consumption and SLA violation of the proposed approach is lower than other algorithms. e overall improvement of our proposed algorithm over the other 3 algorithms is shown in Figure 6 and it shows the consistency and fitness of our proposed technique.
Based on the comparison of EPO with the BGSA technique, 65.53% of energy is saved and 56.81% of SLA violation is reduced on average and that is shown in Figure 7.
In Figure 8, the comparison of EPO over ACO is shown; an average of 50.29% of energy is saved; and 45.27% of SLA violation is reduced. Figure 9 shows the comparison of EPO with PSO, and the average values for saving energy and SLA reduction are 52.07% and 39.29%, respectively. Figure 10 shows the execution time of all four approaches. In comparison, the execution time of the BGSA algorithm is higher because it has a high computational complexity than the other three algorithms. e execution time of the PSO algorithm is shorter than the ACO algorithm; the effect of energy consumption by using the PSO algorithm is larger than the ACO algorithm. e ACO algorithm is a simple conventional ant colony algorithm in which the heuristic factors do not alter with dynamic virtual machine allocation, ants prefer to travel directly to resource-rich hosts, and its effect deteriorates as the number of tasks increases. Moreover, we analyzed that the execution time of the EPO algorithm is better than BGSA, ACO, and PSO techniques and the convergence rate of EPO is very high. e overall complexity of a system is reduced by the lower execution time of the proposed technique.

Conclusion and Future Work
In recent years, the important requirement of a computing system is energy efficiency and cloud data centres consume a high amount of electricity. It creates many problems like economic and environmental issues. Hence, the effective energy management is crucial for data centers. To find the solution for the best energy consumption, we proposed a multiobjective Emperor Penguin Optimization algorithm for VM allocation in this paper and the EPO is more appropriate for this problem. We analyze our results with Binary Gravitational Search Algorithm, Ant Colony Optimization, and Particle Swarm Optimization. Finally, our proposed method is better than other methods and it conserves an average of 55.96% energy and reduces an average of 47.12% SLA violations. erefore, this method decreases the energy consumption of cloud data centers and leads to green computing. In future, we can extend this work with the combination of other methods for better energy efficiency. Moreover, it can also be extended to consider other objectives like resource wastage of cloud computing VM placement.

Data Availability
e data used to support the findings of the study are available within the article.

Conflicts of Interest
e authors declare that they have no conflicts of interest.