CN106201700A - The dispatching method that a kind of virtual machine migrates online - Google Patents
The dispatching method that a kind of virtual machine migrates online Download PDFInfo
- Publication number
- CN106201700A CN106201700A CN201610569018.2A CN201610569018A CN106201700A CN 106201700 A CN106201700 A CN 106201700A CN 201610569018 A CN201610569018 A CN 201610569018A CN 106201700 A CN106201700 A CN 106201700A
- Authority
- CN
- China
- Prior art keywords
- host
- cpu utilization
- overloaded
- virtual machine
- determined
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
- G06F9/4856—Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/329—Power saving characterised by the action undertaken by task scheduling
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
本发明公开一种虚拟机在线迁移的调度方法,包括:步骤1、每秒记录一次每台主机的CPU利用率,以及每台主机中各个VM的CPU利用率;步骤2、预测下一时刻各个主机是否过载;步骤3、在判定为过载的主机上选择与主机CPU利用率上升复关系系数最大的VM迁移出去;步骤4,按照基于阈值的最小CPU利用率法找出低载主机;步骤5,将待迁移VM队列按照能源感知最佳降序方法进行重新分配。通过本发明的方法可显著降低云计算中心的能耗,并且相对以往的算法有更低的SLA违反率,也就是有更好的服务质量。
The invention discloses a scheduling method for virtual machine online migration, which includes: step 1, recording the CPU utilization rate of each host once per second, and the CPU utilization rate of each VM in each host; step 2, predicting each Whether the host is overloaded; step 3, select the VM with the largest coefficient of increase in the CPU utilization of the host on the host that is determined to be overloaded and migrate it; step 4, find the low-load host according to the minimum CPU utilization method based on the threshold; step 5 , reallocate the VM queue to be migrated according to the energy-aware optimal descending method. The method of the invention can significantly reduce the energy consumption of the cloud computing center, and has a lower SLA violation rate than the previous algorithm, that is, better service quality.
Description
技术领域technical field
本发明属于计算机体系内存系统结构领域,具体涉及一种虚拟机在线迁移的调度方法。The invention belongs to the field of computer system memory system structure, and in particular relates to a scheduling method for virtual machine online migration.
背景技术Background technique
随着云计算“所付即所需”的模式的迅速兴起,云数据中心任务量和规模也在不断扩大,其电能消耗也随之增加。据ICTresearch统计,2012我国数据中心能耗高达664.5亿度,占当年全国工业用电量的1.8%,到2015年我国数据中心能耗高达1000亿度。另外,从American Society of Heating,Refrigerating and Air-Conditioning Engineers(ASHRAE)的数据分析来看,整个数据中心运营成本的75%来源于基础设施的能量消耗。数据中心的高能耗必然会降低云服务提供商的利润率,增加碳排放量。高能耗势必会成为制约未来云数据中心的发展的重要因素,因此如何降低云数据中心能耗是云计算系统可持续发展过程中亟待解决的问题。With the rapid rise of the "pay what you need" model of cloud computing, the workload and scale of cloud data centers are also expanding, and their power consumption is also increasing. According to ICTresearch statistics, in 2012 my country's data center energy consumption was as high as 66.45 billion kWh, accounting for 1.8% of the country's industrial electricity consumption in that year. By 2015, my country's data center energy consumption was as high as 100 billion kWh. In addition, according to the data analysis of the American Society of Heating, Refrigerating and Air-Conditioning Engineers (ASHRAE), 75% of the operating cost of the entire data center comes from the energy consumption of the infrastructure. The high energy consumption of data centers will inevitably reduce the profit margin of cloud service providers and increase carbon emissions. High energy consumption is bound to become an important factor restricting the development of cloud data centers in the future, so how to reduce the energy consumption of cloud data centers is an urgent problem to be solved in the sustainable development of cloud computing systems.
在研究中,降低云数据中心的功耗的同时,有可能会造成服务质量的下降,进而违背与用户签订的服务等级协议(Service Level Assignment,SLA),这在实际应用中是完全不能接受的。因此研究需要从降低功耗和保证服务质量两方面入手。In the research, while reducing the power consumption of the cloud data center, it may cause the decline of service quality, and then violate the service level agreement (Service Level Assignment, SLA) signed with the user, which is completely unacceptable in practical applications . Therefore, the research needs to start from two aspects of reducing power consumption and ensuring service quality.
在提供IaaS服务的数据中心里,一般是以虚拟机的形式向用户提供基础设施资源,用户可以通过访问Web界面完成对虚拟机的访问和资源的请求,这些虚拟机是部署在数据中心的服务器上。虚拟机的存活时间是有限的,当用户不再需要这些资源时可以卸载相应的虚拟机,随着用户长时间在数据中心进行的虚拟机部署,数据中心会开启很多服务器,相应的随着虚拟机被卸载,数据中心硬件资源利用率会降的很低,而通过利用虚拟机在线迁移技术则可以大大的提高资源利用率降低IT成本。而当虚拟机被过度集合后,数据中心的响应时间以及服务有效性保障等都有可能无法得到保证,从而违反和用户签订的服务等级协议(SLA),因此未来保证数据中心的服务质量,或者虚拟机被频繁卸载后,资源利用率会降低,这时需要检测数据中心的资源使用情况,必要时进行虚拟机的迁移。In data centers that provide IaaS services, infrastructure resources are generally provided to users in the form of virtual machines. Users can complete access to virtual machines and resource requests through the web interface. These virtual machines are servers deployed in the data center. superior. The survival time of the virtual machine is limited. When the user no longer needs these resources, the corresponding virtual machine can be uninstalled. As the user deploys the virtual machine in the data center for a long time, the data center will open many servers, correspondingly with the virtual machine If the virtual machine is offloaded, the utilization rate of data center hardware resources will drop very low, but by using the virtual machine online migration technology, the resource utilization rate can be greatly improved and IT costs can be reduced. When the virtual machines are over-concentrated, the response time of the data center and the guarantee of service availability may not be guaranteed, thus violating the service level agreement (SLA) signed with the user, so the service quality of the data center can be guaranteed in the future, or After the virtual machine is frequently uninstalled, the resource utilization rate will decrease. At this time, it is necessary to detect the resource usage of the data center and migrate the virtual machine if necessary.
一般情况下虚拟机在线迁移分为如下四个步骤:In general, live virtual machine migration is divided into the following four steps:
1)过载检测。检测是否有主机过载,若有,则将该主机上的某个虚拟机迁移出去。1) Overload detection. Detect whether a host is overloaded, and if so, migrate a virtual machine on the host.
2)轻载检测。检测是否有主机轻载,若有,则将该主机上全部虚拟机迁移出去并将该主机切换到待机状态以降低能耗2) Light load detection. Detect whether there is a host under light load, if so, migrate all the virtual machines on the host and switch the host to the standby state to reduce energy consumption
3)虚拟机迁出选择。判定主机过载后迁出该主机上的哪个虚拟机。3) The virtual machine migration option. Determine which virtual machine on the host to migrate out after the host is overloaded.
4)虚拟机重分配。将所有待迁出的虚拟机分配到其他主机。4) Virtual machine reallocation. Allocate all the virtual machines to be migrated to other hosts.
完整的虚拟机在线迁移策略都会在以上四个方面进行优化。A complete virtual machine online migration strategy will be optimized in the above four aspects.
目前,已有一些研究致力于优化在线迁移策略,降低云数据中心功耗。Beloglazov等人提出最小CPU利用率策略,在过载时,需要将一个或多个虚拟机迁移出去,因此需要在该主机上运行的众多虚拟中做出选择。最小CPU利用率策略(Minimum CPU Utilization,MCU)既是应用于这个选择过程的。该策略的核心思想是将CPU利用率最小的虚拟机迁移出去以缓解过载。近年来有很多学者应用该理论做虚拟机在线迁移方面的研究。但是仅仅通过CPU利用率最小者一点做出决定还是有失偏颇,从试验的效果来说效果不佳,很可能由于只迁移出去了CPU占用率最小的虚拟机而在之后的短时间内重新回到过载状态。Abawajy等人提出MMT(Min Migration Time)策略是在所有的虚拟机中首先选择迁移时间最小的虚拟机,该策略的有点事充分考虑了迁移效率,将迁移带来的对性能的影响降到最低。但是缺点也很明显,因为并没有将与主机资源占用率升高关系最大的虚拟机迁移出去,故不能保证按照该策略迁移后能解决该主机的过载问题,在进行迁移后有可能主机还是维持在过载状态或濒临过载状态。Anton等人提出了能源感知最佳适应降序算法(Power Aware Best FitDecreasing,PABFD),为BFD算法在虚拟机安置问题上的推广。BFD为解决装箱问题的一种算法,在解决装箱问题时,其主要思想是:先对“物品”即虚拟机进行降序排列,之后检查所有非空“箱子”即主机,找到最合适该“物体”的“箱子”并将该物体装入“箱子”中,如果没有找到这样的“箱子”则开启“空箱”。该算法是专门为云数据中心低功耗问题研究出来的,与本课题的研究对象一致,对本课题的研究起到了重要的指导意义。At present, some research has been devoted to optimizing the online migration strategy and reducing the power consumption of cloud data centers. Beloglazov et al. proposed a minimum CPU utilization strategy. When overloaded, one or more virtual machines need to be migrated out, so it is necessary to make a choice among many virtual machines running on the host. The minimum CPU utilization policy (Minimum CPU Utilization, MCU) is applied to this selection process. The core idea of this policy is to migrate out the virtual machine with the smallest CPU utilization to alleviate the overload. In recent years, many scholars have applied this theory to do research on virtual machine online migration. However, it is still biased to make a decision only based on the one with the smallest CPU utilization. From the perspective of the experimental results, the effect is not good. to the overload state. Abawajy et al. proposed that the MMT (Min Migration Time) strategy is to first select the virtual machine with the smallest migration time among all virtual machines. The point of this strategy is to fully consider the migration efficiency and minimize the impact of migration on performance. . However, the disadvantages are also obvious. Because the virtual machine that has the greatest relationship with the increase in host resource usage has not been migrated, it cannot be guaranteed that the host's overload problem can be solved after migration according to this strategy. After the migration, the host may still maintain In overload condition or on the verge of overload condition. Anton et al. proposed the Power Aware Best Fit Decreasing (PABFD) algorithm, which is the generalization of the BFD algorithm on the virtual machine placement problem. BFD is an algorithm to solve the box-packing problem. When solving the box-packing problem, its main idea is: first sort the "items" (virtual machines) in descending order, and then check all non-empty "boxes" (hosts) to find the most suitable one. The "box" of the "object" and put the object into the "box", if no such "box" is found, open the "empty box". This algorithm is specially researched for the low power consumption problem of cloud data center, which is consistent with the research object of this topic, and plays an important guiding role in the research of this topic.
发明内容Contents of the invention
本发明要解决的技术问题是,提供一种虚拟机在线迁移的调度方法,在虚拟机在线迁移的过载检测、轻载检测、虚拟机迁出选择以及虚拟机重分配四个步骤上添加改进算法,由于虚拟机在线迁移本身会造成一定能耗,并且会造成服务质量的降低,因此在最大化将轻载主机中的虚拟机迁移出去降低的能耗同时要对迁移有一定限制,避免“过度迁移”带来的负面影响,以达到在降低能耗的同时保证服务质量。通过基于预测的主机过载检测策略、动态化且限制迁移的检测轻载算法、较优化的虚拟机迁出选择策略以及重分配算法来优化虚拟机在线迁移的过程。The technical problem to be solved by the present invention is to provide a scheduling method for virtual machine online migration, which adds an improved algorithm to the four steps of virtual machine online migration: overload detection, light load detection, virtual machine migration selection, and virtual machine reallocation , because the virtual machine online migration itself will cause a certain amount of energy consumption and reduce the quality of service. Migration” to reduce energy consumption while maintaining quality of service. The virtual machine online migration process is optimized through the prediction-based host overload detection strategy, the dynamic and limited migration detection light load algorithm, the more optimized virtual machine migration selection strategy, and the reallocation algorithm.
一种虚拟机在线迁移的调度方法包括如下步骤:A scheduling method for virtual machine online migration includes the following steps:
步骤1、每秒记录一次每台主机的CPU利用率,以及每台主机中各个VM的CPU利用率;Step 1. Record the CPU utilization rate of each host and the CPU utilization rate of each VM in each host once per second;
步骤2、预测下一时刻各个主机是否过载;Step 2. Predict whether each host is overloaded at the next moment;
步骤3、、在判定为过载的主机上选择与主机CPU利用率上升复关系系数最大的VM迁移出去;Step 3. On the host that is determined to be overloaded, select the VM that has the largest correlation coefficient with the CPU utilization of the host to migrate out;
步骤4,按照基于阈值的最小CPU利用率法找出低载主机;Step 4, find out the low-load host according to the threshold-based minimum CPU utilization method;
步骤5,将待迁移VM队列按照能源感知最佳降序方法进行重新分配。Step 5, reallocate the VM queue to be migrated according to the energy-aware optimal descending method.
作为优选,步骤2包括如下步骤:As preferably, step 2 comprises the following steps:
步骤2.1,根据主机历史CPU利用率计算当前时刻的加权回归曲线;Step 2.1, calculate the weighted regression curve at the current moment according to the historical CPU utilization of the host;
步骤2.2,根据加权回归曲线计算下一时刻主机的CPU利用率预测值;Step 2.2, calculate the CPU utilization forecast value of the host at the next moment according to the weighted regression curve;
步骤2.3,根据2.2计算出的预测值判断下一时刻主机是否会过载,具体判断方法如下:Step 2.3, judge whether the host will be overloaded at the next moment according to the predicted value calculated in 2.2, the specific judgment method is as follows:
(1)如果预测值大于等于0.9,判定主机下一时刻过载;(1) If the predicted value is greater than or equal to 0.9, it is determined that the host is overloaded at the next moment;
(2)如果预测值小于0.9,判定主机下一时刻未过载。(2) If the predicted value is less than 0.9, it is determined that the host is not overloaded at the next moment.
作为优选,步骤3包括如下步骤:As preferably, step 3 comprises the following steps:
步骤3.1,将被预测过载的主机上的各个VM的CPU利用率分别组成矩阵计算复相关系数;In step 3.1, the CPU utilization of each VM on the host computer predicted to be overloaded is formed into a matrix to calculate the complex correlation coefficient;
步骤3.2,根据3.1中得出的各个VM的复相关系数,选取其中数值最大的VM加入待迁移VM队列。In step 3.2, according to the multiple correlation coefficients of each VM obtained in 3.1, select the VM with the largest value and add it to the queue of VMs to be migrated.
作为优选,步骤4包括如下步骤:As preferably, step 4 comprises the following steps:
步骤4.1,找出云计算中心中CPU利用率最低的那一台主机;Step 4.1, find out the host with the lowest CPU utilization in the cloud computing center;
步骤4.2,将该主机的CPU利用率与进过大量实验得出的最佳阈值0.45进行对比,并判断该主机是否处于轻载,具体判断方法如下:In step 4.2, compare the CPU utilization of the host with the optimal threshold of 0.45 obtained through a large number of experiments, and judge whether the host is under light load. The specific judgment method is as follows:
(1)如果主机CPU利用率大于等于0.45,则判定其未处于轻载状态;(1) If the host CPU utilization rate is greater than or equal to 0.45, it is determined that it is not in a light load state;
(2)如果主机CPU利用率大小于0.45,则判定其处于轻载状态。(2) If the host CPU utilization rate is less than 0.45, it is determined that it is in a light load state.
步骤4.3,将判定为轻载的主机加入待迁移队列。In step 4.3, hosts determined to be lightly loaded are added to the queue to be migrated.
与现有技术相比,本发明具有以下优点:Compared with the prior art, the present invention has the following advantages:
在最大化虚拟机在线迁移带来的能耗降低的同时,能够尽量避免在轻载判定过程中因为不加以限制而成生的“过度迁移”现象,因此相比较于前人的研究成果,本发明迁移策略能够在能耗上方面有进一步的下降,并且在服务质量方面远远优于现有的迁移策略。通过本发明方法可显著降低云计算中心的能耗,并且相对以往的算法有更低的SLA违反率,也就是有更好的服务质量。While maximizing the reduction of energy consumption brought about by the online migration of virtual machines, it is possible to avoid the "over-migration" phenomenon that occurs due to no restrictions in the light-load determination process. Therefore, compared with previous research results, this paper The inventive migration strategy can further reduce energy consumption, and is far superior to existing migration strategies in terms of service quality. The method of the invention can significantly reduce the energy consumption of the cloud computing center, and has a lower SLA violation rate than the previous algorithm, that is, better service quality.
附图说明Description of drawings
图1为整个虚拟机在线迁移方法的流程图。FIG. 1 is a flowchart of a method for online migration of an entire virtual machine.
图2为本发明方法功耗与无算法、前人研究最佳算法对比实验结果示意图;Fig. 2 is a schematic diagram of the comparison experiment results of the method power consumption of the present invention with no algorithm and the best algorithm studied by predecessors;
图3为本发明方法的服务质量的标准:SLA违反率与前人最佳算法对比实验结果示意图。Fig. 3 is a schematic diagram of the comparison experiment results of the service quality standard of the method of the present invention: SLA violation rate and the previous best algorithm.
具体实施方式detailed description
为使本发明的目的,技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。In order to make the purpose, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.
本发明所涉及的是面向虚拟机迁移的高能效迁移策略,以一个具有800个物理节点的云数据中心为例,所有主机模拟为华为Fusion Server RH2288H。运行的模拟程序是CloudSim 3.0.2,使用的模拟数据是从PlanetLab项目中随机采集的十天的数据,也就是共十组workload。具体步骤如下:The present invention relates to an energy-efficient migration strategy for virtual machine migration. Taking a cloud data center with 800 physical nodes as an example, all hosts are simulated as Huawei Fusion Server RH2288H. The running simulation program is CloudSim 3.0.2, and the simulation data used are ten days of data randomly collected from the PlanetLab project, that is, a total of ten sets of workloads. Specific steps are as follows:
步骤1,每秒记录一次每台主机的CPU利用率,以及每台主机中各个VM的CPU利用率;Step 1. Record the CPU utilization rate of each host and the CPU utilization rate of each VM in each host once per second;
步骤2,利用局部加权回归法预测下一时刻各个主机是否过载;Step 2, using the local weighted regression method to predict whether each host is overloaded at the next moment;
步骤2.1,根据主机历史CPU利用率计算当前时刻的局部加权回归曲线其中的a,b是由最小二乘法(1)得出的Step 2.1, calculate the local weighted regression curve at the current moment according to the historical CPU utilization of the host Among them, a and b are obtained by the method of least squares (1)
其中n为记录的历史CPU利用率数量,xi为第i个时刻,yi为第i个时刻该主机的CPU利用率。权重函数wi(x)由(2)得出Where n is the number of recorded historical CPU utilizations, x i is the i-th time, and y i is the CPU utilization of the host at the i-th time. The weight function w i (x) is obtained from (2)
其中xk为k点时间,xi为i点时间,Δi(xk)为k点到i点的时间差,Δ1(xk)为k点到最初记录时间的时间差。Where x k is the time at point k, x i is the time at point i, Δ i (x k ) is the time difference from point k to point i, and Δ 1 (x k ) is the time difference from point k to the initial recording time.
权重函数中的核心T由(3)得出The core T in the weight function is obtained from (3)
其中x为时间。where x is time.
步骤2.2,根据步骤2.1中求出的加权回归曲线计算下一时刻主机的CPU利用率预测值 Step 2.2, according to the weighted regression curve obtained in step 2.1 Calculate the CPU utilization forecast value of the host at the next moment
步骤2.3,根据2.2计算出的预测值判断下一时刻主机是否会过载,具体判断方法如下:Step 2.3, judge whether the host will be overloaded at the next moment according to the predicted value calculated in 2.2, the specific judgment method is as follows:
(1)如果预测值大于等于0.9,判定主机下一时刻过载;(1) If the predicted value is greater than or equal to 0.9, it is determined that the host is overloaded at the next moment;
(2)如果预测值小于0.9,判定主机下一时刻未过载;(2) If the predicted value is less than 0.9, it is determined that the host is not overloaded at the next moment;
步骤3,通过步骤2,在判定为过载的主机上选择与主机CPU利用率复关系系数最大的VM迁移出去;Step 3, through step 2, select the VM with the largest complex relationship coefficient with the CPU utilization of the host on the host that is determined to be overloaded;
步骤3.1,将被预测过载的主机上的各个VM的CPU利用率分别组成矩阵计算复相关系数。以一个VM为例,将除该VM以外的同主机VM的CPU利用率历史组成矩阵表示为X1,X2,…Xn,将该VM的CPU利用率历史表示为Y,如(4)所示。In step 3.1, the CPU utilization of each VM on the host computer that is predicted to be overloaded is formed into a matrix to calculate the complex correlation coefficient. Taking a VM as an example, the CPU utilization history composition matrix of other VMs on the same host is expressed as X1, X2,...Xn, and the CPU utilization history of this VM is expressed as Y, as shown in (4).
其中X矩阵里以任意一个元素xa,b为例,其中a为第a台虚拟机,b为第b个时刻。则xa,b为第a台虚拟机在b时刻的CPU利用率。yn为当前评估的虚拟机在第n个时刻的CPU利用率。In the X matrix, take any element x a, b as an example, where a is the a-th virtual machine, and b is the b-th moment. Then x a, b is the CPU utilization rate of the a-th virtual machine at time b. y n is the CPU utilization rate of the currently evaluated virtual machine at the nth moment.
则复相关系数R2如(5)所示。Then the complex correlation coefficient R 2 is shown in (5).
其中,yi为在i时刻当前评估的虚拟机的CPU利用率,为当前评估的虚拟机的CPU利用率的平均值。Among them, y i is the CPU utilization rate of the virtual machine currently evaluated at time i, The average value of the CPU utilization of the currently evaluated virtual machine.
其中的值如(6)所示in The value is shown in (6)
步骤3.2,根据3.1中得出的各个VM的复相关系数,选取其中数值最大的VM加入待迁移VM队列;Step 3.2, according to the complex correlation coefficient of each VM obtained in 3.1, select the VM with the largest value and add it to the VM queue to be migrated;
步骤4,按照基于阈值的最小CPU利用率法找出低载主机;Step 4, find out the low-load host according to the threshold-based minimum CPU utilization method;
步骤4.1,找出云计算中心中CPU利用率最低的那一台主机;Step 4.1, find out the host with the lowest CPU utilization in the cloud computing center;
步骤4.2,将该主机的CPU利用率与进过大量实验得出的最佳阈值0.45进行对比,并判断该主机是否处于轻载,具体判断方法如下:In step 4.2, compare the CPU utilization of the host with the optimal threshold of 0.45 obtained through a large number of experiments, and judge whether the host is under light load. The specific judgment method is as follows:
(1)如果主机CPU利用率大于等于0.45,则判定其未处于轻载状态;(1) If the host CPU utilization rate is greater than or equal to 0.45, it is determined that it is not in a light load state;
(2)如果主机CPU利用率大小于0.45,则判定其处于轻载状态;(2) If the host CPU utilization rate is less than 0.45, it is determined that it is in a light load state;
步骤4.3,将判定为轻载的主机加入待迁移队列。In step 4.3, hosts determined to be lightly loaded are added to the queue to be migrated.
步骤5,将待迁移VM队列按照能源感知最佳降序算法进行重新分配,算法过程如下:Step 5, reallocate the VM queue to be migrated according to the energy-aware optimal descending algorithm. The algorithm process is as follows:
下面根据实验结果再做具体的分析:The following is a detailed analysis based on the experimental results:
本发明的虚拟机在线迁移策略主要目的是降低功耗以及尽可能保证服务质量,其中服务质量用SLA(Service-Level Agreement,服务等级协议)违反率来衡量。如图2所示:dvfs为一种没有虚拟机在线迁移的云计算中心低功耗策略,lr_mmt_mu为前人研究中最好的一种基于虚拟机在线迁移的策略,从图中可以看出,在全部十组Workload中本发明的功耗都远远低于dvfs的功耗,同时也略低于lr_mmt_mu。本发明的虚拟机在线迁移策略对服务质量的影响如图3所示:全部十组Workload的SLA违反率都远远低于lr_mmt_mu,这意味着本发明的策略在服务质量这方面上也远远优于前人的研究。The main purpose of the virtual machine online migration strategy of the present invention is to reduce power consumption and ensure service quality as much as possible, wherein the service quality is measured by SLA (Service-Level Agreement, Service Level Agreement) violation rate. As shown in Figure 2: dvfs is a low-power strategy for cloud computing centers without online migration of virtual machines, and lr_mmt_mu is the best strategy based on online migration of virtual machines in previous studies. As can be seen from the figure, In all ten groups of Workloads, the power consumption of the present invention is far lower than that of dvfs, and also slightly lower than lr_mmt_mu. The impact of the virtual machine online migration strategy of the present invention on the quality of service is shown in Figure 3: the SLA violation rates of all ten groups of Workloads are far lower than lr_mmt_mu, which means that the strategy of the present invention is also far from the quality of service superior to previous research.
以上实施例仅为本发明的示例性实施例,不用于限制本发明,本发明的保护范围由权利要求书限定。本领域技术人员可以在本发明的实质和保护范围内,对本发明做出各种修改或等同替换,这种修改或等同替换也应视为落在本发明的保护范围内。The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the protection scope of the present invention is defined by the claims. Those skilled in the art can make various modifications or equivalent replacements to the present invention within the spirit and protection scope of the present invention, and such modifications or equivalent replacements should also be deemed to fall within the protection scope of the present invention.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610569018.2A CN106201700A (en) | 2016-07-19 | 2016-07-19 | The dispatching method that a kind of virtual machine migrates online |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610569018.2A CN106201700A (en) | 2016-07-19 | 2016-07-19 | The dispatching method that a kind of virtual machine migrates online |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106201700A true CN106201700A (en) | 2016-12-07 |
Family
ID=57493303
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610569018.2A Pending CN106201700A (en) | 2016-07-19 | 2016-07-19 | The dispatching method that a kind of virtual machine migrates online |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106201700A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107193638A (en) * | 2017-05-30 | 2017-09-22 | 南京邮电大学 | A kind of quick self-adapted moving method of network function perceived based on multi-dimensional environment |
CN107423109A (en) * | 2017-05-24 | 2017-12-01 | 兰雨晴 | Virtual machine energy-saving scheduling method based on anonymous stochastic variable |
CN108388471A (en) * | 2018-01-31 | 2018-08-10 | 山东汇贸电子口岸有限公司 | A kind of management method constraining empty machine migration based on double threshold |
CN108519919A (en) * | 2018-03-19 | 2018-09-11 | 山东超越数控电子股份有限公司 | A method of realizing server resource dynamic dispatching under virtual cluster environment |
CN109343931A (en) * | 2018-09-12 | 2019-02-15 | 西安交通大学 | An application-aware virtual machine scheduling method for load balancing in IaaS environment |
CN110275773A (en) * | 2018-10-30 | 2019-09-24 | 湖北省农村信用社联合社网络信息中心 | Paas resource circulation utilization index system based on truthful data models fitting |
WO2021253851A1 (en) * | 2020-06-19 | 2021-12-23 | 浪潮电子信息产业股份有限公司 | Cluster distributed resource scheduling method, apparatus and device, and storage medium |
CN119211243A (en) * | 2024-11-27 | 2024-12-27 | 浙江孚临科技有限公司 | System server load distribution method and management system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102981893A (en) * | 2012-12-25 | 2013-03-20 | 国网电力科学研究院 | Method and system for dispatching virtual machine |
CN104199736A (en) * | 2014-06-30 | 2014-12-10 | 浙江大学苏州工业技术研究院 | Energy-saving method for data center in cloud environment |
CN105302632A (en) * | 2015-11-19 | 2016-02-03 | 国家电网公司 | Cloud computing working load dynamic integration method |
-
2016
- 2016-07-19 CN CN201610569018.2A patent/CN106201700A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102981893A (en) * | 2012-12-25 | 2013-03-20 | 国网电力科学研究院 | Method and system for dispatching virtual machine |
CN104199736A (en) * | 2014-06-30 | 2014-12-10 | 浙江大学苏州工业技术研究院 | Energy-saving method for data center in cloud environment |
CN105302632A (en) * | 2015-11-19 | 2016-02-03 | 国家电网公司 | Cloud computing working load dynamic integration method |
Non-Patent Citations (2)
Title |
---|
李俊涛等: "基于布朗指数法的虚拟机动态整合方法", 《计算机工程与应用》 * |
郭力争等: "数据中心环境下能耗性能感知的优化方法", 《北京邮电大学学报》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423109A (en) * | 2017-05-24 | 2017-12-01 | 兰雨晴 | Virtual machine energy-saving scheduling method based on anonymous stochastic variable |
CN107423109B (en) * | 2017-05-24 | 2020-05-01 | 兰雨晴 | Anonymous random variable-based virtual machine energy-saving scheduling method |
CN107193638A (en) * | 2017-05-30 | 2017-09-22 | 南京邮电大学 | A kind of quick self-adapted moving method of network function perceived based on multi-dimensional environment |
CN108388471A (en) * | 2018-01-31 | 2018-08-10 | 山东汇贸电子口岸有限公司 | A kind of management method constraining empty machine migration based on double threshold |
CN108388471B (en) * | 2018-01-31 | 2021-02-09 | 浪潮云信息技术股份公司 | Management method based on double-threshold constraint virtual machine migration |
CN108519919A (en) * | 2018-03-19 | 2018-09-11 | 山东超越数控电子股份有限公司 | A method of realizing server resource dynamic dispatching under virtual cluster environment |
CN109343931A (en) * | 2018-09-12 | 2019-02-15 | 西安交通大学 | An application-aware virtual machine scheduling method for load balancing in IaaS environment |
CN109343931B (en) * | 2018-09-12 | 2021-02-12 | 西安交通大学 | Load balancing oriented application perception virtual machine scheduling method in IaaS environment |
CN110275773A (en) * | 2018-10-30 | 2019-09-24 | 湖北省农村信用社联合社网络信息中心 | Paas resource circulation utilization index system based on truthful data models fitting |
CN110275773B (en) * | 2018-10-30 | 2020-08-28 | 湖北省农村信用社联合社网络信息中心 | Paas resource recycling index system based on real data model fitting |
WO2021253851A1 (en) * | 2020-06-19 | 2021-12-23 | 浪潮电子信息产业股份有限公司 | Cluster distributed resource scheduling method, apparatus and device, and storage medium |
CN119211243A (en) * | 2024-11-27 | 2024-12-27 | 浙江孚临科技有限公司 | System server load distribution method and management system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106201700A (en) | The dispatching method that a kind of virtual machine migrates online | |
CN105159751B (en) | The virtual machine migration method of energy efficient in a kind of cloud data center | |
CN103488539B (en) | Data center energy saving method based on central processing unit (CPU) dynamic frequency modulation technology | |
Cao et al. | Dynamic VM consolidation for energy-aware and SLA violation reduction in cloud computing | |
CN104375897B (en) | Cloud computing resource scheduling method based on the unbalanced degree of minimum relative load | |
CN102662750A (en) | Virtual machine resource optimal control method and control system based on elastic virtual machine pool | |
CN105607947A (en) | Novel cloud environment virtual machine scheduling method | |
CN107346264A (en) | A kind of method, apparatus and server apparatus of virtual machine load balance scheduling | |
CN103677960B (en) | Game resetting method for virtual machines capable of controlling energy consumption | |
CN104035542B (en) | A kind of virtual machine migration method and system calculated with energy consumption for cooling balance | |
CN111966453A (en) | Load balancing method, system, equipment and storage medium | |
Li et al. | Cost-aware automatic scaling and workload-aware replica management for edge-cloud environment | |
Song et al. | Utility analysis for internet-oriented server consolidation in VM-based data centers | |
WO2020206704A1 (en) | Cold and hot area dividing energy-saving storage method based on cluster node load state prediction | |
Li et al. | An energy-aware scheduling algorithm for big data applications in spark | |
CN106095531A (en) | A kind of dispatching method of virtual machine loaded based on grade and physical machine in cloud platform | |
Zhou et al. | An experience-based scheme for energy-SLA balance in cloud data centers | |
Tseng et al. | An energy efficient vm management scheme with power-law characteristic in video streaming data centers | |
CN105045648B (en) | Physical host resource state prediction method under IaaS cloud environment | |
CN104199724A (en) | Virtual resource dispatching and optimizing method based on cost performance | |
Tian et al. | Modeling and analyzing power management policies in server farms using stochastic petri nets | |
Mao et al. | Adaptive load balancing algorithm based on prediction model in cloud computing | |
Zhang et al. | An advanced load balancing strategy for cloud environment | |
CN108073449B (en) | Dynamic virtual machine placement method | |
Sampaio et al. | Optimizing energy-efficiency in high-available scientific cloud environments |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161207 |