[go: up one dir, main page]

CN102968344A - Method for migration scheduling of multiple virtual machines - Google Patents

Method for migration scheduling of multiple virtual machines Download PDF

Info

Publication number
CN102968344A
CN102968344A CN2012104882100A CN201210488210A CN102968344A CN 102968344 A CN102968344 A CN 102968344A CN 2012104882100 A CN2012104882100 A CN 2012104882100A CN 201210488210 A CN201210488210 A CN 201210488210A CN 102968344 A CN102968344 A CN 102968344A
Authority
CN
China
Prior art keywords
host
migration
virtual machine
machine
node
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
Application number
CN2012104882100A
Other languages
Chinese (zh)
Inventor
肖利民
程贤初
张振中
蔺波
秦静超
刘宇航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Original Assignee
Beihang University
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
Application filed by Beihang University filed Critical Beihang University
Priority to CN2012104882100A priority Critical patent/CN102968344A/en
Publication of CN102968344A publication Critical patent/CN102968344A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明涉及一种多虚拟机迁移的调度方法,在多虚拟机迁移过程中,对虚拟机迁移的目标宿主机进行选择的策略,并对多虚拟机的迁移顺序进行规划的策略,包括:读取虚拟机划分的目标聚类信息;获取系统内宿主机信息及其上运行的全部虚拟机的信息计算虚拟机聚类到目标宿主机的合适的映射,以为虚拟机选择合适的目标宿主机;收集宿主机的负载情况;根据负载和迁移映射,安排多虚拟机的迁移顺序,并控制执行。本发明从系统宏观的角度,控制了多虚拟机迁移的总次数和总时间,使迁移效率更高。由于本发明的算法思想具有一定的普适性,同时由于将虚拟机聚类作为输入,与算法的计算过程相剥离,具有比较广泛的适用性。

The invention relates to a scheduling method for multi-virtual machine migration. In the multi-virtual machine migration process, a strategy for selecting a target host machine for virtual machine migration and a strategy for planning the migration sequence of multi-virtual machines include: Get the target clustering information divided by the virtual machine; get the information of the host machine in the system and the information of all the virtual machines running on it, and calculate the appropriate mapping from the clustering of the virtual machine to the target host machine, so as to select the appropriate target host machine for the virtual machine; collect The load of the host machine; according to the load and migration mapping, arrange the migration sequence of multiple virtual machines and control the execution. The invention controls the total times and the total time of multi-virtual machine migration from the perspective of system macro, so that the migration efficiency is higher. Since the algorithm idea of the present invention has certain universality, and because the clustering of the virtual machine is used as the input, which is separated from the calculation process of the algorithm, it has relatively wide applicability.

Description

一种多虚拟机迁移调度的方法A method for multi-virtual machine migration scheduling

技术领域technical field

本发明涉及一种多虚拟机迁移的调度方法,主要涉及到在多虚拟机迁移过程中,对虚拟机迁移的目标宿主机进行选择的策略,以及对多虚拟机的迁移顺序进行规划的策略,属于虚拟化及云计算技术领域。The present invention relates to a scheduling method for multi-virtual machine migration, and mainly relates to a strategy for selecting a target host machine for virtual machine migration and a strategy for planning the migration sequence of multi-virtual machines during the multi-virtual machine migration process. It belongs to the technical field of virtualization and cloud computing.

背景技术Background technique

目前,随着虚拟化技术在云计算等领域的广泛应用,虚拟机在服务器、数据中心上大量运行,对虚拟机的管理需求逐渐凸显出来。当前虚拟机的管理需求包含多个方面。比如,优化虚拟机部署以降低服务器的功耗;优化虚拟机部署以提高物理CPU的利用率;将内存相似度大的虚拟机迁移到同一宿主机,利用基于内容的页面共享技术(CBPS),使多个虚拟机共享宿主机物理内存,以节省宿主机内存资源,提高宿主机内存使用效率,等。以上几种虚拟机管理需求,都涉及到多虚拟机迁移。多虚拟机的迁移过程,具有一定开销,因此针对不同情况下的多虚拟机迁移,各种调度算法的研究成为当前虚拟化和云计算领域的研究热点。At present, with the widespread application of virtualization technology in cloud computing and other fields, a large number of virtual machines run on servers and data centers, and the management requirements for virtual machines are gradually highlighted. The current management needs of virtual machines include many aspects. For example, optimize virtual machine deployment to reduce server power consumption; optimize virtual machine deployment to increase physical CPU utilization; migrate virtual machines with high memory similarity to the same host, and use content-based page sharing technology (CBPS), Allow multiple virtual machines to share the physical memory of the host machine to save the memory resources of the host machine, improve the memory usage efficiency of the host machine, and so on. The above-mentioned virtual machine management requirements all involve multi-virtual machine migration. The migration process of multiple virtual machines has a certain overhead. Therefore, for the migration of multiple virtual machines in different situations, the research of various scheduling algorithms has become a research hotspot in the field of virtualization and cloud computing.

目前的虚拟机调度算法,有针对宿主机的负载均衡进行调度的,也有针对宿主机的资源利用率情况进行调度的,还有些调度算法,将内存相似的虚拟机通过迁移放置在同一台宿主机上,以共享宿主机内存。这些调度算法,不管是采用静态的算法还是动态的算法,都主要集中于解决“如何完成调度目标”,并没有注重如何降低多虚拟机在迁移过程中的开销。The current virtual machine scheduling algorithms include scheduling for the load balance of the host machine, and scheduling for the resource utilization of the host machine. There are also some scheduling algorithms that migrate virtual machines with similar memory to the same host machine. to share host memory. These scheduling algorithms, no matter they are static algorithms or dynamic algorithms, are mainly focused on solving "how to achieve the scheduling goal", and do not pay attention to how to reduce the overhead during the migration process of multiple virtual machines.

随着云计算的大规模应用,在集群服务器或者数据中心,虚拟机的数量越来越多,涉及多虚拟机的迁移的开销越来越大。如果多虚拟机的调度方法能有效降低多虚拟机迁移的总的迁移次数,并在迁移次数相同的情况下,进而降低总的迁移时间,将直接降低整个系统中虚拟机总的停机次数和停机时间,对于提高系统的整体服务质量有重要意义。本发明就是针对多虚拟机迁移,提出一种调度方法以降低系统的总的迁移次数和迁移时间。With the large-scale application of cloud computing, the number of virtual machines in cluster servers or data centers is increasing, and the cost of migration involving multiple virtual machines is increasing. If the multi-virtual machine scheduling method can effectively reduce the total number of migration times of multi-virtual machine migration, and in the case of the same number of migration times, thereby reducing the total migration time, it will directly reduce the total number of downtime and downtime of virtual machines in the entire system. Time is of great significance for improving the overall service quality of the system. The present invention aims at multi-virtual machine migration and proposes a scheduling method to reduce the total migration times and migration time of the system.

发明内容Contents of the invention

本发明的目的是提出一种多虚拟机迁移的调度方法,该方法的输入是虚拟机的聚类,聚类的划分方式根据特定的迁移目标决定(比如根据内存相似度计算而决定通过迁移将内存相似度大虚拟机迁移到一台宿主机),方法的功能是为每个虚拟机聚类选择合适的宿主机,并为全部需要迁移的虚拟机设计合适的迁移顺序。该调度方法使多虚拟机的迁移总次数尽可能小,在相同迁移次数条件下,使迁移总时间尽可能小,从而是迁移过程,系统的总开销降低,提高系统的服务质量。The purpose of the present invention is to propose a scheduling method for multi-virtual machine migration. The input of the method is the clustering of virtual machines. The function of the method is to select a suitable host for each virtual machine cluster, and design a suitable migration sequence for all virtual machines that need to be migrated. The scheduling method minimizes the total number of migrations of multiple virtual machines and minimizes the total migration time under the same migration times, thereby reducing the total overhead of the system during the migration process and improving the service quality of the system.

根据本发明的一个方面,提供了一种多虚拟机迁移的调度方法,其特征在于包括:According to one aspect of the present invention, a scheduling method for multi-virtual machine migration is provided, which is characterized by comprising:

步骤一.用户在主控节点机器上,输入多虚拟机的目标聚类。目标聚类的划分,由用户根据多虚拟机迁移的目标进行决定。同一聚类的虚拟机,最终将迁移到同一台目标宿主机上。Step 1. The user enters the target clustering of multiple virtual machines on the master control node machine. The division of target clusters is determined by the user according to the target of multi-virtual machine migration. Virtual machines in the same cluster will eventually be migrated to the same target host.

步骤二.主控节点通过向宿主机节点发出请求,通过宿主机节点反馈,获取到系统里全部宿主机节点的信息,以及宿主机上运行的全部虚拟机的信息。Step 2. The master control node obtains information of all host nodes in the system and information of all virtual machines running on the host through feedback from the host node by sending a request to the host node.

步骤三.根据步骤一和步骤二所取得的信息,主控节点调用“目标宿主机选择算法“,为虚拟机聚类选择合适的目标宿主机,形成虚拟机到目标宿主机的迁移映射。Step 3. Based on the information obtained in Step 1 and Step 2, the master control node invokes the "target host selection algorithm" to select a suitable target host for virtual machine clustering and form a migration map from the virtual machine to the target host.

步骤四.主控节点向宿主机节点发出请求,收集各宿主机节点的负载情况。Step 4. The master control node sends a request to the host node to collect the load status of each host node.

步骤五.主控节点,依据步骤三确定的迁移映射和步骤四收集到的宿主机负载信息,依据“迁移顺序决定算法“,为多虚拟机安排迁移顺序,并发出指令,控制各相关宿主机节点按照顺序执行迁移。Step 5. The master control node, according to the migration map determined in step 3 and the host load information collected in step 4, arranges the migration sequence for multiple virtual machines according to the "migration order determination algorithm", and issues instructions to control the relevant hosts Nodes perform migrations sequentially.

附图说明Description of drawings

图1是本发明的多虚拟机迁移调度方法的系统总体框架图。FIG. 1 is a system overall framework diagram of the multi-virtual machine migration scheduling method of the present invention.

图2是本发明的多虚拟机迁移调度方法的具体流程图。FIG. 2 is a specific flow chart of the multi-virtual machine migration scheduling method of the present invention.

图3是本发明的一种实施实例的具体流程图。Fig. 3 is a specific flowchart of an implementation example of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点表达得更加清楚明白,下面结合附图及具体实施例对本发明再作进一步详细的说明。In order to make the object, technical solution and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

本发明的主要思想是,在给定迁移目标的条件下,为系统内多虚拟机的迁移,选择合适的目标宿主机并安排合适的迁移顺序,优先降低系统总的迁移次数,其次降低总的迁移时间,以提高系统的整体服务质量。这在当前云计算时代,虚拟机被普遍采用的情况下,具有很广泛的应用价值。The main idea of the present invention is to select a suitable target host machine and arrange a suitable migration order for the migration of multiple virtual machines in the system under the condition of a given migration target. Migration time to improve the overall quality of service of the system. This has a very wide application value in the current cloud computing era, when virtual machines are widely used.

本发明的技术方案如下:Technical scheme of the present invention is as follows:

一种多虚拟机迁移的调度方法,其系统的总体的框架如图1所示。其中宿主机节点作为虚拟机运行的机器载体,通过虚拟机监控器运行了多个虚拟机,是多虚拟机迁移的主要场所。主控节点作为调度方法的运行载体,读取用户输入的虚拟机目标聚类信息,并获取各宿主机节点的信息(包括宿主机的配置信息和其上面所运行的虚拟机的信息等)。根据这些已知情况,调用目标宿主机选择算法,输出合适的多虚拟机的迁移策略,由控制模块按照该策略,发送虚拟机迁移指令给各宿主机节点,控制各节点机间的多虚拟机迁移。多虚拟机迁移的调度方法,主要体现在主控节点上,调度方法的具体流程如图2所示。该方法包含以下步骤:A scheduling method for multi-virtual machine migration, the overall framework of the system is shown in FIG. 1 . Among them, the host node is used as the machine carrier for the virtual machine to run, and multiple virtual machines are run through the virtual machine monitor, which is the main place for multi-virtual machine migration. As the running carrier of the scheduling method, the master control node reads the virtual machine target clustering information input by the user, and obtains the information of each host node (including the configuration information of the host machine and the information of the virtual machines running on it, etc.). According to these known conditions, the target host selection algorithm is invoked to output a suitable multi-virtual machine migration strategy, and the control module sends virtual machine migration instructions to each host node according to the strategy to control the multi-virtual machines among the nodes. migrate. The scheduling method for multi-virtual machine migration is mainly embodied on the main control node, and the specific flow of the scheduling method is shown in FIG. 2 . The method includes the following steps:

步骤201.用户在主控节点机器上,输入多虚拟机的目标聚类。目标聚类的划分,由用户根据多虚拟机迁移的目标进行决定。同一聚类的虚拟机,最终将迁移到同一台目标宿主机上。Step 201. The user inputs the target clustering of multiple virtual machines on the master control node machine. The division of target clusters is determined by the user according to the target of multi-virtual machine migration. Virtual machines in the same cluster will eventually be migrated to the same target host.

步骤202.主控节点通过向宿主机节点发出请求,通过主机节点反馈,获取到系统里全部宿主机节点的信息,以及宿主机上运行的全部虚拟机的信息。Step 202. The master control node obtains information of all host nodes in the system and information of all virtual machines running on the host through feedback from the host node by sending a request to the host node.

步骤203.根据步骤201和步骤202所取得的信息,主控节点调用“目标宿主机选择算法“,为虚拟机聚类选择合适的目标宿主机,形成虚拟机到目标宿主机的迁移映射。Step 203. According to the information obtained in steps 201 and 202, the master control node invokes the "target host selection algorithm" to select a suitable target host for virtual machine clustering and form a migration map from the virtual machine to the target host.

步骤204.主控节点向宿主机节点发出请求,收集各宿主机节点的负载情况。Step 204. The master control node sends a request to the host node to collect the load status of each host node.

步骤205.主控节点,依据步骤203确定的迁移映射和步骤204收集到的宿主机负载信息,依据“迁移顺序决定算法“,为多虚拟机安排迁移顺序,并发出指令,控制各相关宿主机节点按照顺序执行迁移。Step 205. The master control node, according to the migration map determined in step 203 and the host load information collected in step 204, arranges the migration sequence for multiple virtual machines according to the "migration sequence determination algorithm", and issues instructions to control the relevant hosts Nodes perform migrations sequentially.

其中,步骤201中输入的虚拟机的目标聚类,由用户提供。用户根据虚拟机迁移的目标,设定虚拟机的聚类,同一聚类的虚拟机,最终将被迁移到同一台宿主机。这种方式,保证了本发明的调度方法的广泛适用性。用户可以根据不同的应用场景,来划分虚拟机的聚类,比如根据虚拟机间的内存相似性,根据虚拟机的资源使用特性,根据负载均衡的要求,等。Wherein, the target clustering of virtual machines input in step 201 is provided by the user. According to the target of virtual machine migration, the user sets the clustering of virtual machines, and the virtual machines in the same cluster will eventually be migrated to the same host machine. In this way, the wide applicability of the scheduling method of the present invention is guaranteed. Users can divide virtual machine clusters according to different application scenarios, for example, according to the memory similarity between virtual machines, according to the resource usage characteristics of virtual machines, according to the requirements of load balancing, and so on.

其中,步骤202中,主控节点向宿主机节点收集的信息,具体包括:宿主机的各种硬件配置信息,宿主机能承载的最大虚拟机数量,宿主机当前运行的全部虚拟机的系统版本、CPU配置、内存大小、虚拟机编号。在主控节点端,给每个虚拟机数据表项,填写以上信息,并将宿主机编号也记录在表项中,此时收集的宿主机编号,即是虚拟机的源宿主机编号。在主控节点中,同时会为每个宿主机维护一个记录。Wherein, in step 202, the information collected by the master control node from the host node specifically includes: various hardware configuration information of the host, the maximum number of virtual machines that the host can carry, system versions of all virtual machines currently running on the host, CPU configuration, memory size, and virtual machine number. On the master control node side, fill in the above information for each virtual machine data entry, and record the host number in the entry. The host number collected at this time is the source host number of the virtual machine. In the master node, a record is also maintained for each host.

其中,步骤203中,“目标宿主机选择算法“,为虚拟机目标聚类选择合适的目标宿主机,形成虚拟机到目标宿主机的迁移映射,此过程分为2步走。首先,采用遍历方式,从虚拟机聚类到宿主机的映射解空间中,选择使系统总的迁移次数最少的映射的集合(因为可能存在多个虚拟机聚类到宿主机的映射方式,具有相同的迁移总次数)。其次,在这些总迁移次数最少的映射集合中,选择迁移总流量最小的映射。这是因为,即使是相同的迁移次数,由于迁移的虚拟机不同,流量也会不同。本步骤形成的虚拟机聚类到宿主机的映射,直接决定了每个聚类中的虚拟机应该迁移到的目标宿主机,也就是决定了全部虚拟机的迁移路径,不过并没有决定多虚拟机迁移的先后顺序。Among them, in step 203, the "target host selection algorithm" selects a suitable target host for the virtual machine target clustering, and forms a migration map from the virtual machine to the target host. This process is divided into two steps. First, use the traversal method to select the set of mappings that minimize the total number of migrations of the system from the mapping solution space of virtual machine clusters to host machines (because there may be multiple virtual machine clustering to host mapping methods, with total number of migrations of the same). Second, in the set of mappings with the least total migration times, select the mapping with the smallest total migration flow. This is because, even for the same number of migrations, the traffic will be different due to the different virtual machines being migrated. The mapping between virtual machine clusters and host machines formed in this step directly determines the target host machine to which the virtual machines in each cluster should be migrated, that is, determines the migration path of all virtual machines, but does not determine the multi-virtual machine The sequence of machine migration.

其中,步骤204中,收集宿主机的负载情况,由主控节点完成。主控节点向各宿主机节点发出请求,各宿主机节点反馈各自的cpu、内存、虚拟机数量等使用数据后,被主控节点记录在相应的表项中。Wherein, in step 204, the load condition of the host computer is collected, which is completed by the master control node. The master control node sends a request to each host node, and each host node feeds back its usage data such as cpu, memory, and number of virtual machines, and is recorded in the corresponding table entry by the master control node.

其中,步骤205中,根据步骤204收集到的负载信息,对步骤203计算出的迁移映射进行进一步处理。依据一定的原则,安排多虚拟机迁移的先后顺序,并据此发出指令,控制各宿主机节点按照顺序执行迁移。依据的原则,可以多样,比如依据最小负载宿主机优先迁入,或者最大负载宿主机优先迁出等。同时,还可以兼顾到网络和并行处理的要求。Wherein, in step 205, the migration map calculated in step 203 is further processed according to the load information collected in step 204. According to certain principles, arrange the sequence of multi-virtual machine migration, and issue instructions accordingly to control each host node to perform migration in order. The basis can be varied, such as moving in first based on the least-loaded hosts, or moving out first based on the highest-loaded hosts. At the same time, the requirements of network and parallel processing can also be taken into account.

3、优点及功效3. Advantages and effects

本发明是一种多虚拟机迁移调度的方法,它与现有技术相比,具有以下主要的优点和功效:(1)从系统宏观的角度,控制了多虚拟机迁移的总次数和总时间,使迁移的效率更高,填补了相关领域的空白。(2)由于本发明的算法思想具有一定的普适性,同时调度方法将虚拟机聚类作为输入,与算法的计算过程剥离,不同的迁移目的,只需要修改输入的虚拟机聚类即可,使本方法的调度方法具有比较广泛的适用性。比如可以用于基于内存相似性的虚拟机迁移,也可以用于基于负载均衡的虚拟机迁移,算法的思想甚至还可以用于路径选择等超越了虚拟机迁移的领域。The present invention is a method for multi-virtual machine migration scheduling. Compared with the prior art, it has the following main advantages and effects: (1) From the perspective of the macro system, the total number and total time of multi-virtual machine migration are controlled , making migration more efficient and filling the gaps in related fields. (2) Since the algorithm idea of the present invention has a certain degree of universality, and at the same time, the scheduling method uses virtual machine clustering as input, which is separated from the calculation process of the algorithm. For different migration purposes, only the input virtual machine clustering needs to be modified. , so that the scheduling method of this method has wider applicability. For example, it can be used for virtual machine migration based on memory similarity, or virtual machine migration based on load balancing. The idea of the algorithm can even be used in path selection and other fields beyond virtual machine migration.

本发明所需要的硬件设备如图1所示,要求宿主机能支持虚拟化技术,并要求宿主机之间是通过网络互连的,能直接通信,不需要经过中间节点。虚拟机监控器无要求,目前流行的主流产品均可,差别只在于修改个别函数接口。为简化迁移过程,最好要求宿主机及其虚拟机监控器都是同构的。当然异构的也可以,差别在于迁移过程会稍复杂,这并不涉及到本发明的核心部分。The hardware equipment required by the present invention is shown in Fig. 1, and the host machine is required to support the virtualization technology, and the host machines are required to be interconnected through the network, so that they can communicate directly without going through an intermediate node. There is no requirement for a virtual machine monitor, and current popular mainstream products are acceptable, the difference is only in modifying individual function interfaces. To simplify the migration process, it is best to require the host and its hypervisor to be isomorphic. Of course, heterogeneous is also possible, the difference is that the migration process will be slightly complicated, which does not involve the core part of the present invention.

下面以一实例进行详细说明。A detailed description will be given below with an example.

本实例所用到本发明的调度方法,具体步骤分为5步,如图3所示。The scheduling method of the present invention is used in this example, and the specific steps are divided into five steps, as shown in FIG. 3 .

步骤301.用户在主控节点机器上,输入多虚拟机的目标聚类。目标聚类的划分,由用户根据多虚拟机迁移的目标进行决定。同一聚类的虚拟机,最终将迁移到同一台目标宿主机上。本实例中依据内存相似性,将内存相似性较大的虚拟机划分为一个聚类,以将它们迁移到同一个宿主机上,便于宿主机内存共享。Step 301. The user inputs the target clustering of multiple virtual machines on the master control node machine. The division of target clusters is determined by the user according to the target of multi-virtual machine migration. Virtual machines in the same cluster will eventually be migrated to the same target host. In this example, according to the memory similarity, the virtual machines with large memory similarity are divided into a cluster, so that they can be migrated to the same host machine, so as to facilitate the memory sharing of the host machine.

步骤302.主控节点通过向宿主机节点发出请求,通过宿主机节点反馈,获取到系统里全部宿主机节点的信息,以及宿主机上运行的全部虚拟机的信息,记录在主控节点中。Step 302. The master control node obtains information of all host nodes in the system and information of all virtual machines running on the host through feedback from the host node by sending a request to the host node, and records them in the master control node.

步骤303.根据步骤301和步骤302所取得的信息,主控节点调用“目标宿主机选择算法“,为虚拟机聚类选择合适的目标宿主机,形成虚拟机到目标宿主机的迁移映射。“目标宿主机选择算法“,为虚拟机聚类选择合适的目标宿主机,形成虚拟机到目标宿主机的迁移映射。“目标宿主机选择算法“的思想是:在虚拟机聚类到目标宿主机的所有映射中(称之为”迁移映射“),利用堆栈,采用遍历的方式,选择总的迁移次数最少的映射,形成一个集合,然后从这个集合中,选择一个使总的迁移时间最下的映射,即作为最终的目标宿主机选择策略。虚拟机聚类到目标宿主机的一种映射,其思路是:优先将虚拟机聚类映射到本聚类虚拟机的源宿主机上(对于一种映射f,选择其中一台宿主机即可),如果对应宿主机已经被之前的聚类全部占用,则在剩下还未被映射到的宿主机中挑选x台(x可以设置),然后一一尝试。对于最后一个处理的聚类,可以将剩余的空闲宿主机全部尝试映射一次。x的值可设置,增加了算法的灵活性。x值越大,映射集合F越大,最终的解最优的可能性越大,同时算法的遍历次数越多,复杂度更大。Step 303. Based on the information obtained in steps 301 and 302, the master control node invokes the "target host selection algorithm" to select a suitable target host for virtual machine clustering and form a migration map from the virtual machine to the target host. "Target host selection algorithm" selects a suitable target host for virtual machine clustering and forms a migration map from a virtual machine to a target host. The idea of the "target host selection algorithm" is: among all the mappings from virtual machines clustered to the target host (called "migration mapping"), use the stack and use traversal to select the mapping with the least number of migrations , forming a set, and then from this set, select a mapping that minimizes the total migration time, that is, as the final target host selection strategy. A mapping of virtual machine clusters to target hosts, the idea is to map virtual machine clusters to the source hosts of the clustered virtual machines first (for a mapping f, select one of the hosts ), if the corresponding host machine has been fully occupied by the previous clustering, select x units from the remaining host machines that have not been mapped to (x can be set), and then try one by one. For the last processed cluster, all the remaining idle hosts can be tried to map once. The value of x can be set, which increases the flexibility of the algorithm. The larger the value of x, the larger the mapping set F, the greater the possibility of the optimal solution, and the more traversal times of the algorithm, the greater the complexity.

步骤304.主控节点向宿主机节点发出请求,收集各宿主机节点的当前负载情况。Step 304. The master control node sends a request to the host node to collect the current load conditions of each host node.

步骤305.主控节点,依据步骤303确定的迁移映射和步骤304收集到的宿主机负载信息,依据“迁移顺序决定算法“,为多虚拟机安排迁移顺序,并发出指令,控制各相关宿主机节点按照顺序执行迁移。本实例中步骤305,首先根据步骤303选择的迁移映射生成所有虚拟机的迁移路径,每个迁移路径表示为一个<虚拟机编号,源宿主机号,目标宿主机号>的三元组,然后依据最小负载宿主机优先迁入的原则,进行排序。迁移路径的排序方法是,按照当前负载由小到大的顺序,以“目标宿主机”为关键字对三元组排序。最后,依据排序后的结果,执行三元组所代表的排序任务。为保证系统的实时性,可以设置在每台宿主机都迁入过一次后,更新一次当前负载情况,依据更新后的宿主机负载,再次排序,然后继续执行剩下的迁移。Step 305. The master control node, according to the migration map determined in step 303 and the host machine load information collected in step 304, arranges the migration order for multiple virtual machines according to the "migration order determination algorithm", and issues instructions to control the relevant host machines Nodes perform migrations sequentially. In step 305 of this example, first generate the migration paths of all virtual machines according to the migration mapping selected in step 303, and each migration path is expressed as a triplet of <virtual machine number, source host machine number, target host machine number>, and then Sorting is performed based on the principle that hosts with the least load are migrated in first. The sorting method of the migration path is to sort the triplets according to the order of the current load from small to large, using "target host" as the key. Finally, according to the sorted result, perform the sorting task represented by the triplet. In order to ensure the real-time performance of the system, it can be set that after each host has been migrated in once, the current load status will be updated once, and then sorted again according to the updated host load, and then continue to perform the rest of the migration.

最后所应说明的是:以上实施例仅用以说明而非限制本发明的技术方案,尽管参照上述实施例对本发明进行了详细说明,本领域的普通技术人员应当理解:依然可以对本发明进行修改或者等同替换,而不脱离本发明的精神和范围的任何修改或局部替换,其均应涵盖在本发明的权利要求范围当中。Finally, it should be noted that the above embodiments are only used to illustrate and not limit the technical solutions of the present invention, although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: the present invention can still be modified Or an equivalent replacement, any modification or partial replacement without departing from the spirit and scope of the present invention shall fall within the scope of the claims of the present invention.

Claims (6)

1. the dispatching method of multi-dummy machine migration is characterized in that comprising:
Step 1. the user inputs the target cluster of multi-dummy machine on master control node machine.The division of target cluster is determined according to the target of multi-dummy machine migration by the user.The virtual machine of same cluster is moved on same the target host the most at last.
Step 2. main controlled node by host node feedback, gets access to the information of whole host nodes in the system by sending request to the host node, and the information of the whole virtual machines that move on the host.
Step 3. according to step 1 and the obtained information of step 2, main controlled node call " target host selection algorithm ", be the suitable target host of virtual machine Clustering and selection, form virtual machine to the migration mapping of target host.
Step 4. main controlled node sends request to the host node, collects the loading condition of each host node.
Step 5. main controlled node, the host load information that the migration mapping of determining according to step 3 and step 4 are collected, according to " migration sequentially determine algorithm ", be multi-dummy machine arrangement migration order, and send instruction, control each relevant host node and carry out in order migration.
2. the dispatching method of a kind of multi-dummy machine migration according to claim 1, it is characterized in that: " user is on master control node machine; the target cluster of input multi-dummy machine " described in the step 1 refers to: the target cluster of the virtual machine of input is provided by the user.The user sets the cluster of virtual machine according to the target of virtual machine (vm) migration, and the virtual machine of same cluster is migrated to same host the most at last.This mode has guaranteed the broad applicability of dispatching method of the present invention.The user can come the cluster of partition virtual machines according to different application scenarioss, such as according to the internal memory similarity between virtual machine, and according to the resource operating characteristic of virtual machine, according to the requirement of load balancing, etc.
3. the dispatching method of a kind of multi-dummy machine migration according to claim 1, it is characterized in that: described in the step 2 " main controlled node is by sending request to the host node; feed back by the host node; get access to the information of whole host nodes in the system; and the information of the whole virtual machines that move on the host " refers to: the information that main controlled node is collected to the host node, specifically comprise: the various hardware configuration informations of host, the maximum virtual machine quantity of host's function carrying, the system version of whole virtual machines of the current operation of host, the CPU configuration, memory size, the virtual machine numbering.At the main controlled node end, give each virtual-machine data list item, to fill in above information, and the host numbering also is recorded in the list item, the host numbering of collecting this moment namely is the sourcesink main frame numbering of virtual machine.In main controlled node, can safeguard a record for each host simultaneously.
4. the dispatching method of a kind of multi-dummy machine migration according to claim 1, it is characterized in that: described in the step 3 " according to step 1 and the obtained information of step 2; main controlled node calls ' target host selection algorithm '; be the suitable target host of virtual machine Clustering and selection; form virtual machine to the migration of target host shine upon " refer to: " target host selection algorithm ", be the suitable target host of virtual machine target Clustering and selection, form virtual machine to the migration mapping of target host, this process is divided into 2 and goes on foot.At first, adopt the traversal mode, the mapping solution space from the virtual machine cluster to host, selection makes the set (because may exist a plurality of virtual machine clusters to the mapping mode of host, having identical migration total degree) of the mapping of the total migration least number of times of system.Secondly, in the mapping set of these gross migration least number of times, select the mapping of migration total flow minimum.This is because even identical migration number of times, because the virtual machine of migration is different, flow also can be different.The virtual machine cluster that this step forms has directly determined the target host that the virtual machine in each cluster should be moved to the mapping of host, has namely determined the migration path of whole virtual machines, but does not determine the sequencing of multi-dummy machine migration.
5. the dispatching method of a kind of multi-dummy machine migration according to claim 1, it is characterized in that: described in the step 4 " main controlled node sends request to the host node; the loading condition of collecting each host node " refers to: collect the loading condition of host, finished by main controlled node.Main controlled node sends request to each host node, behind the usage datas such as separately cpu of each host node feedback, internal memory, virtual machine quantity, is recorded in the corresponding list item by main controlled node.
6. the dispatching method of a kind of multi-dummy machine migration according to claim 1, it is characterized in that: " the main controlled node; the host load information that the migration mapping of determining according to step 3 and step 4 are collected; with " migration determines that sequentially algorithm "; be multi-dummy machine arrangement migration order; and send instruction; control each relevant host node and carry out in order migration " refers to: the load information of collecting according to step 4, the further processing of migration mapping that step 3 is calculated described in the step 5.According to certain principle, arrange the order of multi-dummy machine migration, and send accordingly instruction, control each host node and carry out in order migration.The principle of foundation can be various, preferentially moves into such as foundation minimum load host, and perhaps the maximum load host is preferentially moved out etc.Simultaneously, can also take into account the requirement of network and parallel processing.
CN2012104882100A 2012-11-26 2012-11-26 Method for migration scheduling of multiple virtual machines Pending CN102968344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104882100A CN102968344A (en) 2012-11-26 2012-11-26 Method for migration scheduling of multiple virtual machines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104882100A CN102968344A (en) 2012-11-26 2012-11-26 Method for migration scheduling of multiple virtual machines

Publications (1)

Publication Number Publication Date
CN102968344A true CN102968344A (en) 2013-03-13

Family

ID=47798498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104882100A Pending CN102968344A (en) 2012-11-26 2012-11-26 Method for migration scheduling of multiple virtual machines

Country Status (1)

Country Link
CN (1) CN102968344A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218210A (en) * 2013-04-28 2013-07-24 北京航空航天大学 File level partitioning system suitable for big data high concurrence access
CN103729252A (en) * 2013-12-20 2014-04-16 杭州华为数字技术有限公司 Virtual machine scheduling method and scheduling monitor
CN104115121A (en) * 2012-03-26 2014-10-22 甲骨文国际公司 System and method for providing a scalable signaling mechanism for virtual machine migration in a middleware machine environment
CN105528234A (en) * 2014-10-24 2016-04-27 中兴通讯股份有限公司 Virtual machine migration processing method and device
CN105610715A (en) * 2016-03-14 2016-05-25 山东大学 Cloud data center multi-virtual machine migration scheduling method based on SDN (Software Defined Network)
CN106708627A (en) * 2016-12-29 2017-05-24 中国科学院计算技术研究所 Multi-virtual-machine mapping and multipath fuse acceleration method and system based on kvm
CN106897137A (en) * 2017-04-19 2017-06-27 南京大学 A kind of physical machine based on live migration of virtual machine and virtual machine mapping conversion method
US9893977B2 (en) 2012-03-26 2018-02-13 Oracle International Corporation System and method for supporting live migration of virtual machines in a virtualization environment
CN108021441A (en) * 2016-11-03 2018-05-11 中国移动通信集团广东有限公司 A kind of resources of virtual machine collocation method and device based on cloud computing
CN108073443A (en) * 2017-12-08 2018-05-25 中南大学 Virtual machine selection based on the shared drive page and laying method in a kind of cloud data center
US9990221B2 (en) 2013-03-15 2018-06-05 Oracle International Corporation System and method for providing an infiniband SR-IOV vSwitch architecture for a high performance cloud computing environment
US10051054B2 (en) 2013-03-15 2018-08-14 Oracle International Corporation System and method for efficient virtualization in lossless interconnection networks
CN108886496A (en) * 2016-04-04 2018-11-23 华为技术有限公司 Multipath Virtual Switching
CN109213566A (en) * 2017-06-29 2019-01-15 华为技术有限公司 Virtual machine migration method, device and equipment
CN109783199A (en) * 2019-03-28 2019-05-21 浪潮商用机器有限公司 A kind of virtual machine migration method and device
CN110489229A (en) * 2019-07-17 2019-11-22 长沙学院 A kind of multiple target method for scheduling task and system
CN112181604A (en) * 2020-10-27 2021-01-05 中国联合网络通信集团有限公司 Capacity reduction target selection method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887380A (en) * 2009-05-11 2010-11-17 埃森哲环球服务有限公司 The distribution of the application that optimization is carried out in multiple platform system
CN102236582A (en) * 2011-07-15 2011-11-09 浙江大学 Method for balanced distribution of virtualization cluster load in a plurality of physical machines
CN102571986A (en) * 2012-02-27 2012-07-11 浙江大学 Load balancing method based on vector mapping

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887380A (en) * 2009-05-11 2010-11-17 埃森哲环球服务有限公司 The distribution of the application that optimization is carried out in multiple platform system
CN102236582A (en) * 2011-07-15 2011-11-09 浙江大学 Method for balanced distribution of virtualization cluster load in a plurality of physical machines
CN102571986A (en) * 2012-02-27 2012-07-11 浙江大学 Load balancing method based on vector mapping

Cited By (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9893977B2 (en) 2012-03-26 2018-02-13 Oracle International Corporation System and method for supporting live migration of virtual machines in a virtualization environment
CN104115121B (en) * 2012-03-26 2018-04-03 甲骨文国际公司 The system and method that expansible signaling mechanism is provided virtual machine (vm) migration in middleware machine environment
CN104115121A (en) * 2012-03-26 2014-10-22 甲骨文国际公司 System and method for providing a scalable signaling mechanism for virtual machine migration in a middleware machine environment
US10051054B2 (en) 2013-03-15 2018-08-14 Oracle International Corporation System and method for efficient virtualization in lossless interconnection networks
US10230794B2 (en) 2013-03-15 2019-03-12 Oracle International Corporation System and method for efficient virtualization in lossless interconnection networks
US9990221B2 (en) 2013-03-15 2018-06-05 Oracle International Corporation System and method for providing an infiniband SR-IOV vSwitch architecture for a high performance cloud computing environment
CN103218210A (en) * 2013-04-28 2013-07-24 北京航空航天大学 File level partitioning system suitable for big data high concurrence access
CN103218210B (en) * 2013-04-28 2015-08-26 北京航空航天大学 Be suitable for the file-level itemize system of large data height Concurrency Access
CN103729252B (en) * 2013-12-20 2017-09-05 杭州华为数字技术有限公司 The method and dispatching and monitoring device of a kind of scheduling virtual machine
CN103729252A (en) * 2013-12-20 2014-04-16 杭州华为数字技术有限公司 Virtual machine scheduling method and scheduling monitor
CN105528234A (en) * 2014-10-24 2016-04-27 中兴通讯股份有限公司 Virtual machine migration processing method and device
WO2016062117A1 (en) * 2014-10-24 2016-04-28 中兴通讯股份有限公司 Virtual machine migration processing method and apparatus
US11132216B2 (en) 2015-03-06 2021-09-28 Oracle International Corporation System and method for providing an InfiniBand SR-IOV vSwitch architecture for a high performance cloud computing environment
US11740922B2 (en) 2015-03-06 2023-08-29 Oracle International Corporation System and method for providing an InfiniBand SR-IOV vSwitch architecture for a high performance cloud computing environment
US10742734B2 (en) 2015-11-24 2020-08-11 Oracle International Corporation System and method for efficient virtualization in lossless interconnection networks
US11930075B2 (en) 2015-11-24 2024-03-12 Oracle International Corporation System and method for efficient virtualization in lossless interconnection networks
CN105610715B (en) * 2016-03-14 2018-10-23 山东大学 A kind of cloud data center multi-dummy machine migration scheduling method of planning based on SDN
CN105610715A (en) * 2016-03-14 2016-05-25 山东大学 Cloud data center multi-virtual machine migration scheduling method based on SDN (Software Defined Network)
CN108886496A (en) * 2016-04-04 2018-11-23 华为技术有限公司 Multipath Virtual Switching
US10523598B2 (en) 2016-04-04 2019-12-31 Futurewei Technologies, Inc. Multi-path virtual switching
CN108021441A (en) * 2016-11-03 2018-05-11 中国移动通信集团广东有限公司 A kind of resources of virtual machine collocation method and device based on cloud computing
CN106708627B (en) * 2016-12-29 2020-08-07 中国科学院计算技术研究所 A KVM-based multi-virtual machine mapping, multi-channel fuse acceleration method and system
CN106708627A (en) * 2016-12-29 2017-05-24 中国科学院计算技术研究所 Multi-virtual-machine mapping and multipath fuse acceleration method and system based on kvm
CN106897137A (en) * 2017-04-19 2017-06-27 南京大学 A kind of physical machine based on live migration of virtual machine and virtual machine mapping conversion method
CN106897137B (en) * 2017-04-19 2020-05-19 南京大学 A physical machine and virtual machine mapping conversion method based on virtual machine hot migration
CN109213566B (en) * 2017-06-29 2022-05-13 华为技术有限公司 Virtual machine migration method, device and equipment
CN109213566A (en) * 2017-06-29 2019-01-15 华为技术有限公司 Virtual machine migration method, device and equipment
CN108073443B (en) * 2017-12-08 2021-10-26 中南大学 Virtual machine selection and placement method based on shared memory page in cloud data center
CN108073443A (en) * 2017-12-08 2018-05-25 中南大学 Virtual machine selection based on the shared drive page and laying method in a kind of cloud data center
CN109783199A (en) * 2019-03-28 2019-05-21 浪潮商用机器有限公司 A kind of virtual machine migration method and device
CN110489229B (en) * 2019-07-17 2020-06-30 长沙学院 A multi-objective task scheduling method and system
CN110489229A (en) * 2019-07-17 2019-11-22 长沙学院 A kind of multiple target method for scheduling task and system
CN112181604A (en) * 2020-10-27 2021-01-05 中国联合网络通信集团有限公司 Capacity reduction target selection method and device
CN112181604B (en) * 2020-10-27 2023-06-13 中国联合网络通信集团有限公司 A shrinking target selection method and device

Similar Documents

Publication Publication Date Title
CN102968344A (en) Method for migration scheduling of multiple virtual machines
CN101986661B (en) Improved MapReduce data processing method under virtual machine cluster
CN114356543B (en) A multi-tenant machine learning task resource scheduling method based on Kubernetes
CN102521014B (en) Deploying method and deploying device for virtual machine
CN102662639A (en) Mapreduce-based multi-GPU (Graphic Processing Unit) cooperative computing method
CN103516807A (en) Cloud computing platform server load balancing system and method
CN111221624A (en) A container management method for regulating cloud platform based on Docker container technology
CN104503832B (en) A kind of scheduling virtual machine system and method for fair and efficiency balance
CN107346264A (en) A kind of method, apparatus and server apparatus of virtual machine load balance scheduling
CN105786619B (en) Virtual machine allocation method and device
CN104679594B (en) A kind of middleware distributed computing method
US20210390405A1 (en) Microservice-based training systems in heterogeneous graphic processor unit (gpu) cluster and operating method thereof
CN104601664A (en) Cloud computing platform resource management and virtual machine dispatching control system
CN105607950A (en) Virtual machine resource configuration method and apparatus
CN110221920A (en) Dispositions method, device, storage medium and system
Li et al. Page-sharing-based virtual machine packing with multi-resource constraints to reduce network traffic in migration for clouds
Patni et al. Load balancing strategies for grid computing
Li et al. An energy-aware scheduling algorithm for big data applications in spark
Ma et al. vLocality: Revisiting data locality for MapReduce in virtualized clouds
CN106371893A (en) Cloud computing scheduling system and method
Ma et al. Dependency-aware data locality for MapReduce
Wang et al. Dependency-aware network adaptive scheduling of data-intensive parallel jobs
CN104866375B (en) A kind of method and device for migrating virtual machine
CN107528871A (en) Data analysis in storage system
CN105930202B (en) A three-threshold virtual machine migration method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130313