FP-ABC: Fast and Parallel ABC Based Energy-Efficiency Live VM Allocation Policy in Data Centers

,


Introduction
At present, a large number of data centers have been put into practice to support internet-based services.Many applications, such as E-commerce and scientific computing, require large-scale data-intensive computing.As data centers and their applications continue increasing, how to realize energyefficiency computing has become a particular challenge.
There are several properties of data centers making the problem of energy-efficiency computing difficult to be solved.First, workload of a data center is a priori unknown to energyefficiency policy and will likely be variable over both time and space.As a result, a static energy-efficiency policy is insufficient.Second, customers wish their jobs can be finished in time with an acceptable price.Third, lots of computing and storage nodes are occupied in finishing their jobs in time with high energy consumption and low utilization.
Therefore, finding a tradeoff between energy consumption and performance in data centers is an important issue.
Many practices have been applied to achieve energyefficiency, such as Dynamic Voltage and Frequency Scaling (DVFS) [1] and virtual machine technique [2].Virtual machine technique can improve the utilization rate of resources, which are computing and storage nodes.For example, low-load nodes will be slept to save energy when their VMs have been migrated to other nodes with workload balance principles.
VM allocation policies with workload balance are considered as one of the important energy-efficiency solutions in data centers.In CloudSim [3] simulator, the classical policies have been proposed, such as Random Selection (RS), Minimum Migration Time (MMT), and Median Absolute Deviation (MAD), to make VM allocation decisions.Zhao et al. [4] applied PSO algorithm to VM allocation 2 Scientific Programming policy, and they have achieved significantly on the measurement of energy-efficiency and QoS.In our previous works, Artificial Bee Colony (ABC) [5] is adopted to achieve energy-efficiency [6].However, ABC based VM allocation policies have disadvantages of finding global solutions in time.
To solve these problems, the idea of simulated annealing is adopted to find the global solution as much as possible in this paper.Based on the principle of simulated annealing, following bees have probability to jump out of local optimum to find global optimum in other solution space.Even more, the idea of gradient descent is applied to accelerate the speed of finding solution in Δ with QoS.Considering these two ideas, an ABC based energy-efficiency live VM allocation policy with simulated annealing and gradient descent is proposed in this paper.
The main contributions of the paper are summarized as follows: (i) The idea of gradient descent is used to solve the problem that is how to satisfy the requirement of accelerating the speed of finding local optimum solution in a data center.
(ii) The idea of simulated annealing is adopted to get  approximate global optimums with searching in turn per Δ duration.
(iii) After finding global optimums in time, the frequency of VM migrations is reduced greatly to achieve a fairly high energy-efficiency level.
The rest of this paper is organized as follows.Related work is depicted in Section 2. The proposed VM allocation policy is given in Section 3. Simulated experiments are done in Section 4. Discussion and analysis are given in Section 5. Section 6 concludes the paper.

Related Work
The virtual machine allocation (VM allocation) is a process that is finding the target host for the live migrant VM.Traditionally, VM allocation policy is designed to achieve high performance.Currently, energy consumption is considered as another important influencing factor to evaluate the reasonability of VM allocation policy.Therefore, performance and energy consumption are two major influencing factors to construct energy-efficiency evaluation model.
Fan et al. [7] found a strong correlation between single server and CPU utilization rate; that is, there is a direct linear correlation between CPU utilization rate and the server's energy consumption.The higher the CPU utilization rate is, the more the energy consumption is.This is represented by a host energy evaluation model: where  total represents the total energy consumption of a host,  idle represents the energy consumption of an idle host,  busy represents the energy consumption of a high load host, and  cpu indicates the CPU utilization rate of a host.But it cannot measure the nonlinear CPU utilization rate.Boglazov [8] proposed another empirical nonlinear model to evaluate the energy consumption of a host: where  represents calibration parameters for minimizing the squared error, which is obtained by experiments.
For the cost of energy consumption from data centers, researchers have found a variety of efficient policies to reduce the cost of energy and keep a relatively high QoS level.
Deng et al. [9] proposed the concept of green data centers, which means low energy consumption, low cost, and low levels of environment pollution.Fiandrino et al. [10] proposed the model of energy consumption for VM migration, which can reduce the cost of energy consumption of data centers to achieve workload balance.However, they did not discuss the problem of finding global optimum and unsuitable VM migration.Nakada and Hirofuchi [11] optimized the number of physical hosts and reduced the frequency of virtual machine migrations.They made Service Level Agreement (SLA) as an important influencing factor to measure the optimal results and also placed VM migration as a multiobjective optimization issue.
Nishant et al. [12] utilized the ant colony algorithm to solve the problem of VM migration.Each ant only updates its local data, which leads to the low rate of convergence.Jeyarani et al. [13] presented SAPSO to realize dynamic VM scheduling in data centers.SAPSO promptly detects and efficiently tracks the changing optimum that represents target servers for VM placement.However, the idea did not take future workload into account.From the perspective of long operation, the policy may incur additional costs.
Previously, our research focuses on making use of ABC algorithm to solve the problem of VM allocation, but it is insufficient on the speed of convergence for finding  local optimums in data centers.When dealing with the same volume of jobs, the higher the energy-efficiency level of target host is, the less it costs.As we all know, the energy-efficiency level will be decreased rapidly when the workload of a target host is larger than a certain critical value.Therefore, it is important to achieve a fairly high energy-efficiency level in data centers by making an effective live VM allocation policy.In our previous researches, ABC based energy-efficiency live VM allocation policy has been proposed.However, there are still two problems which need to be solved in Section 1.

ABC Based Live VM Allocation Policy with Simulated Annealing and Gradient Descent
Workload balance in data centers can save energy by migrating VMs to target hosts, and the key is to assign VM to the optimal target host [14].To achieve the goal of saving energy in data centers, we introduce an ABC algorithm to seek the best target hosts.However, Bi and Wang [15] found that an ABC algorithm is easy to fall into local optimum.To solve this problem, simulated annealing makes the scouts jump out of local optimal solution space and then optimize the optimal solution within multiple iterations.The following paper will elaborate it from two aspects, one is the energy evaluation model of data centers, and the other is an enhanced energyefficiency live VM allocation policy.

Data Center Energy Evaluation Model.
In the live VM allocation process, we want to assess the cost that the VM needs to be migrated to the target host.We use  diff , which represents difference in the energy consumption, to evaluate virtual machine migration process cost: where  after corresponds to the energy consumption of a target host after receiving VM and  now means the current energy consumption of the target host.
On the basis of the energy evaluation model, the metric of fitness is defined as in where  corresponds to the energy consumption and  and  mean two different physical hosts.

Formal
where VM represents the smallest computing nodes of VMs and   marks the available computing resources of th host.There are  positions for max  that can be selected in  placement policy.It can be expressed as PS = {, VM, , }.
The second parameter is based on energy consumption;  = {, VM, ,  +   }, where  corresponds to any placement of  and  represents the host number.The position , when selecting the host number , is represented as  = {, VM, ,  +   }.Their energy is represented as    , and it means, according to , the total energy consumption that is migrating VMs to the host.Hence migrating VM energy consumption can be expressed as (7).In order to achieve better energy-efficiency, energy-efficiency VM migration can be represented as (8).In other words, in order to minimize energy consumption, we must minimize the value of .

Expressed Solutions.
In order to achieve an ABC based energy-efficiency algorithm, representation of the solution becomes a priority.Solutions expressed represent the correspondence between the optimal bee and problem spaces found by ABC based algorithm.In this paper, there are VMs to be migrated to  target hosts, so this is an dimensional vector problem.Each dimension is an integer from 0 to  − 1. Position vector is represented as   = { 1 ,  2 , . . .,   }.V  shows a nectar of the th (The th solution vector) position of the th (th VMs to be migrated) dimension.Velocity vector is represented as V  = {V 1 , V 2 , . . ., V  , . . ., V  }; V  shows -dimensional speed of the th nectar source.  = { 1 ,  2 , . . .,   } shows that the current optimal location is found, and best position vector is represented as   = { 1 ,  2 , . . .,   }, which is regarded as the current best target location in the population.

The Main Idea of ABC Based Energy-Efficiency Live VM Allocation
Policy.An ABC based live VM allocation policy has been considered as a better energy-efficiency policy.
According to [15], it can reduce 25%∼30% energy cost with acceptable SLA violation.However, in big data time, the ABC based energy-efficiency live VM allocation policy will face huge amount of data-intensive jobs and need to get the best VM allocation decision in time.
To solve these problems, we have improved the ABC algorithm in two ways.First, the traditional speed of ABC based algorithm uses fitness function to find local optima which need to be optimized.Therefore, the idea of gradient descent is applied to getting the local optima rapidly.Second, the traditional ABC based algorithm maybe falls into the local optima in a time window of Δ.Therefore, simulated annealing is applied to finding the global optima.

Improved Artificial Bees Live VM Allocation Policy.
As illustrated in Figure 1, the FP-ABC VM allocation policy can be described as shown in Algorithm 1.

Experimental Environment.
The cloud simulator of CloudSim3.0[3] is used to conduct a simulation experiment.Java programming language is adopted to get results from Input: the candidate target host queue CTHQ = {ℎ 1 , ℎ 2 , . . ., ℎ  } Output: BestTargetHost Pseudo-code as follows: (1) CTHQ = {ℎ 1 , ℎ 2 , . . ., ℎ  } are marked unexplored; Set the SimMigTaskQueue; (2) Set the maximum temperature (T max), T = T max and T min; (3) Initialize CandidateTargetHostQueue; (4) Set NeighborHostQueue to be Null, and set BestTargetHost also to be Null; (5) Set the number of following bees as ; (6) Set the initial time point , // set the number of  VM migration requests; (7) While (T ≥ T min) (8) Select an undetected host randomly, and send scouts in candidate target host queue; (9) d o ( 10) Parbegin (12) Calculates the host power // Sent  following bees near the scouts randomly (13) Use of gradient descent, calculation and evaluation function Output the host number of current nearby following bee // find current local optima (16) else composed of 800 heterogeneous physical nodes, and half of these nodes are HP ProLiant ML100 G4 server (1860 MIPS) while the other halves are HP ProLiant ML110 G5 server (2660 MIPS) [8].Energy consumption of these two servers at different loads is shown in Table 2. Server virtual machine is set as single-core; RAM can also be classified according to the number of VMs.The following are the main types of VMs: High-CPU Medium Instance (2500 MIPS, 0.85 GB), Extra Large Instance (2000 MIPS, 3.75 GB), Small Instance (1000 MIPS, 1.7 GB), and Micro Instance (500 MIPS, 613 MB).
The simulation is performed in CloudSim3.0,Δ is set as 30 seconds, and its safety parameter is 1.5.

Evaluating the Energy Consumption of FP-ABC with
Different Approaches.In Figure 2 energy consumption of data center by 5.1% on the base of ABC RS.The proposed energy evaluation model can be used to evaluate different VM allocation policies.Our proposed FP-ABC policy has advantage in saving energy.

Evaluating the Violation Rate of SLA with Different
Approaches.Service Level Agreement (SLA) represents a guarantee under certain overload performance and reliability of service.In other words the service provider and the userdefined agreements are accepted by each other.SLAV is short for Violations of SLA.ASLAV is the average rate of SLAV.The QoS will be better if its ASLAV is lower.In Figure 3, FP-ABC is the last one.Among these traditional policies, THR RS has the worst performance.And it proves that VM allocation policy of THR RS gets higher ASLAV value.The ASLAV value of FP-ABC is 10.4%, and it means that FP-ABC can reduce energy consumption with acceptable ASLAV.Therefore, the workload balance based policy can satisfy user's requirement of QoS.

Evaluating the Effectiveness of FP-ABC with Different VM Allocation
Policies.The number of VM migrations is a statistic variable to measure the VM migration times which occurred in data centers.The cost will be lower if fewer VM migrations occurred.As shown in Figure 4, FP-ABC and ABC RS can reduce the frequency of VM migrations greatly.Furthermore, FP-ABC can reduce VM migrations by nearly 6.1% when compared with ABC RS.An unreasonable VM allocation policy will increase the frequency of VM migrations.Therefore, FP-ABC policy can find best hosts as BestTargetHostList in Δ.As a result, we can save more energy.

Evaluating the Energy-Efficiency of FP-ABC with Different
VM Allocation Policies.In formula (9), ESV is an energyefficiency comprehensive index.It measures the tradeoff between performance and energy consumption.As we all know, the QoS will be violated when energy is saved greatly and vice versa.Therefore, achieving a good energy-efficiency tradeoff is difficult.However, FP-ABC has a good performance in the metric of ESV depicted in Figure 5.The first reason is that FP-ABC policy can reduce the VM migration frequency to keep live workload balance in data centers; the second reason is that the proposed energy consumption evaluation model can be used to make a better evaluation of energy consumption in data centers; the third reason is that idea of simulated annealing and gradient descent can improve the performance of ABC based policy.Evaluation model [8] is presented as follows:

Evaluating the Decision Time of FP-ABC with Different
VM Allocation Policies.In Figure 6, based on the index of execution time mean in Cloudsim3.0, it can reduce the decision time 85% to THR RS, 86% to IQR RS, 88% to MD RS, and 13.8% to ABC RS.Compared with these traditional migration policies, the FP-ABC is more effective to minimize the decision-making time.

The Importance of Accelerating the Process of Finding Local
Optimized Target Hosts with FP-ABC.A huge number of live migrant VMs are waiting to be allocated to their best target hosts in Δ.Therefore, the solutions should be given in some reasonable time window.Current state-of-the-art ABC based live VM allocation policy should be improved by accelerating the speed of finding the local optimized target hosts.To solve this problem, the idea of gradient descent is adopted to ABC based live VM allocation policy.Current ABC based policy only makes the judgment based on its fitness value, without considering the requirement of speed.The idea of achieving a local solution quickly is realized by gradient descent.It will accelerate the process of searching local optimization in order to accelerate the speed of FP-ABC policy.In Section 4.6, we see that value of execution time mean is reduced when compared with 3 traditional policies and ABC RS policy.It is significant when facing with amount of applications and also can save energy.

The Importance of Adopting Idea of Simulated Annealing
to Find Global Optimized Target Hosts.We want to find the global optimum target host for each migrant VM in VM allocation, because the unreasonable target host will increase irrational energy consumption.In CloudSim3.0,three traditional VM migration policies are not good at finding the global optimum results, since their decision is made only by workload balance without reasonability analysis.Furthermore, the state-of-the-art ABC based policy is easy to fall into local optimum.Therefore, we add the idea of simulated annealing into ABC based policy, which can make scout bees jump out of the current solution space on a certain probability to detect other solution space.

Tradeoff between Energy Consumption and Service
Quality.In data centers, to reduce energy consumption or improve the quality of service simply is not a good energysaving policy, because reducing the total energy consumption will decrease service quality; that is to say, it will increase the value of SLAV.The main objective of this paper is to achieve energy efficient goal and make the value of SLAV accepted.Experimental results show that FP-ABC can save energy effectively in the balance of the EC and SLAV, which is based on formula (9) introduced in Section 4.5.

Conclusions
This paper presents a new live VM allocation policy to reach as far as possible to meet the SLAV value while saving energy consumption.We proposed the state-of-the-art ABC based policy with the idea of simulated annealing and the idea of gradient descent.The idea of gradient descent is used to find the optimal solution with higher speed.And the idea of simulated annealing is used to find the global optimal solutions in Δ.Simulation experiment has proved that FP-ABC policy can effectively reduce energy consumption with relative high level of QoS.In addition, FP-ABC can effectively reduce the energy consumption of data centers by 5.1%, when compared with the state-of-the-art algorithm of ABC RS.
In the future, the proposed the state-of-the-art ABC based policy should be adapted to the cloud of cloud.Cloud of cloud is a new business model to get an economic data center with good service performance.The improved ABC based optimized model should be implemented in new environment.

Figure 3 :
Figure 3: ASLAV metric of the five algorithms.

Figure 4 :
Figure 4: Number of VM migrations of the five algorithms.
Problem.We formalized the problem as migrating  virtual machines to  hosts.Its solution is represented as -dimensional vector, where each element represents a target host.We can describe the problem as to find a virtual machine allocation policy; we define it as , which is to satisfy the demand to maximize computing performance while minimizing energy consumption.To solve this problem, we define an array of  = {,VM, , }. represents  physical hosts; (, ) = { 1 ,  2 ,  3 , . . .,   }, where  means the VM migration time and VM represents  VMs.

Table 1 :
, = tan  =   −   √(  −   ) 2 + (  −   ) 2 It was established in 2002 by Professor Larry L. Peterson and Professor David Culler, and it was composed of 1353 nodes at 717 sites worldwide in January 2016 [16].10-day sample data in PlantLab cloud computing environment are chosen as experimental data as shown in Table 1 [8].Simulation data center is Characteristics of the workload data (CPU utilization rate).

Table 2 :
Power consumption by the selected servers at different workload levels in Watts.