Academia.eduAcademia.edu

Rate Optimal Virtual Machine Placement in Cloud Computing

researchgate.net

Infrastructure-as-a-service cloud provides a suitable environment where data-intensive user applications and their required data can be hosted by various networked computing and storage servers. In the cloud environment, users can package their required resources into virtual machines (VMs) and submit their VM requests to the cloud. The performance of user applications strongly depends on the data transfer delay, i.e., the time it takes to transfer the data files required by applications to the corresponding VMs. This delay is a function of the size of data files, the location of VMs that run the user applications as well as the allocation of data rates to VMs. In this paper, we propose a novel rate optimal VM placement (ROVMP) algorithm which not only determines the optimal placement of VMs, but also assigns optimal data rates to VMs such that the overall data transfer delay is minimized. Using simulation results we show that the proposed algorithm can significantly reduce the data transfer delay for VMs compared to placement algorithms previously proposed in the literature.

Rate Optimal Virtual Machine Placement in Cloud Computing Kamran Zamanifar*, Nader Nasri** and Mohammad-Hossein Nadimi-Shahraki*** *Islamic Azad University, Najafabad Branch, [email protected] **Islamic Azad University, Najafabad Branch, [email protected] ***Islamic Azad University, Najafabad Branch, [email protected] Abstract—Infrastructure-as-a-service cloud provides a suitable environment where data-intensive user applications and their required data can be hosted by various networked computing and storage servers. In the cloud environment, users can package their required resources into virtual machines (VMs) and submit their VM requests to the cloud. The performance of user applications strongly depends on the data transfer delay, i.e., the time it takes to transfer the data files required by applications to the corresponding VMs. This delay is a function of the size of data files, the location of VMs that run the user applications as well as the allocation of data rates to VMs. In this paper, we propose a novel rate optimal VM placement (ROVMP) algorithm which not only determines the optimal placement of VMs, but also assigns optimal data rates to VMs such that the overall data transfer delay is minimized. Using simulation results we show that the proposed algorithm can significantly reduce the data transfer delay for VMs compared to placement algorithms previously proposed in the literature. Keywords: Virtual Machine Placement, Rate Allocation, Linear Mix-integer Programming, Cloud Computing. 1. INTRODUCTION Cloud computing is considered a major step in the distributed computing paradigm. Cloud computing has enabled a wide range of user applications by providing cloud users with a pool of computing and storage resources. In such an environment, user applications are placed on physical machines, called computing centers, where they can use the local computation and memory resources to execute their tasks. In addition, the data required by applications are stored in distributed storage centers across the cloud and are accessible to cloud applications through a network. Furthermore, virtualization technology has enabled the abstraction of the services provided by the cloud and helps to hide the details of lower layers of the cloud structure (such as the hardware and operating system) from the user. Thereby, virtualization allows the cloud users to package their required resources into virtual machines (VMs) and submit their VM requests to the cloud. These requests are then processed by a placement algorithm which is responsible for determining suitable computing centers where VMs can be executed on. As virtualization is a core issue in cloud computing, the problem of virtual machine placement has attracted considerable attention recently. In particular, [1] proposes a placement algorithm that determines the placement of VMs such that the energy consumption in computing and storage centers is minimized. [2] employs a particle swarming algorithm to find a near-optimal placement for VMs by taking into account the task completion time of VMs, the cost of VMs, as well as the cost of communications between resources. In [3], a brokerbased architecture has been proposed where the broker implements a placement algorithm that dynamically determines the placement of VMs by taking into account average prices as well as the price trend of the computing resources provided by different cloud providers. Most previous results on VM placement in the literature do not consider the location of the data files required by VMs. However, the data file locations can strongly affect the data transfer delay, i.e., the time it takes to transfer the required data files to VMs. The data transfer delay can substantially increase the time required by the VMs to complete their tasks. This is especially important during the cloud initialization period, where large data files need to be transferred to VMs. These files include, e.g., executable and image files that have to be transferred to VMs before they can start their operation. This problem is exacerbated for a data-intensive application, for which the requested data might be spread in a number of vastly distributed data centers. In [4], a placement algorithm has been proposed that places VMs, one at a time, such that the data transfer delay is minimized. The method of [4], however, assumes that only a single VM can request a file transfer at a given time, and therefore does not address the problem of optimal rate allocation. However, according to Amazon EC2, one of the most popular cloud computing providers, unlike other resources, data rates are not dedicated and have to be shared among VMs [5]. As a result, it is crucial to devise a placement strategy that carefully takes into account the problem of rate allocation among VMs at the time of placement. For the purpose of data rate sharing among VMs, conventional transmission control protocol (TCP) algorithms such as TCP Tahoe, Reno, and Vegas [6] can be employed. These algorithms, however, do not take into account the size of data files for rate allocation, and therefore are not generally successful in effectively reducing the data transfer delay. To tackle this problem, in this paper, we propose a novel Rate Optimal VM Placement (ROVMP) algorithm which jointly optimizes placed on appropriate computing centers. For this purpose, the cloud broker implements a placement algorithm to properly place the VMs on the computing centers. The broker executes the placement algorithm every T seconds, where T is the time interval between consecutive placements. This time interval is adjusted by the broker based on the workload. At the time of each placement, a set of VMs are already running on the computing centers from previous placements. Furthermore, a set of VMs are stored in the VM repository and are ready for placement. Let V and Vˆ denote these sets, respectively. In addition, let V  V * Vˆ , i.e., V is the set of the VMs that are running or Fig. 1: The considered cloud environment. File transfers are illustrated by dashed arrows. the placement of VMs as well as their allocated data rates. In particular, we formulate a ROVMP optimization problem and show that it can be transformed into a linear mixed-integer programming problem. We then employ a branch-and-bound technique [7] to efficiently solve the ROVMP optimization problem. Using simulation results we show that the proposed algorithm can significantly reduce the data transfer delay for VMs compared to placement algorithms previously proposed in the literature. The proposed ROVMP algorithm can therefore greatly facilitate the adoption of cloud computing by users, especially users with data-intensive applications. The rest of this paper is organized as follows. In Section 2, we present the system model for the considered cloud computing environment. In Section 3, we present the problem formulation and describe our proposed ROVMP algorithm. We then present the numerical and simulation results in Section 4. Finally, conclusions are drawn in Section 5. 2. SYSTEM MODEL The considered cloud computing environment is shown in Fig. 1 and comprises several cloud users, computing centers, and storage centers. Computing centers provide a pool of computing power, memory and resources where cloud users can run their applications. Furthermore, storage centers are capable of storing data files required by user applications. Cloud users package their required computing, memory, and disk resources into VMs. The VM requests are then sent to a centralized entity called the cloud broker, where they are store in a VM repository. The cloud broker is responsible on behalf of cloud users to ensure that the requested VMs are ready to be placed. The computing power, memory, and disk resources that VM i  V requires for its operation are denoted by Rd(i), Rm(i), and Rc(i), respectively. Let P and S denote the set of computing centers and storage centers, respectively. The maximum computing power, memory, and disk resources provided by computing center j  P are denoted by c(j), m(j), and d(j), respectively. In addition, pc(j), pm(j), and pd(j) represent the hourly usage cost of computing power, main memory and disk resources for computing center i, respectively. As a result, the hourly cost for running VM i in computing center j is given by Pr(i, j) = pc(j)Rc(i) + pm(j)Rm(i) + pd(j)Rd(i) (1) The cloud users also report the maximum acceptable cost for one-hour usage of virtual machines. Let Pri,max denote the maximum acceptable cost for one-hour usage of VM i. Therefore, VM i has to be placed on a computing center where its hourly cost does not exceed Pri,max . VMs require access to data files stored in distributed storage centers across the cloud. In particular, VM i requires access to the set of data files f ki with file sizes ski , which are located on storage centers k  S and have to be transferred to VM i before it can start its operation. To enable the data transfer between VMs and storage centers, as shown in Fig. 1, the computing and storage centers are connected to a central wide area network (WAN) using separate access links. Cp(j) and Cs(k) denote the capacities of access links that connect computing center j and storage center k to the WAN, respectively. We assume that the bandwidth provided by the WAN is sufficiently larger than the capacities of the access links. As a result, the WAN does not impose any constraints on data transfers. Furthermore, we assume that the VMs report their required data files to the broker in advance, and therefore the broker has knowledge about the data files f ki , k  S , and their respective locations for all VMs at the time of placement. 3. ROVMP ALGORITHM As mentioned in the previous section, the broker implements a placement algorithm to ensure that VMs are placed on appropriate computing centers. In this section, we present an ROVMP algorithm for the broker which jointly optimizes the placement of VMs and their allocated data rates. In particular, we first present an ROVMP optimization problem and describe how it can be converted to a linear mixed-integer programming problem. We then employ a branch-and-bound technique to efficiently find the optimal solution to the ROVMP optimization problem. To formulate the placement optimization problem we first define the following variables. Let X ij denote a binary placement variable which determines the placement of VM i. In particular, X ij 1 when VM i is placed on computing center j, and X ij 0 otherwise. Furthermore, let Vk denote the set of VMs that have requested access to storage center k, while Si denotes the set of storage centers that VM i has requested access to. In addition, rki denotes the data rate allocated to VM i for communication with storage center k. Consequently, ski rki is the time required to transfer the data files requested by VM i from storage center k. The ROVMP optimization problem can now be mathematically cast as Minimize max max i i ( sk rk ) (2a ) i  V k  Si ¦ X ij ¦ r ik d C p ( j ), j  P (2b) i V k  Si ¦ r d C s ( k ), k  S (2c) i  Vk i k Constraint (2g) guarantees that the cost of VM i does not exceed the maximum acceptable cost Pri,max for this virtual machine. Finally, constraint (2h) states that each VM can be placed only on a single computing center, while (2i) constraint states that X ij is a binary variable. The optimization problem in (2) is a non-linear mixedinteger problem as the objective function (2a) and constraint (2b) are non-linear. To obtain a linear objective function, we introduce an auxiliary scalar variable t, which is a lower bound for the inverse of data transfer delays ski rki , i.e., t d min min r ik S ik Ÿ t d r ik S ik  i  V , k  Si (3) i  V k  Si Furthermore, the constraint (2b) involves the product of X ij and rki , and therefore is a non-linear constraint. We apply the linearization method [8] to covert (2b) into a linear constraint. In particular, we define the new variable y ijk X ij rki , which satisfies the following two linear constrains 0 d y ijk d rki (4) rki  ¦ R c (i ) X ij d O c ( j ), j  P (2 d ) t d r ik s ik  i  V , k  Si (6b) ¦ R m(i ) X ij d Om ( j ), j  P (2e) ¦ i V i j ¦ P r (i , j ) X d P j P i j i ˆ r ,max , i  V (2 g ) ¦ X ij 1, i  Vˆ (2 h) j P i X j  ^0,1` , i  Vˆ , j  P (2i ) where X ij 1 , i  Vˆ , j  P , and rki , i  Vˆ , k  S are the optimization variables. We note that placement variables X ij , i  V , are fixed from previous placements, and therefore are not included in the optimization. In the above optimization problem, the objective function (2a) aims at minimizes the maximum data transfer time for all VMs, i.e., we have adopted a min-max fair objective function. Constraint (2b) states that the summation of data rates allocated to VMs placed on computing center j  P is less than the capacity of the access link which connects this computing center to WAN. Similarly, constraint (2c) ensures that the summation of allocated rates to VMs for transmitting files located on storage center k  S , is less than the capacity of the link connecting this storage center to WAN. Constraints (2d), (2e), and (2f) ensure that computing power, memory, and disk resources allocated to VMs do not exceed the maximum amount offered by computing centers. ¦ y ijk d C p ( j ),  j  P (6c) i  V k  Si ¦ R d (i ) X d Od ( j ), j  P (2 f ) i V X ij ) d y ijk d rki , max X ij (5) where rki , max is a loose upper-bound on rki . The linearization technique is explained in more detail in the Appendix. Using (3)-(5) in (2), we obtain the following optimization problem: Maximize t (6a) i V Subject to: rki , max (1  Subject to: ¦ rki d Cs ( k ),  k  Si (6d ) i  Vk 0 d y ijk d rki (6e) rki  rki, max (1  X ij ) d y ijk d rki, max X ij (6 f ) The constraints 2d  2i (6 g ) The optimization problem in (6) is a linear mixedinteger optimization problem [9] which can be efficiently solved using a combination of the binary relaxation technique and branch-and-bound method [7]. These techniques are widely implemented by commercial optimization softwares such as MOSEK [10] and CPLEX [11]. The resulting placement algorithm will be used in the next section to obtain the optimal VM placements as well as the optimal VM data rates. 4. SIMULATION RESULTS In this section, we study the effectiveness of the proposed placement algorithm using simulation results. For this purpose, we consider a cloud environment with two computing centers (denoted by J1, J2) and two storage centers (denoted by S1, S2). Without loss of generality, we assume that all virtual machines require equal amounts of computing power, memory, and disk V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 S1 10 20 30 40 50 60 70 80 90 100 S2 20 40 60 80 100 120 140 160 180 200 resources. Computing centers J1 and J2 can host up to 100 and 50 virtual machines, respectively. Furthermore, for access link capacities we assume Cp(1) = 4 Gbps, Cp(2) = 10 Gbps, Ck(1) = 7 Gbps, and Ck(1) = 10 Gbps. We assume that the users request for a maximum of 10 virtual machines. The sizes of data files required by VMs 1 to 10 from storage centers S1 and S2 are listed in Table I. All file sizes are given in GBs. In order to focus on the effect of data file locations on the performance of the proposed placement algorithm, we consider the case that cloud users do not impose any constraints on the cost of VMs, i.e., we assume Pri,max f for all VMs. In addition, we assume that all VMs from previous placements have already completed their data transfers, i.e., V is an empty set. In Fig. 2 we show the simulation results for the data transfer delay of the proposed algorithm versus the number of requested VMs. For comparison, we also show the simulation results for a random placement (RP) algorithm which randomly places the requested VMs on the computing centers. For RP, all possible VMs placements are considered and the average data transfer delay for all placements are shown. Also shown in the figure is the simulation result for the placement algorithm of [4] which places virtual machines one-by-one without considering optimal rate allocation for VMs. This algorithm is assumed to employ TCP Vegas [6] for VM data rate allocation. As seen from the figure, the proposed algorithm significantly outperforms both RP and the algorithm of [4], as it carefully takes into account the location of the required data files and optimally assigns data rates to VMs. 5. CONCLUSIONS In this paper, we have proposed a novel virtual machine placement algorithm that reduces the data transfer delay in cloud environments by the joint optimization of VM placement and VM data rate allocation. Simulation results revealed that the proposed algorithm is substantially more effective in reducing the data transfer delay compared to the competing algorithms in the literature. APPENDIX LINEARIZATION TECHNIQUE Let x and a be a non–negative real variable and a binary variable, respectively. Furthermore, let y be the Maximum Data Transfer Delay (Second) TABLE I: The size of data files required by VMs i = 1, … , 10 from storage center s1 and s2. All file sizes are given in GBs. Number of VMs Fig. 2: Comparison of maximum data transfer delay for different placement algorithms. Solid lines with markers: Simulated data transfer time. product of these variables. For variable y = ax we can write y ­ x, if a = 1 (7) ® ¯ 0, if a = 0 Using linearization technique, an equivalent representation for (7) can be obtained as follows [8]: 0 d y d x (8) x  xmax (1  a ) d y d xmax a (9) where xmax is a loose upper–bound on x. REFERENCES [1] A. Beloglazov and R. Buyya. “Energy Efficient Allocation of Virtual Machines in Cloud Data Center”. In Proceedings of the IEEE/ACM International Symposium on Cluster, Cloud, and Grid Computing (CCGrid), pages 1–5, 2010. [2] Y.M. Chen and S.Y. Tsai. “Optimal Provisioning of Resource in a Cloud Service”. IJCSI International Journal of Computer Science Issues, 7, 2010. [3] J. Simarro, R. Moreno-Vozmediano, S. Montero, and I.M. Llorente. “Dynamic Placement of Virtual Machines for Cost Optimization in Multi- Cloud Environments”. In Proceedings of the International Conference on High Performance Computing and Simulation (HPCS), 2011. [4] J.T. Piao and J. Yan. “A Network-aware Virtual Machine Placement and Migration Approach in Cloud Computing”. In Proceedings of the International Conference on Grid and Cloud Computing, 2010. [5] Amazon EC2. [Online]: https://aws.amazon.com/ec2/, access at 5/2/2011. [6] S.H. Low, F. Paganini, and J.C. Doyle. “Internet congestion control”. IEEE Control Syst. Mag., 2:28–43, February 2002. [7] A.H. Land and A.G. Doig. “Optimal Provisioning of Resource in a Cloud Service”. Econometrica, 28:497–520, 1960. [8] F. Glover. “Improved linear integer programming formulations of nonlinear integer problems”. In Management Science, volume 22, pages 455–460, December 1975. [9] G.L. Nemhauser and L.A. Wolsey. “Integer and Combinatorial Optimization”. John Wiley and Sons, New York, 1996. [10] MOSEK. [Online]: http://www.mosek.com, access at 5/2/2012. [11] ILOG CPLEX. [Online]: http://www.ilog.com/products/cplex, access at 5/2/2012.