CN103078870A - Correlating-anti-correlating system and method for virtual machine in cloud data center operation system - Google Patents

Correlating-anti-correlating system and method for virtual machine in cloud data center operation system Download PDF

Info

Publication number
CN103078870A
CN103078870A CN 201310017943 CN201310017943A CN103078870A CN 103078870 A CN103078870 A CN 103078870A CN 201310017943 CN201310017943 CN 201310017943 CN 201310017943 A CN201310017943 A CN 201310017943A CN 103078870 A CN103078870 A CN 103078870A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
virtual machine
machine
associated
load
virtual
Prior art date
Application number
CN 201310017943
Other languages
Chinese (zh)
Inventor
郭锋
赵仁明
刘正伟
Original Assignee
浪潮电子信息产业股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date

Links

Abstract

The invention provides a correlating-anti-correlating system and method for a virtual machine in a cloud data center operation system. The system structurally comprises a correlating-anti-correlating module during starting of the virtual machine, a correlating-anti-correlating module during transfer of the virtual machine, a correlating-anti-correlating module during HA of the virtual machine and a correlative monitoring module. The method comprises the following steps of: firstly, when the virtual machine is started, acquiring a host machine, operated by the virtual machine correlated with the host machine, by the correlating-anti-correlating module during starting of the virtual machine; judging a load of the host machine; if the load allows, selecting the physical machine as a target host machine; if the load exceeds the range allowed by the system, returning starting failure and promoting reasons; if no virtual machine correlated with the host machine operates, acquiring a host machine which is started now and is operated by a virtual machine correlated with the host machine; judging the load of the host machine; if the load allows, selecting the physical machine as the target host machine; if the load exceeds the range allowed by the system, returning starting failure and prompting reasons; and if no virtual machine which is started now and is correlated with the host machine exists, selecting the physical machine which has a lowest load and has no anti-correlating virtual operation with the virtual machine as the target host machine.

Description

一种云数据中心操作系统中虚拟机关联-反关联系统及其方法 One kind of cloud data center operating system of virtual machine - Anti-associated system and method

技术领域 FIELD

[0001] 本发明涉及云数据中心操作系统中调度技术领域,具体地说是一种云数据中心操作系统中虚拟机关联-反关联系统及其方法。 [0001] The present invention relates to a cloud data center operating system scheduling technical field, in particular to a cloud data center of virtual machine operating system - trans associated systems and methods.

背景技术 Background technique

[0002] 当前,云计算逐渐被行业认可,云数据中心操作系统逐渐实现并付诸于实践。 [0002] Currently, the cloud computing industry gradually recognized cloud data center operating system gradually implement and put into practice. 在云数据中心操作系统中,系统的安全性尤为重要,它直接关系着系统的可用性。 In the cloud data center operating system, the security system is particularly important, it is directly related to the availability of the system.

[0003] 大多数同类系统并没有实现虚拟机关联、反关联功能,但大多对安全性要求较高的行业会要求有此功能。 [0003] did not achieve most of the same system of virtual machine, anti-correlation function, but most of the high security requirements of the industry will require this feature.

[0004] 为了保证系统的安全性、行业性,我们提出了云数据中心操作系统中虚拟机关联-反关联系统。 [0004] In order to ensure the safety of the industry of the system, we propose a cloud data center operating system of virtual machine - anti-affinity system.

发明内容 SUMMARY

[0005] 本发明的技术任务是解决现有技术的不足,提供一种云数据中心操作系统中虚拟机关联-反关联系统。 Technical tasks [0005] The present invention is to solve the deficiencies of the prior art, to provide a cloud data center operating system of virtual machine - anti-affinity system.

[0006] 本发明的技术方案是按以下方式实现的,系统结构包括:虚拟机开启时关联-反关联模块(I);虚拟机迁移时关联-反关联模块(2);虚拟机HA时关联-反关联模块(3);关联性监控模块(4),其中, [0006] aspect of the present invention are achieved in the following manner, a system configuration comprising: a virtual machine Open association - trans association module (the I); virtual machine migration associated time - trans association module (2); associated virtual machine HA - inverse association module (3); association monitoring module (4), wherein,

虚拟机开启时关联-反关联模块(I)是指虚拟机开启选择宿主物理机时,优先考虑与其关联的虚拟机所在的物理机,不能选择与其反关联虚拟机所在的物理机,同时考虑到宿主机的负载; When the virtual machine is turned association - trans association module (I) refers to the virtual machine is turned on the choice of host physical machine, priority physical machine VM associated therewith are located, can not choose its inverse associated virtual physical machine machine is located, taking into account host load;

虚拟机迁移时关联-反关联模块(2)是指虚拟机迁移时,与其关联的虚拟机同时自动迁移,目标物理机选择时,考虑所有与待迁移虚拟机关联虚拟机的负载;同时,目标物理机不能选择与其反关联的虚拟机所在的宿主机; Virtual machine migration associated time - trans association module (2) refers to a virtual machine migration, and its associated virtual machines at the same time automatic migration, the target physical machine selection, considering all to be the migration of virtual machine virtual machine load; the same time, the target host can not select a physical machine and its inverse associated virtual machine resides;

虚拟机HA时关联-反关联模块(3)是指虚拟机HA时,同时HA与其关联的虚拟机,在目标宿主机的选择上,不考虑与其反关联虚拟机所在的物理机; Associated virtual machine HA - when trans association module (3) is a virtual machine HA, HA while the virtual machine associated therewith, in the choice of the target host, regardless of the physical machine and its inverse associated virtual machine is located;

关联性监控模块(4)是指定时监控所有虚拟机的关联性情况,对于关联的虚拟机,若有不在一台宿主机上的情况,自动进行宿主机负载的比较,将虚拟机迁移至一台宿主机;对于反关联的虚拟机,若有存在同一宿主机的情况,通过迁移操作自动将虚拟机分离,保持反关联性。 Correlation monitoring module (4) is to monitor the association of all the virtual machine is specified, for the associated virtual machine, if the case is not on a host, the host automatically loads compared to migrate the virtual machine to a host station; VM for the case of anti-affinity, if any exist in the same host machine, the virtual machine automatically separated by migration, to maintain anti-affinity.

[0007] —种云数据中心操作系统中虚拟机关联-反关联方法,具体步骤如下: [0007] - a cloud data center kinds of virtual machine operating system - trans correlation method, the following steps:

I)虚拟机开启时的关联-反关联模块的工作步骤:假设虚拟机V需要开启; I) when the associated virtual machine is turned - trans associated modules working steps: the virtual machines need to turn on V;

(I)获取与V有关联关系的虚拟机运行的物理机P并计算P的负载,若P的负载在系统限制范围之内,则P为目标宿主机,若P负载过高,则无法开启此虚拟机,开启失败,返回失败原因;若P为空,则转入(2); (2)获取与V有关联关系的虚拟机正在开启的物理机Pl并计算P的负载,若Pl的负载在系统限制范围之内,则Pl为目标宿主机,若Pl负载过高,则无法开启此虚拟机,开启失败,返回失败原因;若? (I) with V virtual machine acquires association physical machine running computational load P and P, if the load P is within the limits of the system, the P target host, when the load P is too high, it can not be opened this virtual machine, on fails, return failure reason; if P is empty, the process proceeds to (2); (2) acquires V relationship of the virtual machine is a physical machine turn calculates the load P and Pl, if the Pl load within the limits of the system, the target host Pl, Pl if the load is too high, you can not turn on the virtual machine, open fails, the return reasons for failure; if? 1为空,则转入(3); 1 is empty, the process proceeds to (3);

(3)获取没有与V有反关联关系虚拟机运行或者正在开启的物理机列表PList并遍历,定位负载最低的物理机P2,若P2的负载在系统限制范围之内,则P2为目标宿主机,若P2负载过高,则无法开启此虚拟机,开启失败返回,提示失败原因;若PList为空,开启失败返回,提示失败原因; (3) obtaining not have the V inverse association between the virtual machine is running or is being turned on physical machines list PList and traverse positioning lowest load physical machine P2, if P2 is loaded within the system limit range, the P2 target host If P2 load is too high, you can not turn on the virtual machine, open failed to return, suggesting that the cause of failure; if PList is empty, open failed to return, suggesting that the cause of failure;

2)虚拟机迁移时的关联-反关联模块,假设虚拟机V需要迁移; 2 when associated with a virtual machine migration) - trans association module, the virtual machines need to be migrated V;

(1)获取与V关联运行的虚拟机VList,并计算VList和V的配置总和; (1) obtaining a virtual machine running VList associated with V, and calculates the sum VList configuration and V;

(2)获取没有与V有反关联关系虚拟机运行或者正在开启的物理机列表PList并遍历,定位负载最低的物理机P,根据计算的要迁移的虚拟机配置总和,若P的负载在系统限制范围之内,则P为目标宿主机,转(3),若P负载过高或者PList为空,则结束此次迁移; (2) Get No Yes Anti association relation between the virtual machine is running and V or is turned physical machines list PList and traverse positioning lowest load physical machine P, the sum of the virtual machine configuration calculated to migrate, if the load P in the system within the limits of the P target host, to (3), if the load is too high or PList P is empty, the end of this migration;

(3)生成虚拟机迁移的多条请求,开始迁移,若有失败,则进行回滚,此次迁移结束; (3) generate multiple requests for the virtual machine migration, the migration began, if it fails, then rolled back, the end of this migration;

3)虚拟机迁移时的关联-反关联模块,假设虚拟机V需要HA ; 3) when the associated virtual machine migration - trans association module, the virtual machines V requires the HA;

(1)获取与V关联运行的虚拟机VList,并计算VList和V的配置总和; (1) obtaining a virtual machine running VList associated with V, and calculates the sum VList configuration and V;

(2)获取没有与V有反关联关系虚拟机运行或者正在开启的物理机列表PList并遍历,定位负载最低的物理机P,根据计算的要迁移的虚拟机配置总和,若P的负载在系统限制范围之内,则P为目标宿主机,转(3),若P负载过高或者PList为空,则结束此次HA ; (2) Get No Yes Anti association relation between the virtual machine is running and V or is turned physical machines list PList and traverse positioning lowest load physical machine P, the sum of the virtual machine configuration calculated to migrate, if the load P in the system within the limits of the P target host, to (3), if the load is too high or PList P is empty, the end of the HA;

(3)生成虚拟机HA的多条请求,开始HA,对于VList内虚拟机,若其状态正常,将其进行迁移操作,以取代HA操作,以保证虚拟机的唯一性和关联性; (3) generating a plurality of requests for the virtual machine HA, the HA starts, the inner VList virtual machine, if it is normal, its migration operations to replace HA operation, and to ensure the uniqueness of the association of the virtual machine;

4)关联性监控模块 4) correlation monitoring module

(1)假设虚拟机Vl与V2关联,Vl在物理机Pl上,V2在物理机P2上,比较Pl与P2的负载,若P1〈P2,则将V2迁移到Pl上; (1) associated with the virtual machines V2 Vl, Vl on a physical machine Pl, P2 V2 on a physical machine, comparing the load Pl and P2, when P1 <P2, V2 will migrate to Pl;

(2)假设虚拟机Vl与V2反关联,宿主机为P,则需将Vl或者V2迁移到其他物理机上。 (2) the virtual machines associated with anti Vl, V2, the host is P, Vl or V2 need to migrate to a different physical machine.

[0008] 本发明所述的系统,虚拟机开启时关联-反关联模块,准确选择要开启的虚拟机所在的宿主机,自动寻找与其关联的虚拟机所在的宿主机并判断负载情况;自动规避与其反关联的虚拟机所在宿主机的选择。 [0008] The system of the present invention, associated with a virtual machine is turned on - trans association module, accurate selection of the host of the virtual machine to open automatically find the host virtual machine associated therewith and determines where the load; automatic avoidance Rather than opting for a virtual host machine where the anti-association.

[0009] 本发明所述的系统,虚拟机迁移时,虚拟机迁移时的关联-反关联模块自动迁移与其关联的虚拟机,保持关联性,同时,在目标宿主机的选择上,负载的计算考虑所有与其关联的虚拟机,保证负载计算的准确性,自动规避与其反关联的虚拟机所在的目标宿主机,保持虚拟机间的反关联性。 Compute Inverse association module automatically migrate virtual machines associated therewith, the association is maintained, while, at the choice of the target host, the load - [0009] when the system of the invention, migration of the virtual machine, the virtual machine migration when associated consider all the virtual machines associated with it, to ensure the accuracy of the load calculation, automatic anti-circumvention target host its associated virtual machine is located, to maintain the anti-correlation between the virtual machine.

[0010] 本发明所述的系统,虚拟机HA时的关联-反关联模块,虚拟机HA时,自动HA与其关联的虚拟机,这样大大减少了HA的判断次数及延时,同时,在目标宿主机的选择上,负载的计算考虑所有一次性HA的虚拟机配置,保证负载计算的准确性,自动规避与其反关联虚拟机所在的目标宿主机,保持虚拟机间的反关联性。 [0010] The system of the present invention, when a virtual machine associated with HA - trans association module, the virtual machine HA, the HA is automatically associated with the virtual machine, thereby greatly reducing the number and latency of HA is determined, at the same time, the target the choice of the host, the calculation takes into account one-off load of all HA virtual machine configuration, to ensure the accuracy of the load calculation, automatic anti-circumvention its host associated with the target virtual machine is located, to maintain the anti-correlation between the virtual machine.

[0011] 本发明所述的系统,关联性监控模块,通过定时监控、操作,保持虚拟机的关联性和反关联性。 [0011] The system of the present invention, correlation monitoring module, through regular monitoring, operating, maintaining and anti-affinity association of the virtual machine.

[0012] 本发明的系统具有以下突出的有益效果:提高系统的安全性和系统的可用性,满足大多数同类系统对实现虚拟机关联、反关联功能的需要。 [0012] The present invention has the following outstanding advantages: increase the availability of safety systems and systems to meet the most similar systems to the achievement of virtual machine, anti-needs associated functions. 附图说明 BRIEF DESCRIPTION

[0013] 附图1是系统流程示意图。 [0013] Figure 1 is a schematic flow diagram of the system.

具体实施方式 detailed description

[0014] 下面结合附图对本发明的系统作进一步详细说明。 [0014] DRAWINGS system of the present invention will be further described in detail.

[0015] 本发明的系统结构主要包括:虚拟机开启时的关联-反关联模块(I);虚拟机迁移时的关联-反关联模块(2);虚拟机HA时的关联-反关联模块(3);关联性监控模块(4)。 [0015] The system configuration of the present invention include: association when the virtual machine is turned - trans association module (the I); associated with the time of migration of virtual machines - trans association module (2); associated with the time of a virtual machine HA - trans association module ( 3); association monitoring module (4).

[0016] 其中,虚拟机开启时的关联-反关联模块(I)是指虚拟机开启时,选择宿主物理机时,优先考虑与其关联的虚拟机所在的物理机,同时考虑到宿主机的负载;不会选择与其反关联虚拟机所在的物理机。 [0016] wherein, associated with the time of the virtual machine is turned - trans association module (I) refers to the virtual machine is turned on, the choice of the host physical machine, priority physical machine VM associated therewith where, taking into account the load host in ; physical machine not associated with their anti-choice virtual machine resides. 虚拟机迁移时的关联-反关联模块(2)是指虚拟机迁移时,与其关联的虚拟机同时自动迁移,目标物理机选择时,考虑所有与待迁移虚拟机关联虚拟机的负载;同时,目标物理机不能选择与其反关联的虚拟机所在的宿主机。 Associated with the time of migration of virtual machines - trans association module (2) refers to a virtual machine migration, and its associated virtual machines at the same time automatic migration, the target physical machine selection, considering all to be the migration of virtual machine virtual machine load; simultaneously, target physical machine can not select the host and its inverse associated virtual machine resides. 虚拟机HA时的关联-反关联模块(3)是指虚拟机HA时,同时HA与其关联的虚拟机,在目标宿主机的选择上,不考虑与其反关联虚拟机所在的物理机。 When the virtual machine associated with HA - trans association module (3) is a virtual machine HA, the HA while the virtual machine associated therewith, in the choice of the target host, regardless of the physical machine and its inverse associated virtual machine is located. 关联性监控模块(4)是指定时监控所有虚拟机的关联性情况,对于关联的虚拟机,若有不在一台宿主机上的情况,自动进行宿主机负载的比较,将虚拟机迁移至一台宿主机;对于反关联的虚拟机,若有存在同一宿主机的情况,通过迁移操作自动将虚拟机分离,保持反关联性。 Correlation monitoring module (4) is to monitor the association of all the virtual machine is specified, for the associated virtual machine, if the case is not on a host, the host automatically loads compared to migrate the virtual machine to a host station; VM for the case of anti-affinity, if any exist in the same host machine, the virtual machine automatically separated by migration, to maintain anti-affinity.

[0017] 云数据中心操作系统中虚拟机关联-反关联系统描述如下:虚拟机开启的关联-反关联模块,当虚拟机开启时,首先获取与其关联的虚拟机所运行的宿主机,判断宿主机的负载,若负载允许,则选择此物理机为目标宿主机,若负载超过系统允许范围,则返回开启失败,并提示原因;如果没有与其关联的虚拟机运行,则获取正在开启的与其关联的虚拟机所运行的宿主机,判断宿主机的负载,若负载允许,则选择此物理机为目标宿主机,若负载超过系统允许的范围,则返回开启失败,并提示原因;若没有正在开启的与其关联的虚拟机,则选择负载最低的且没有与其反关联虚拟运行的物理机作为目标宿主机(负载允许)。 [0017] cloud data center operating system of virtual machine - trans correlation system is described as follows: associated virtual machines open - trans association module, when the virtual machine is turned on, first acquired host virtual machine associated with the operation, it is judged sink load the host, if the load is allowed, select the physical machine to the target host, if the load exceeds the system allowed range, the open failed to return, and to suggest the cause; if not associated with virtual machine running, the acquiring associated with being open host virtual machines are running, the load is determined host computer, if the load is allowed, select the physical machine as the target host, when the load exceeds the permissive range, the open failure is returned, and prompts the reasons; if not opening associated with the virtual machine, the lowest load is selected physical machine and its inverse is not running as the target associated with the virtual host (load allowed).

[0018] 虚拟机迁移时的关联-反关联模块,当虚拟机迁移时,判断与其关联的虚拟机,同时针对于这些虚拟机都生成迁移指令,并计算需要迁移的虚拟机群的总负载。 [0018] when the associated virtual machine migration - trans association module, when the virtual machine migration, the virtual machine associated therewith is determined, while the total load for the virtual cluster to generate these virtual machines are migrated instruction, and calculates the required migrated. 将此总负载作为自动寻找目标宿主机的负载条件,自动查找负载最低且符合系统负载范围的物理机,同时判断此物理机上是否有与待迁移的虚拟机反关联的虚拟机运行,若有,则继续寻找,若无,则此物理机为目标宿主机,完善迁移指令,迁移开始执行。 This total load automatically find the target as the host load conditions, automatically find and meet the minimum load load range of the system physical machine, but to determine whether there is on the physical and virtual machines to be migrated virtual machine running anti-affinity, if so, then continue to look for, if not, then this physical machine as the target host, complete the migration instruction, the migration started. 若迁移过程中有失败,则所有之前的迁移操作回滚,整个过程视为失败。 If there is a failure in the migration process, the migration operation will be rolled back before all, the whole process as a failure.

[0019] 虚拟机HA时的关联-反关联模块,当虚拟机需要HA时,判断与其关联的虚拟机,同时针对于这些虚拟机都生成HA指令,并计算需要迁移的虚拟机群的总负载。 [0019] associated with the time of a virtual machine HA - trans association module when a virtual machine needs HA, determining associated virtual machine, while the total load for the virtual cluster to the virtual machine generates HA command, and calculates the required migrated. 将此总负载作为自动寻找目标宿主机的负载条件,自动查找负载最低且符合系统负载范围的物理机,同时判断此物理机上是否有与待HA的虚拟机反关联的虚拟机运行,若有,则继续寻找,若无,则此物理机为目标宿主机。 This total load automatically find the target as the host load conditions, automatically find and meet the minimum load load range of the system physical machine, but to determine whether there are virtual machines running virtual machine to be associated with anti-HA on the physical machine, if so, then continue to look for, if not, then this physical machine as the target host. 判断其他HA的虚拟机,若状态正常,则HA操作改为迁移操作(保证虚拟机唯一性和关联性)。 HA determines other virtual machine, if the normal state, the operation to HA migration (the virtual machines to ensure uniqueness and relevance). 若HA过程中有失败,则所有之前的HA回滚,整个HA过程视为失败。 If there is a failure in the process of HA, HA rollback all before, HA whole process as a failure. [0020] 关联性监控模块是指定时监控所有虚拟机的关联性情况,对于关联的虚拟机,若有不在一台宿主机上的情况,自动进行宿主机负载的比较,将虚拟机迁移至一台宿主机;对于反关联的虚拟机,若有存在同一宿主机的情况,通过迁移操作自动将虚拟机分离,保持反关联性。 [0020] The correlation is a monitoring module to monitor the association of all the virtual machine is specified, for the associated virtual machine, if the case is not on a host, the host automatically loads compared to migrate the virtual machine to a host station; VM for the case of anti-affinity, if any exist in the same host machine, the virtual machine automatically separated by migration, to maintain anti-affinity.

实施例 Example

[0021] 下面,用一个具体实例说明该方法。 [0021] Next, a specific example of a description of the method.

[0022]1.虚拟机开启时的关联-反关联模块假设虚拟机V需要开启; [0022] 1 when the associated virtual machine is turned - anti V association module needs to open the virtual machines;

(1)获取与V有关联关系的虚拟机运行的物理机P并计算P的负载,若P的负载在系统限制范围之内,则P为目标宿主机,若P负载过高,则无法开启此虚拟机,开启失败,返回失败原因;若P为空,则转入(2) (1) obtaining a physical machine has an associated relationship with the virtual machines running V P and P of the computational load, if the load P is within the limits of the system, the P target host, when the load P is too high, it can not be opened this virtual machine, on fails, return failure reason; if P is empty, the process proceeds to (2)

(2)获取与V有关联关系的虚拟机正在开启的物理机Pl并计算P的负载,若Pl的负载在系统限制范围之内,则Pl为目标宿主机,若Pl负载过高,则无法开启此虚拟机,开启失败,返回失败原因;若? (2) Get affiliated with V virtual machine is a physical machine is turned on and calculates the load P, Pl, Pl if the load within the limits of the system, the target host Pl, Pl if the load is too high, it can not open this virtual machine, open fails, the return reasons for failure; if? 1为空,则转入(3) 1 is empty, the process proceeds to (3)

(3)获取没有与V有反关联关系虚拟机运行或者正在开启的物理机列表PList并遍历,定位负载最低的物理机P2,若P2的负载在系统限制范围之内,则P2为目标宿主机,若P2负载过高,则无法开启此虚拟机,开启失败返回,提示失败原因;若PList为空,开启失败返回,提示失败原因; (3) obtaining not have the V inverse association between the virtual machine is running or is being turned on physical machines list PList and traverse positioning lowest load physical machine P2, if P2 is loaded within the system limit range, the P2 target host If P2 load is too high, you can not turn on the virtual machine, open failed to return, suggesting that the cause of failure; if PList is empty, open failed to return, suggesting that the cause of failure;

2.虚拟机迁移时的关联-反关联模块假设虚拟机V需要迁移; 2. When the associated virtual machine migration - anti V association module to migrate the virtual machines;

(1)获取与V关联运行的虚拟机VList,并计算VList和V的配置总和; (1) obtaining a virtual machine running VList associated with V, and calculates the sum VList configuration and V;

(2)获取没有与V有反关联关系虚拟机运行或者正在开启的物理机列表PList并遍历, 定位负载最低的物理机P,根据计算的要迁移的虚拟机配置总和,若P的负载在系统限 (2) Get No Yes Anti association relation between the virtual machine is running and V or is turned physical machines list PList and traverse positioning lowest load physical machine P, the sum of the virtual machine configuration calculated to migrate, if the load P in the system limit

制范围之内,则P为目标宿主机,转(3 ),若P负载过高或者PList为空,则结束此次迁移; Made within the scope of, the P target host, to (3), if the load is too high or PList P is empty, the end of this migration;

(3)生成虚拟机迁移的多条请求,开始迁移。 (3) generate multiple requests for the virtual machine migration, the migration began. 若有失败,则进行回滚,此次迁移结束; If it fails, the rollback, the migration ends;

3.虚拟机迁移时的关联-反关联模块假设虚拟机V需要HA ; 3. When the associated virtual machine migration - trans association module V requires the HA the virtual machines;

(1)获取与V关联运行的虚拟机VList,并计算VList和V的配置总和; (1) obtaining a virtual machine running VList associated with V, and calculates the sum VList configuration and V;

(2)获取没有与V有反关联关系虚拟机运行或者正在开启的物理机列表PList并遍历, 定位负载最低的物理机P,根据计算的要迁移的虚拟机配置总和,若P的负载在系统限 (2) Get No Yes Anti association relation between the virtual machine is running and V or is turned physical machines list PList and traverse positioning lowest load physical machine P, the sum of the virtual machine configuration calculated to migrate, if the load P in the system limit

制范围之内,则P为目标宿主机,转(3),若P负载过高或者PList为空,则结束此次HA ; Made within the scope of, the P target host, to (3), if the load is too high or PList P is empty, the end of the HA;

(3)生成虚拟机HA的多条请求,开始HA。 A plurality of requests (3) the virtual machine's HA, HA starts. 对于VList内虚拟机,若其状态正常,将其进行迁移操作,以取代HA操作,以保证虚拟机的唯一性和关联性; The inner VList virtual machine, if it is normal, its migration operations to replace HA operation to ensure the uniqueness of the association and the virtual machine;

4.关联性监控模块 4. The correlation monitoring module

(1)假设虚拟机Vl与V2关联,Vl在物理机Pl上,V2在物理机P2上。 (1) associated with the virtual machines Vl V2, Vl on a physical machine Pl, V2 on the physical machine P2. 比较Pl与P2的负载,若P1〈P2,则将V2迁移到Pl上; Comparison Pl and P2 of the load, if P1 <P2, V2 will migrate to Pl;

(2)假设虚拟机Vl与V2反关联,宿主机为P,则需将Vl或者V2迁移到其他物理机上。 (2) the virtual machines associated with anti Vl, V2, the host is P, Vl or V2 need to migrate to a different physical machine.

[0023] 除本发明的说明书公开的技术特征外均为本专业技术人员的公职技术。 [0023] In addition to the technical features disclosed in the description of the present invention are those skilled in the art public's.

Claims (6)

  1. 1.一种云数据中心操作系统中虚拟机关联-反关联系统,其特征在于系统结构包括:虚拟机开启时关联-反关联模块(I);虚拟机迁移时关联-反关联模块(2);虚拟机HA时关联-反关联模块(3 );关联性监控模块(4 ),其中, 虚拟机开启时关联-反关联模块(I)是指虚拟机开启选择宿主物理机时,优先考虑与其关联的虚拟机所在的物理机,不能选择与其反关联虚拟机所在的物理机,同时考虑到宿主机的负载; 虚拟机迁移时关联- 反关联模块(2)是指虚拟机迁移时,与其关联的虚拟机同时自动迁移,目标物理机选择时,考虑所有与待迁移虚拟机关联虚拟机的负载;同时,目标物理机不能选择与其反关联的虚拟机所在的宿主机; 虚拟机HA时关联-反关联模块(3)是指虚拟机HA时,同时HA与其关联的虚拟机,在目标宿主机的选择上,不考虑与其反关联虚拟机所在的物理机; 关 A cloud data center of virtual machine operating system, - anti-correlation system, wherein a system configuration comprising: a virtual machine associated opening - trans association module (the I); when associated with a virtual machine migration - trans association module (2) ; virtual machine HA association - trans association module (3); association monitoring module (4), wherein the virtual machine is turned association - when trans association module (I) is a virtual machine is turned on the choice of host physical machine, priority thereto physical machine VM resides associated, not select its inverse correlation physical machine VM where, taking into account the load of the host machine; virtual machine migration associated - when trans association module (2) is a virtual machine migration, associated therewith virtual machines and automatically migrated, the target physical machine choice, considering all to be the migration of virtual machine virtual machine load; at the same time, the target physical machine can not select the host and its inverse associated virtual machine resides; associated virtual machines HA time - when inverse association module (3) is a virtual machine HA, HA while the virtual machine associated therewith, in the choice of the target host, regardless of the physical machine and its inverse associated virtual machine is located; off 性监控模块(4)是指定时监控所有虚拟机的关联性情况,对于关联的虚拟机,若有不在一台宿主机上的情况,自动进行宿主机负载的比较,将虚拟机迁移至一台宿主机;对于反关联的虚拟机,若有存在同一宿主机的情况,通过迁移操作自动将虚拟机分离,保持反关联性。 Of the monitoring module (4) is to monitor the association of all the virtual machine is specified, the virtual machine is associated, if the case is not on a host, the host automatically loads compared to migrate the virtual machine to a host; for the case of anti-associated virtual machine, if the presence of the same host machine, the virtual machine automatically separated by migration, to maintain anti-affinity.
  2. 2.—种云数据中心操作系统中虚拟机关联-反关联方法,其特征在于具体步骤如下: 1)虚拟机开启时的关联-反关联模块的工作步骤:假设虚拟机V需要开启; (1)获取与V有关联关系的虚拟机运行的物理机P并计算P的负载,若P的负载在系统限制范围之内,则P为目标宿主机,若P负载过高,则无法开启此虚拟机,开启失败,返回失败原因;若P为空,则转入(2); (2)获取与V有关联关系的虚拟机正在开启的物理机Pl并计算P的负载,若Pl的负载在系统限制范围之内,则Pl为目标宿主机,若Pl负载过高,则无法开启此虚拟机,开启失败,返回失败原因;若? 2.- cloud data center kinds of virtual machine operating system - trans associated method, wherein the following steps: 1) when the associated virtual machine is turned - trans associated modules working steps: the virtual machines need to open V; (1 ) acquires physical machine has an associated relationship with the V virtual machines running computational load P and P, if the load P is within the limits of the system, the P target host, when the load P is too high, not open this virtual machine, on fails, return failure reason; if P is empty, the process proceeds to (2); (2) acquires V relationship of the virtual machine is a physical machine turn calculates the load P and Pl, if the load in the Pl within the limits of the system, the target host Pl, Pl if the load is too high, you can not turn on the virtual machine, open fails, the return reasons for failure; if? 1为空,则转入(3); (3 )获取没有与V有反关联关系虚拟机运行或者正在开启的物理机列表PList并遍历,定位负载最低的物理机P2,若P2的负载在系统限制范围之内,则P2为目标宿主机,若P2负载过高,则无法开启此虚拟机,开启失败返回,提示失败原因;若PList为空,开启失败返回,提示失败原因; 2)虚拟机迁移时的关联-反关联模块,假设虚拟机V需要迁移; (1)获取与V关联运行的虚拟机VList,并计算VList和V的配置总和; (2)获取没有与V有反关联关系虚拟机运行或者正在开启的物理机列表PList并遍历,定位负载最低的物理机P,根据计算的要迁移的虚拟机配置总和,若P的负载在系统限制范围之内,则P为目标宿主机,转(3 ),若P负载过高或者PList为空,则结束此次迁移; (3)生成虚拟机迁移的多条请求,开始迁移,若有失败,则进行回滚,此次迁移结束; 3)虚 1 is empty, the process proceeds to (3); (3) does not have anti-acquired virtual machine running relationship with V being open or PList physical machine and traverse the list, locating the lowest physical machine load P2, P2 in the system if the load within the limits of, the target host P2, P2 if the load is too high, you can not turn on the virtual machine, open failed to return, suggesting that the cause of failure; if PList is empty, open failed to return, suggesting that the cause of failure; 2) the virtual machine associated during migration - inverse association module, the virtual machines V needs to be migrated; (1) acquires the virtual machine VList operation and V associated, and calculates VList sum configuration and V; and (2) Get not have the V inverse association between the virtual machine is running or is being turned on physical machines list PList and traverse positioning lowest load physical machine P, arranged sum calculated to the migrated virtual machine, if the load P within the system limits of the P target host, turn (3), if the load is too high or PList P is empty, the end of this migration; (3) generates a plurality of virtual machine migration request, the migration starts, if it fails, a roll back, ends this migration; 3) virtual 机迁移时的关联-反关联模块,假设虚拟机V需要HA ; (1)获取与V关联运行的虚拟机VList,并计算VList和V的配置总和; (2)获取没有与V有反关联关系虚拟机运行或者正在开启的物理机列表PList并遍历,定位负载最低的物理机P,根据计算的要迁移的虚拟机配置总和,若P的负载在系统限制范围之内,则P为目标宿主机,转(3),若P负载过高或者PList为空,则结束此次HA ; (3)生成虚拟机HA的多条请求,开始HA,对于VList内虚拟机,若其状态正常,将其进行迁移操作,以取代HA操作,以保证虚拟机的唯一性和关联性; 4)关联性监控模块(1)假设虚拟机Vl与V2关联,Vl在物理机Pl上,V2在物理机P2上,比较Pl与P2的负载,若P1〈P2,则将V2迁移到Pl上; (2)假设虚拟机Vl与V2反关联,宿主机为P,则需将Vl或者V2迁移到其他物理机上。 Associated during machine migration - trans association module, the virtual machines V requires HA; (1) acquires V associated virtual machines running Vlist, and calculates the sum of the configuration Vlist and V; and (2) acquires not have trans relationship and V virtual machine is running or is being turned on physical machines list PList and traverse positioning lowest load physical machine P, the sum of the virtual machine configuration calculated to migrate, if the load P within the system limits of the P target host , to (3), if the load is too high or PList P is empty, the end of the HA; a plurality of requests (3) the virtual machine's HA, HA starts, the inner VList virtual machine, if it is normal, it migration operations to replace HA operation to ensure uniqueness and relevance virtual machine; 4) correlation monitoring module (1) the virtual machines Vl associated with V2, on a physical machine Pl, the Vl V2 physical machine P2 Comparative Pl and P2 of the load, if P1 <P2, V2 will migrate to Pl; (2) associated with the virtual machine trans assuming Vl and V2, the host is P, Vl or V2 need to migrate to a different physical machine.
  3. 3.根据权利要求1所述的系统,其特征在于:虚拟机开启时关联-反关联模块,准确选择要开启的虚拟机所在的宿主机,自动寻找与其关联的虚拟机所在的宿主机并判断负载情况;自动规避与其反关联的虚拟机所在宿主机的选择。 3. The system of claim 1, wherein: the virtual machine is turned association - trans association module, accurate selection of the host of the virtual machine to open automatically find the host virtual machine associated therewith and determines where load; automatically select the anti-circumvention its associated virtual machine where the host is.
  4. 4.根据权利要求1所述的系统,其特征在于:虚拟机迁移时,虚拟机迁移时的关联-反关联模块自动迁移与其关联的虚拟机,保持关联性,同时,在目标宿主机的选择上,负载的计算考虑所有与其关联的虚拟机,保证负载计算的准确性,自动规避与其反关联的虚拟机所在的目标宿主机,保持虚拟机间的反关联性。 4. The system according to claim 1, wherein: the virtual machine is migrated, the migration of virtual machines associated time - trans association module automatically migrate virtual machines associated therewith, the association is maintained, while, at the selected target host on the computational load into account all the virtual machines associated with it, to ensure the accuracy of the load calculation, automatic anti-circumvention target host its associated virtual machine is located, to maintain the anti-correlation between the virtual machine.
  5. 5.根据权利要求1所述的系统,其特征在于:虚拟机HA时的关联-反关联模块,虚拟机HA时,自动HA与其关联的虚拟机,这样大大减少了HA的判断次数及延时,同时,在目标宿主机的选择上,负载的计算考虑所有一次性HA的虚拟机配置,保证负载计算的准确性,自动规避与其反关联虚拟机所在的目标宿主机,保持虚拟机间的反关联性。 5. The system according to claim 1, wherein: when the associated virtual machine HA - trans association module, the virtual machine HA, the HA is automatically associated with a virtual machine, which greatly reduces the time delay and determines the number of HA Meanwhile, in the choice of the target host, the one-time computational load considering all HA virtual machine configuration, to ensure the accuracy of the load calculation, automatic anti-circumvention its host associated with the target virtual machine is located, to maintain discord among virtual machines relevance.
  6. 6.根据权利要求1所述的系统,其特征在于关联性监控模块,通过定时监控、操作,保持虚拟机的关联性和反关联性。 6. The system according to claim 1, characterized in that the correlation monitoring module, through regular monitoring, operating, maintaining and anti-affinity association of the virtual machine.
CN 201310017943 2013-01-18 2013-01-18 Correlating-anti-correlating system and method for virtual machine in cloud data center operation system CN103078870A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310017943 CN103078870A (en) 2013-01-18 2013-01-18 Correlating-anti-correlating system and method for virtual machine in cloud data center operation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310017943 CN103078870A (en) 2013-01-18 2013-01-18 Correlating-anti-correlating system and method for virtual machine in cloud data center operation system

Publications (1)

Publication Number Publication Date
CN103078870A true true CN103078870A (en) 2013-05-01

Family

ID=48155274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310017943 CN103078870A (en) 2013-01-18 2013-01-18 Correlating-anti-correlating system and method for virtual machine in cloud data center operation system

Country Status (1)

Country Link
CN (1) CN103078870A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245536A (en) * 2015-10-26 2016-01-13 中国互联网络信息中心 Method for resource allocation of cloud data center based on safety evaluation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096601A (en) * 2011-02-11 2011-06-15 浪潮(北京)电子信息产业有限公司 Virtual machine migration management method and system
US20120159454A1 (en) * 2010-12-20 2012-06-21 Microsoft Corporation Probe insertion via background virtual machine
CN102681895A (en) * 2011-03-11 2012-09-19 北京市国路安信息技术有限公司 Dynamic self-migrating cloud service method
CN102724277A (en) * 2012-05-04 2012-10-10 华为技术有限公司 Virtual machine thermomigration method, virtual machine arrangement method, server and cluster system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120159454A1 (en) * 2010-12-20 2012-06-21 Microsoft Corporation Probe insertion via background virtual machine
CN102096601A (en) * 2011-02-11 2011-06-15 浪潮(北京)电子信息产业有限公司 Virtual machine migration management method and system
CN102681895A (en) * 2011-03-11 2012-09-19 北京市国路安信息技术有限公司 Dynamic self-migrating cloud service method
CN102724277A (en) * 2012-05-04 2012-10-10 华为技术有限公司 Virtual machine thermomigration method, virtual machine arrangement method, server and cluster system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
付爱英等: "基于Lockstep的容错技术的研究", 《科技广场》 *
付飞: "浅析云计算节能技术与应用", 《信息通信技术》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245536A (en) * 2015-10-26 2016-01-13 中国互联网络信息中心 Method for resource allocation of cloud data center based on safety evaluation
WO2017071033A1 (en) * 2015-10-26 2017-05-04 中国互联网络信息中心 Security evaluation-based method for allocating resources in cloud data center
CN105245536B (en) * 2015-10-26 2018-07-03 中国互联网络信息中心 Kinds of data center resource allocation method for cloud-based security assessment

Similar Documents

Publication Publication Date Title
US20040199599A1 (en) Method of shutting down virtual machines in an orderly manner
US20100332658A1 (en) Selecting a host from a host cluster to run a virtual machine
US20120192181A1 (en) Consent-based virtual machine migration
US20100332657A1 (en) Selecting a host from a host cluster for live migration of a virtual machine
US20090172424A1 (en) Thread migration to improve power efficiency in a parallel processing environment
US20090300606A1 (en) Virtual machine migration with direct physical access control
JP2007207219A (en) Computer system management method, management server, computer system, and program
JP2008152594A (en) Method for enhancing reliability of multi-core processor computer
US20120159570A1 (en) Providing a security boundary
US20130346613A1 (en) Scheduling a processor to support efficient migration of a virtual machine
US20100017572A1 (en) Transactional memory support for non-coherent shared memory systems using selective write through caches
US20120047357A1 (en) Methods and systems for enabling control to a hypervisor in a cloud computing environment
US20140137125A1 (en) Application migration with dynamic operating system containers
US20150052322A1 (en) Systems and methods for memory deduplication by origin host in virtual machine live migration
CN103198028A (en) Method, device and system for migrating stored data
US20140108854A1 (en) Providing multiple io paths in a virtualized environment to support for high availability of virtual machines
JP2010271863A (en) Information processing apparatus
CN103152419A (en) High availability cluster management method for cloud computing platform
US20150058843A1 (en) Virtual hadoop manager
US20140059232A1 (en) Robust tenant placement and migration in database-as-a-service environments
US20140082202A1 (en) Method and Apparatus for Integration of Virtual Cluster and Virtual Cluster System
US20140215459A1 (en) Virtual machine memory migration by storage
US20140281347A1 (en) Managing cpu resources for high availability micro-partitions
US20140344810A1 (en) Resource management method and apparatus for virtual machine system, and virtual machine system
US20130227559A1 (en) Management of i/o reqeusts in virtual machine migration

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
WD01