[go: up one dir, main page]

CN107301088A - A kind of method and apparatus for managing virtual machine batch migration - Google Patents

A kind of method and apparatus for managing virtual machine batch migration Download PDF

Info

Publication number
CN107301088A
CN107301088A CN201710576050.8A CN201710576050A CN107301088A CN 107301088 A CN107301088 A CN 107301088A CN 201710576050 A CN201710576050 A CN 201710576050A CN 107301088 A CN107301088 A CN 107301088A
Authority
CN
China
Prior art keywords
virtual machine
migration
resource configuration
configuration information
task
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
CN201710576050.8A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710576050.8A priority Critical patent/CN107301088A/en
Publication of CN107301088A publication Critical patent/CN107301088A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种管理虚拟机批量迁移的方法和装置。所述方法包括:接收虚拟机批量迁移任务包,其中所述任务包包括至少两个虚拟机的迁移任务;获取所述任务包中虚拟机的资源配置信息和虚拟机处理的业务信息;根据所述虚拟机的资源配置信息和虚拟机处理的业务信息,计算所述虚拟机迁移的处理优先度;对所述处理优先度进行排序;根据排序后的处理优先度,依次处理虚拟机迁移任务。

The invention discloses a method and a device for managing batch migration of virtual machines. The method includes: receiving a batch migration task package of virtual machines, wherein the task package includes migration tasks of at least two virtual machines; acquiring resource configuration information of the virtual machines in the task package and business information processed by the virtual machines; The resource configuration information of the virtual machine and the service information processed by the virtual machine are used to calculate the processing priority of the virtual machine migration; the processing priority is sorted; and the virtual machine migration tasks are processed sequentially according to the sorted processing priority.

Description

一种管理虚拟机批量迁移的方法和装置Method and device for managing batch migration of virtual machines

技术领域technical field

本发明涉及云计算技术,尤指一种管理虚拟机批量迁移的方法和装置。The invention relates to cloud computing technology, in particular to a method and device for managing batch migration of virtual machines.

背景技术Background technique

在云计算时代,虚拟机作为数据中心资源或服务的最终载体,其稳定性一直是数据中心运维或管理人员最为关注的问题。虚拟机的高效迁移是衡量数据中心稳定性和服务可持续性的重要指标之一。In the era of cloud computing, as the ultimate carrier of data center resources or services, the stability of virtual machines has always been the most concerned issue for data center operation and maintenance or management personnel. Efficient migration of virtual machines is one of the important indicators to measure data center stability and service sustainability.

如何高效的实现虚拟机的高效、批量迁移,保障其上运行业务的稳定,也是衡量云计算操作系统功能的重要指标。目前业界的虚拟机批量迁移方法大多数只关注于被迁移虚拟机与迁移目的主机之间的资源满足度,从而不能满足与业务之间的适配,造成迁移操作盲目、低效的问题。因此,如何高效准确地进行虚拟机批量迁移进行管理是亟待解决的问题。How to efficiently realize the efficient and batch migration of virtual machines and ensure the stability of the business running on them is also an important indicator to measure the function of the cloud computing operating system. At present, most of the virtual machine batch migration methods in the industry only focus on the resource satisfaction between the migrated virtual machine and the migration destination host, which cannot satisfy the adaptation with the business, resulting in blind and inefficient migration operations. Therefore, how to efficiently and accurately perform batch migration and management of virtual machines is an urgent problem to be solved.

发明内容Contents of the invention

为了解决上述技术问题,本发明提供了一种管理虚拟机批量迁移的方法和装置,能够高效准确地进行虚拟机批量迁移进行管理。In order to solve the above technical problems, the present invention provides a method and device for managing batch migration of virtual machines, which can efficiently and accurately manage batch migration of virtual machines.

为了达到本发明目的,本发明提供了一种管理虚拟机批量迁移的方法,包括:In order to achieve the purpose of the present invention, the present invention provides a method for managing batch migration of virtual machines, including:

接收虚拟机批量迁移任务包,其中所述任务包包括至少两个虚拟机的迁移任务;获取所述任务包中虚拟机的资源配置信息和虚拟机处理的业务信息;根据所述虚拟机的资源配置信息和虚拟机处理的业务信息,计算所述虚拟机迁移的处理优先度;对所述处理优先度进行排序;根据排序后的处理优先度,依次处理虚拟机迁移任务。Receiving a virtual machine batch migration task package, wherein the task package includes migration tasks of at least two virtual machines; acquiring resource configuration information of the virtual machines in the task package and business information processed by the virtual machines; The configuration information and the business information processed by the virtual machine are used to calculate the processing priority of the virtual machine migration; to sort the processing priority; and to process the virtual machine migration tasks sequentially according to the sorted processing priority.

其中,所述虚拟机的资源配置信息包括CPU、内存和存储的资源配置信息中至少一个。Wherein, the resource configuration information of the virtual machine includes at least one of CPU, memory and storage resource configuration information.

其中,所述虚拟机处理的业务信息包括述虚拟机处理的任务类型以及所述任务的重要度。Wherein, the service information processed by the virtual machine includes the type of task processed by the virtual machine and the importance of the task.

其中,根据所述虚拟机的资源配置信息和虚拟机处理的业务信息,计算所述虚拟机迁移的处理优先度,包括:Wherein, according to the resource configuration information of the virtual machine and the business information processed by the virtual machine, calculating the processing priority of the virtual machine migration includes:

对CPU、内存、存储和业务中的至少两个进行加权计算,得到所述虚拟机迁移的处理优先度。Perform weighted calculation on at least two of CPU, memory, storage and service to obtain the processing priority of the virtual machine migration.

其中,所述根据排序后的处理优先度,依次处理虚拟机迁移任务,包括:Wherein, the virtual machine migration tasks are processed sequentially according to the sorted processing priorities, including:

根据所述虚拟机的资源配置信息,为所述虚拟机选择提供所述资源配置信息的物理主机;将所述虚拟机迁移到所述物理主机。According to the resource configuration information of the virtual machine, a physical host that provides the resource configuration information is selected for the virtual machine; and the virtual machine is migrated to the physical host.

一种管理虚拟机批量迁移的装置,包括:A device for managing batch migration of virtual machines, comprising:

接收模块,用于接收虚拟机批量迁移任务包,其中所述任务包包括至少两个虚拟机的迁移任务;获取模块,用于获取所述任务包中虚拟机的资源配置信息和虚拟机处理的业务信息;计算模块,用于根据所述虚拟机的资源配置信息和虚拟机处理的业务信息,计算所述虚拟机迁移的处理优先度;排序模块,用于对所述处理优先度进行排序;A receiving module, configured to receive a batch migration task package of virtual machines, wherein the task package includes migration tasks of at least two virtual machines; an obtaining module, configured to obtain resource configuration information of the virtual machines in the task package and information processed by the virtual machines Business information; a calculation module, configured to calculate the processing priority of the virtual machine migration according to the resource configuration information of the virtual machine and the business information processed by the virtual machine; a sorting module, used to sort the processing priority;

处理模块,用于根据排序后的处理优先度,依次处理虚拟机迁移任务。The processing module is configured to sequentially process virtual machine migration tasks according to the sorted processing priorities.

其中,所述虚拟机的资源配置信息包括CPU、内存和存储的资源配置信息中至少一个。Wherein, the resource configuration information of the virtual machine includes at least one of CPU, memory and storage resource configuration information.

其中,所述虚拟机处理的业务信息包括述虚拟机处理的任务类型以及所述任务的重要度。Wherein, the service information processed by the virtual machine includes the type of task processed by the virtual machine and the importance of the task.

其中,所述计算模块,具体用于对CPU、内存、存储和业务中的至少两个进行加权计算,得到所述虚拟机迁移的处理优先度。Wherein, the calculation module is specifically configured to perform weighted calculation on at least two of CPU, memory, storage and service, to obtain the processing priority of the virtual machine migration.

其中,所述处理模块包括:Wherein, the processing module includes:

选择单元,用于根据所述虚拟机的资源配置信息,为所述虚拟机选择提供所述资源配置信息的物理主机;迁移单元,用于将所述虚拟机迁移到所述物理主机。The selection unit is configured to select, for the virtual machine, a physical host that provides the resource configuration information according to the resource configuration information of the virtual machine; the migration unit is configured to migrate the virtual machine to the physical host.

本发明提供的实施例,通过读取虚拟机的配置和其业务重要性信息对虚拟机迁移任务包中的虚拟机调度任务进行重新排序、下发并执行,在保障云数据中心资源和业务稳定性的前提下,实现虚拟机高效、批量的迁移,提高云计算操作系统的竞争力。In the embodiment provided by the present invention, by reading the configuration of the virtual machine and its business importance information, the virtual machine scheduling tasks in the virtual machine migration task package are reordered, issued and executed, ensuring the stability of cloud data center resources and services Under the premise of security, efficient and batch migration of virtual machines can be realized, and the competitiveness of the cloud computing operating system can be improved.

本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.

附图说明Description of drawings

附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present invention, and constitute a part of the description, and are used together with the embodiments of the application to explain the technical solution of the present invention, and do not constitute a limitation to the technical solution of the present invention.

图1为本发明提供的管理虚拟机批量迁移的方法的流程图;Fig. 1 is the flow chart of the method for managing virtual machine batch migration provided by the present invention;

图2为本发明提供的基于配置和业务重要性进行虚拟机批量迁移的方法流程图;Fig. 2 is the flow chart of the method for batch migration of virtual machines based on configuration and business importance provided by the present invention;

图3为本发明提供的管理虚拟机批量迁移的装置的结构图。FIG. 3 is a structural diagram of a device for managing batch migration of virtual machines provided by the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution 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. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps shown in the flowcharts of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

图1为本发明提供的管理虚拟机批量迁移的方法的流程图。图1所示方法包括:FIG. 1 is a flowchart of a method for managing batch migration of virtual machines provided by the present invention. The methods shown in Figure 1 include:

步骤101、接收虚拟机批量迁移任务包,其中所述任务包包括至少两个虚拟机的迁移任务;Step 101, receiving a virtual machine batch migration task package, wherein the task package includes migration tasks of at least two virtual machines;

步骤102、获取所述任务包中虚拟机的资源配置信息和虚拟机处理的业务信息;Step 102, acquiring resource configuration information of the virtual machine in the task package and business information processed by the virtual machine;

步骤103、根据所述虚拟机的资源配置信息和虚拟机处理的业务信息,计算所述虚拟机迁移的处理优先度;Step 103: Calculate the processing priority of the migration of the virtual machine according to the resource configuration information of the virtual machine and the business information processed by the virtual machine;

步骤104、对所述处理优先度进行排序;Step 104, sorting the processing priorities;

步骤105、根据排序后的处理优先度,依次处理虚拟机迁移任务。Step 105 , process the virtual machine migration tasks in sequence according to the sorted processing priorities.

本发明提供的方法实施例,通过读取虚拟机的配置和其业务重要性信息对虚拟机迁移任务包中的虚拟机调度任务进行重新排序、下发并执行,在保障云数据中心资源和业务稳定性的前提下,实现虚拟机高效、批量的迁移,提高云计算操作系统的竞争力。In the method embodiment provided by the present invention, by reading the configuration of the virtual machine and its business importance information, the virtual machine scheduling tasks in the virtual machine migration task package are reordered, issued and executed, and the resources and business of the cloud data center are guaranteed. Under the premise of stability, realize efficient and batch migration of virtual machines and improve the competitiveness of cloud computing operating systems.

下面对本发明提供的方法实施例作进一步说明:The method embodiment provided by the present invention is described further below:

虚拟机在执行任务时,需要一定的硬件条件来支持虚拟机完成任务处理,而在虚拟机迁移时,虚拟机的硬件资源是必须要考虑的,因此,需要维护每个虚拟机的资源配置信息,包括但不限于硬件资源信息,例如CPU、内存和存储的资源配置信息中至少一个。When a virtual machine performs a task, it needs certain hardware conditions to support the virtual machine to complete the task processing. When the virtual machine is migrated, the hardware resources of the virtual machine must be considered. Therefore, it is necessary to maintain the resource configuration information of each virtual machine , including but not limited to hardware resource information, such as at least one of CPU, memory and storage resource configuration information.

同时,在虚拟机发生迁移时,有些业务还要继续进行处理,因此,为保证重要业务的及时处理,需要保证正在处理重要业务的虚拟机尽快完成迁移。因此,以虚拟机的标识为识别标识,记录每个虚拟机处理的任务,以及处理任务的重要性,以实时获知虚拟机处理的业务信息。At the same time, when the virtual machine is migrated, some services will continue to be processed. Therefore, in order to ensure timely processing of important services, it is necessary to ensure that the virtual machine that is processing important services completes the migration as soon as possible. Therefore, using the identifier of the virtual machine as an identification mark, the tasks processed by each virtual machine and the importance of the processing tasks are recorded, so as to know the service information processed by the virtual machine in real time.

不同的业务在云系统中的重要性时不同的,如实时计算、大数据服务、WEB信息查询等,其重要性依次降低。当然,也可以根据实际需要对业务进行划分,并为该任务设置对应的重要度。Different businesses have different importance in the cloud system, such as real-time computing, big data services, WEB information query, etc., and their importance decreases in turn. Of course, the business can also be divided according to actual needs, and the corresponding importance can be set for the task.

例如,在实际应用中,数据中心管理员维护数据中心内的虚拟机与其上所运行的业务重要性程度的关系表,包含3个元素:虚拟机名-运行的业务信息-重要度,具体为:For example, in practical applications, the data center administrator maintains a relationship table of the importance of virtual machines in the data center and the business running on them, which contains three elements: virtual machine name-running business information-importance, specifically :

[{‘vm1’,‘实时计算’,5},[{'vm1','real-time computing',5},

{‘vm2’,‘大数据服务’,4}{'vm2','big data service',4}

……]。...].

由上可以看出,所述虚拟机处理的业务信息包括述虚拟机处理的任务类型以及所述任务的重要度。It can be seen from the above that the service information processed by the virtual machine includes the type of task processed by the virtual machine and the importance of the task.

因此,根据所述虚拟机的资源配置信息和虚拟机处理的业务信息,计算所述虚拟机迁移的处理优先度,包括:Therefore, according to the resource configuration information of the virtual machine and the service information processed by the virtual machine, calculating the processing priority of the virtual machine migration includes:

对CPU、内存、存储和业务中的至少两个进行加权计算,得到所述虚拟机迁移的处理优先度。Perform weighted calculation on at least two of CPU, memory, storage and service to obtain the processing priority of the virtual machine migration.

举例来说,根据任务优先度加权计算公式可以为D=cpu*20%+内存*20%+存储*20%+业务*40%。For example, the weighted calculation formula according to task priority may be D=cpu*20%+memory*20%+storage*20%+business*40%.

其中,加权公式计算出的任务执行优先度就越大,在满足数据中心资源有限和优先保障重要性业务稳定的条件下,必然需要优先迁移该种类型的-任务优先度大的虚拟机。Among them, the higher the task execution priority calculated by the weighting formula is, the higher the task priority is, the higher the priority must be to migrate this type of virtual machine under the condition that the data center resources are limited and the priority is to ensure the stability of the important business.

其中上述的权值可以根据实际情况进行动态调整,当性能瓶颈为CPU时,可以调高CPU的权值,相反,可以调低CPU的权值。The above-mentioned weights can be dynamically adjusted according to the actual situation. When the performance bottleneck is the CPU, the weight of the CPU can be increased, and on the contrary, the weight of the CPU can be lowered.

根据排序后的处理优先度,依次处理虚拟机迁移任务,包括:According to the sorted processing priority, virtual machine migration tasks are processed sequentially, including:

根据所述虚拟机的资源配置信息,为所述虚拟机选择提供所述资源配置信息的物理主机;Selecting a physical host that provides the resource configuration information for the virtual machine according to the resource configuration information of the virtual machine;

将所述虚拟机迁移到所述物理主机。Migrating the virtual machine to the physical host.

图2为本发明提供的基于配置和业务重要性进行虚拟机批量迁移的方法流程图。图2所示所示方法实施过程如下:FIG. 2 is a flowchart of a method for batch migration of virtual machines based on configuration and business importance provided by the present invention. The implementation process of the method shown in Figure 2 is as follows:

任务接收模块:从云计算操作系统的操作页面接收虚拟机批量迁移任务包;Task receiving module: receive virtual machine batch migration task packages from the operation page of the cloud computing operating system;

任务分析模块:依次读取迁移任务包中的虚拟机信息,包含虚拟机配置信息(如CPU、内存memory、存储storage)和虚拟机关联的业务(job)信息,然后根据任务优先度加权计算公式D=cpu*20%+memory*20%+storage*20%+job*40%计算任务优先度,并根据任务优先度由大到小的顺序重新构迁移任务包Task analysis module: sequentially read the virtual machine information in the migration task package, including the virtual machine configuration information (such as CPU, memory, storage) and the business (job) information associated with the virtual machine, and then calculate the weighted formula according to the task priority D=cpu*20%+memory*20%+storage*20%+job*40% Calculate task priority, and reconstruct the migration task package according to the order of task priority from large to small

其中,虚拟机业务信息维护模块负载维护虚拟机关联业务重要性信息表,具体来讲,不同的业务其(相对)重要性不同,如实时计算、大数据服务、WEB信息查询等,其重要性依次降低。数据中心管理员维护数据中心内的虚拟机与其上所运行的业务重要性程度的关系表,包含3个元素:虚拟机名-运行的业务信息-重要度,具体为:Among them, the load of the virtual machine business information maintenance module maintains the virtual machine related business importance information table. Specifically, different businesses have different (relative) importances, such as real-time computing, big data services, and WEB information queries. Decrease in turn. The data center administrator maintains the relationship table between the virtual machines in the data center and the importance of the business running on them, which contains three elements: virtual machine name-running business information-importance, specifically:

[{‘vm1’,‘实时计算’,5},[{'vm1','real-time computing',5},

{‘vm2’,‘大数据服务’,4}{'vm2','big data service',4}

……];...];

其中,任务优先度越大,则最优先执行。对应现实中的处理思路:当虚拟机的配置越高、关联业务的重要性越高,则加权公式计算出的任务执行优先度就越大,在满足数据中心资源有限和优先保障重要性业务稳定的条件下,必然需要优先迁移该种类型的-任务优先度大的虚拟机。Among them, the higher the priority of the task, the highest priority is executed. Corresponding to the real-world processing idea: when the configuration of the virtual machine is higher and the importance of the associated business is higher, the task execution priority calculated by the weighting formula is higher, and the priority is to ensure the stability of the important business when the data center resources are limited. Under certain conditions, it is necessary to preferentially migrate this type of virtual machines with high task priority.

任务下发模块:获取重新排序后的任务执行包,并依据任务优先度依次下发虚拟机迁移任务至调度模块;Task distribution module: obtain the reordered task execution packages, and sequentially distribute virtual machine migration tasks to the scheduling module according to the task priority;

调度模块:根据每个具体的虚拟机迁移任务中的配置,在数据中心资源池中调度选定目的物理主机;Scheduling module: according to the configuration in each specific virtual machine migration task, schedule the selected destination physical host in the data center resource pool;

例如,目的物理主机的资源配置满足迁移所需的资源需求,如虚拟机的配置为CPU10G内存10G磁盘50G,则目的物理主机上可用的CPU/内存/磁盘必须得满足其配置要求。For example, the resource configuration of the destination physical host meets the resource requirements required for migration. For example, if the configuration of the virtual machine is CPU 10G memory 10G disk 50G, the CPU/memory/disk available on the destination physical host must meet its configuration requirements.

执行模块:对每一个虚拟机迁移任务,根据选定的目的主机信息,执行具体的迁移操作;Execution module: For each virtual machine migration task, perform specific migration operations according to the selected destination host information;

统计模块:记录虚拟机批量迁移操作的执行结果,并进行汇总分析,如执行成功与否、所耗时间、任务异常等信息展示;Statistical module: record the execution results of virtual machine batch migration operations, and perform summary analysis, such as information display such as execution success or failure, time spent, task exceptions, etc.;

日志模块:主要记录整个迁移操作中的用户操作、迁移执行、异常捕获等操作日志,用于分析、定位、解决迁移过程中出现的问题。Log module: It mainly records operation logs such as user operations, migration execution, and exception capture during the entire migration operation, and is used to analyze, locate, and solve problems that occur during the migration process.

本发明提供的方法实施例,通过虚拟机业务信息维护模块维护虚拟机的配置和其业务重要性信息,由任务分析模块对虚拟机迁移任务包中的虚拟机调度任务进行重新排序,再由任务下发模块下发,在保障云数据中心资源和业务稳定性的前提下,实现虚拟机高效、批量的迁移,提高云计算操作系统的竞争力。In the method embodiment provided by the present invention, the configuration of the virtual machine and its business importance information are maintained by the virtual machine business information maintenance module, the task analysis module reorders the virtual machine scheduling tasks in the virtual machine migration task package, and then the task The delivery module is delivered to realize efficient and batch migration of virtual machines and improve the competitiveness of cloud computing operating systems under the premise of ensuring cloud data center resources and business stability.

图3为本发明提供的管理虚拟机批量迁移的装置的结构图。图3所示装置包括:FIG. 3 is a structural diagram of a device for managing batch migration of virtual machines provided by the present invention. The device shown in Figure 3 includes:

接收模块301,用于接收虚拟机批量迁移任务包,其中所述任务包包括至少两个虚拟机的迁移任务;The receiving module 301 is configured to receive a virtual machine batch migration task package, wherein the task package includes migration tasks of at least two virtual machines;

获取模块302,用于获取所述任务包中虚拟机的资源配置信息和虚拟机处理的业务信息;An acquisition module 302, configured to acquire resource configuration information of the virtual machine in the task package and business information processed by the virtual machine;

计算模块303,用于根据所述虚拟机的资源配置信息和虚拟机处理的业务信息,计算所述虚拟机迁移的处理优先度;A calculation module 303, configured to calculate the processing priority of the virtual machine migration according to the resource configuration information of the virtual machine and the business information processed by the virtual machine;

排序模块304,用于对所述处理优先度进行排序;A sorting module 304, configured to sort the processing priorities;

处理模块305,用于根据排序后的处理优先度,依次处理虚拟机迁移任务。The processing module 305 is configured to sequentially process virtual machine migration tasks according to the sorted processing priorities.

其中,所述虚拟机的资源配置信息包括CPU、内存和存储的资源配置信息中至少一个。Wherein, the resource configuration information of the virtual machine includes at least one of CPU, memory and storage resource configuration information.

其中,所述虚拟机处理的业务信息包括述虚拟机处理的任务类型以及所述任务的重要度。Wherein, the service information processed by the virtual machine includes the type of task processed by the virtual machine and the importance of the task.

其中,所述计算模块303,具体用于对CPU、内存、存储和业务中的至少两个进行加权计算,得到所述虚拟机迁移的处理优先度。Wherein, the calculating module 303 is specifically configured to perform weighted calculation on at least two of CPU, memory, storage and service to obtain the processing priority of the virtual machine migration.

其中,所述处理模块305包括:Wherein, the processing module 305 includes:

选择单元,用于根据所述虚拟机的资源配置信息,为所述虚拟机选择提供所述资源配置信息的物理主机;A selection unit, configured to select, for the virtual machine, a physical host that provides the resource configuration information according to the resource configuration information of the virtual machine;

迁移单元,用于将所述虚拟机迁移到所述物理主机。a migration unit, configured to migrate the virtual machine to the physical host.

本发明提供的装置实施例,通过读取虚拟机的配置和其业务重要性信息对虚拟机迁移任务包中的虚拟机调度任务进行重新排序、下发并执行,在保障云数据中心资源和业务稳定性的前提下,实现虚拟机高效、批量的迁移,提高云计算操作系统的竞争力。The device embodiment provided by the present invention reorders, delivers and executes the virtual machine scheduling tasks in the virtual machine migration task package by reading the configuration of the virtual machine and its business importance information, and guarantees the resource and business of the cloud data center. Under the premise of stability, realize efficient and batch migration of virtual machines and improve the competitiveness of cloud computing operating systems.

虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。Although the embodiments disclosed in the present invention are as above, the described content is only an embodiment adopted for understanding the present invention, and is not intended to limit the present invention. Anyone skilled in the field of the present invention can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed by the present invention, but the patent protection scope of the present invention must still be The scope defined by the appended claims shall prevail.

Claims (10)

1.一种管理虚拟机批量迁移的方法,其特征在于,包括:1. A method for managing batch migration of virtual machines, comprising: 接收虚拟机批量迁移任务包,其中所述任务包包括至少两个虚拟机的迁移任务;Receiving a virtual machine batch migration task package, wherein the task package includes migration tasks of at least two virtual machines; 获取所述任务包中虚拟机的资源配置信息和虚拟机处理的业务信息;Obtain resource configuration information of the virtual machine in the task package and business information processed by the virtual machine; 根据所述虚拟机的资源配置信息和虚拟机处理的业务信息,计算所述虚拟机迁移的处理优先度;calculating the processing priority of the migration of the virtual machine according to the resource configuration information of the virtual machine and the business information processed by the virtual machine; 对所述处理优先度进行排序;sorting the processing priorities; 根据排序后的处理优先度,依次处理虚拟机迁移任务。According to the sorted processing priority, the virtual machine migration tasks are processed in sequence. 2.根据权利要求1所述的方法,其特征在于,所述虚拟机的资源配置信息包括CPU、内存和存储的资源配置信息中至少一个。2. The method according to claim 1, wherein the resource configuration information of the virtual machine includes at least one of CPU, memory and storage resource configuration information. 3.根据权利要求1所述的方法,其特征在于,所述虚拟机处理的业务信息包括述虚拟机处理的任务类型以及所述任务的重要度。3 . The method according to claim 1 , wherein the service information processed by the virtual machine includes the type of task processed by the virtual machine and the importance of the task. 4 . 4.根据权利要求2所述的方法,其特征在于,根据所述虚拟机的资源配置信息和虚拟机处理的业务信息,计算所述虚拟机迁移的处理优先度,包括:4. The method according to claim 2, wherein, according to the resource configuration information of the virtual machine and the business information processed by the virtual machine, calculating the processing priority of the virtual machine migration includes: 对CPU、内存、存储和业务中的至少两个进行加权计算,得到所述虚拟机迁移的处理优先度。Perform weighted calculation on at least two of CPU, memory, storage and service to obtain the processing priority of the virtual machine migration. 5.根据权利要求1所述的方法,其特征在于,所述根据排序后的处理优先度,依次处理虚拟机迁移任务,包括:5. The method according to claim 1, wherein said processing the virtual machine migration tasks sequentially according to the sorted processing priorities comprises: 根据所述虚拟机的资源配置信息,为所述虚拟机选择提供所述资源配置信息的物理主机;Selecting a physical host that provides the resource configuration information for the virtual machine according to the resource configuration information of the virtual machine; 将所述虚拟机迁移到所述物理主机。Migrating the virtual machine to the physical host. 6.一种管理虚拟机批量迁移的装置,其特征在于,包括:6. A device for managing batch migration of virtual machines, comprising: 接收模块,用于接收虚拟机批量迁移任务包,其中所述任务包包括至少两个虚拟机的迁移任务;A receiving module, configured to receive a virtual machine batch migration task package, wherein the task package includes migration tasks of at least two virtual machines; 获取模块,用于获取所述任务包中虚拟机的资源配置信息和虚拟机处理的业务信息;An acquisition module, configured to acquire resource configuration information of the virtual machine in the task package and business information processed by the virtual machine; 计算模块,用于根据所述虚拟机的资源配置信息和虚拟机处理的业务信息,计算所述虚拟机迁移的处理优先度;A calculation module, configured to calculate the processing priority of the virtual machine migration according to the resource configuration information of the virtual machine and the business information processed by the virtual machine; 排序模块,用于对所述处理优先度进行排序;A sorting module, configured to sort the processing priorities; 处理模块,用于根据排序后的处理优先度,依次处理虚拟机迁移任务。The processing module is configured to sequentially process virtual machine migration tasks according to the sorted processing priorities. 7.根据权利要求6所述的装置,其特征在于,所述虚拟机的资源配置信息包括CPU、内存和存储的资源配置信息中至少一个。7. The apparatus according to claim 6, wherein the resource configuration information of the virtual machine includes at least one of CPU, memory and stored resource configuration information. 8.根据权利要求6所述的装置,其特征在于,所述虚拟机处理的业务信息包括述虚拟机处理的任务类型以及所述任务的重要度。8 . The device according to claim 6 , wherein the service information processed by the virtual machine includes a task type processed by the virtual machine and an importance of the task. 9.根据权利要求7所述的装置,其特征在于:9. The device according to claim 7, characterized in that: 所述计算模块,具体用于对CPU、内存、存储和业务中的至少两个进行加权计算,得到所述虚拟机迁移的处理优先度。The calculation module is specifically configured to perform weighted calculation on at least two of CPU, memory, storage and service to obtain the processing priority of the virtual machine migration. 10.根据权利要求6所述的装置,其特征在于,所述处理模块包括:10. The device according to claim 6, wherein the processing module comprises: 选择单元,用于根据所述虚拟机的资源配置信息,为所述虚拟机选择提供所述资源配置信息的物理主机;A selection unit, configured to select, for the virtual machine, a physical host that provides the resource configuration information according to the resource configuration information of the virtual machine; 迁移单元,用于将所述虚拟机迁移到所述物理主机。a migration unit, configured to migrate the virtual machine to the physical host.
CN201710576050.8A 2017-07-14 2017-07-14 A kind of method and apparatus for managing virtual machine batch migration Pending CN107301088A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710576050.8A CN107301088A (en) 2017-07-14 2017-07-14 A kind of method and apparatus for managing virtual machine batch migration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710576050.8A CN107301088A (en) 2017-07-14 2017-07-14 A kind of method and apparatus for managing virtual machine batch migration

Publications (1)

Publication Number Publication Date
CN107301088A true CN107301088A (en) 2017-10-27

Family

ID=60133955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710576050.8A Pending CN107301088A (en) 2017-07-14 2017-07-14 A kind of method and apparatus for managing virtual machine batch migration

Country Status (1)

Country Link
CN (1) CN107301088A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800058A (en) * 2019-01-23 2019-05-24 山东超越数控电子股份有限公司 A kind of virtual machine Autonomic Migration Framework method
CN110083434A (en) * 2019-05-05 2019-08-02 重庆大学 The method, apparatus and server of cloud virtual machine batch integration
US11188368B2 (en) 2018-10-31 2021-11-30 Nutanix, Inc. Asynchronous workload migration control
US11194620B2 (en) * 2018-10-31 2021-12-07 Nutanix, Inc. Virtual machine migration task management

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120030407A1 (en) * 2008-06-11 2012-02-02 Vmware, Inc. System and method for improving memory locality of virtual machines
CN102567072A (en) * 2010-12-20 2012-07-11 中国移动通信集团公司 Resource allocation method, resource allocation device and resource allocation system
CN103810016A (en) * 2012-11-09 2014-05-21 北京华胜天成科技股份有限公司 Method and device for realizing virtual machine migration and cluster system
CN104239123A (en) * 2014-09-05 2014-12-24 北方工业大学 Campus-cloud-platform-oriented virtual machine management dispatching method and system
CN105610715A (en) * 2016-03-14 2016-05-25 山东大学 Cloud data center multi-virtual machine migration scheduling method based on SDN (Software Defined Network)
CN106681815A (en) * 2016-12-27 2017-05-17 中山大学 Concurrent migration method of virtual machines
CN106775922A (en) * 2016-11-22 2017-05-31 山东浪潮云服务信息科技有限公司 A kind of virtual machine migration method based on Plugin Mechanism

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120030407A1 (en) * 2008-06-11 2012-02-02 Vmware, Inc. System and method for improving memory locality of virtual machines
CN102567072A (en) * 2010-12-20 2012-07-11 中国移动通信集团公司 Resource allocation method, resource allocation device and resource allocation system
CN103810016A (en) * 2012-11-09 2014-05-21 北京华胜天成科技股份有限公司 Method and device for realizing virtual machine migration and cluster system
CN104239123A (en) * 2014-09-05 2014-12-24 北方工业大学 Campus-cloud-platform-oriented virtual machine management dispatching method and system
CN105610715A (en) * 2016-03-14 2016-05-25 山东大学 Cloud data center multi-virtual machine migration scheduling method based on SDN (Software Defined Network)
CN106775922A (en) * 2016-11-22 2017-05-31 山东浪潮云服务信息科技有限公司 A kind of virtual machine migration method based on Plugin Mechanism
CN106681815A (en) * 2016-12-27 2017-05-17 中山大学 Concurrent migration method of virtual machines

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11188368B2 (en) 2018-10-31 2021-11-30 Nutanix, Inc. Asynchronous workload migration control
US11194620B2 (en) * 2018-10-31 2021-12-07 Nutanix, Inc. Virtual machine migration task management
CN109800058A (en) * 2019-01-23 2019-05-24 山东超越数控电子股份有限公司 A kind of virtual machine Autonomic Migration Framework method
CN110083434A (en) * 2019-05-05 2019-08-02 重庆大学 The method, apparatus and server of cloud virtual machine batch integration
CN110083434B (en) * 2019-05-05 2021-06-04 重庆大学 Method and device for batch integration of cloud virtual machines and server

Similar Documents

Publication Publication Date Title
US20200102704A1 (en) System and method to manage and share managed runtime memory for java virtual machine
WO2018099299A1 (en) Graphic data processing method, device and system
US8442955B2 (en) Virtual machine image co-migration
US20190220319A1 (en) Usage instrumented workload scheduling
Di et al. Characterizing and modeling cloud applications/jobs on a Google data center
CN103365702B (en) System and method for tracking process of lightweight virtual machine under IaaS cloud environment
CN109669776B (en) Detection task processing method, device and system
CN107239329A (en) Unified resource dispatching method and system under cloud environment
US10860385B2 (en) Method and system for allocating and migrating workloads across an information technology environment based on persistent memory availability
CN106843945B (en) PaaS-based GIS application deployment method and system
US9501313B2 (en) Resource management and allocation using history information stored in application's commit signature log
CN101561769A (en) Process migration tracking method based on multi-core platform virtual machine
CN104486255A (en) Service resource scheduling method and device
CN110389903B (en) Test environment deployment method and device, electronic device and readable storage medium
CN115292014A (en) Image rendering method and device and server
US9442817B2 (en) Diagnosis of application server performance problems via thread level pattern analysis
CN107301088A (en) A kind of method and apparatus for managing virtual machine batch migration
Pongsakorn et al. Container rebalancing: Towards proactive linux containers placement optimization in a data center
US20220283924A1 (en) Methods and systems for intelligent sampling of application traces
US20190235902A1 (en) Bully vm detection in a hyperconverged system
CN110032576A (en) A kind of method for processing business and device
US9075965B2 (en) Execution-based license discovery and optimization
CN104580194A (en) Virtual resource management method and device oriented to video applications
CN112035230A (en) Method and device for generating task scheduling file and storage medium
CN112256783A (en) Data export method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20171027