CN113886091A - Virtual machine migration method, system, equipment and storage medium - Google Patents
Virtual machine migration method, system, equipment and storage medium Download PDFInfo
- Publication number
- CN113886091A CN113886091A CN202111300588.9A CN202111300588A CN113886091A CN 113886091 A CN113886091 A CN 113886091A CN 202111300588 A CN202111300588 A CN 202111300588A CN 113886091 A CN113886091 A CN 113886091A
- Authority
- CN
- China
- Prior art keywords
- host
- virtual machine
- load
- group
- load data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000013508 migration Methods 0.000 title claims abstract description 116
- 230000005012 migration Effects 0.000 title claims abstract description 116
- 238000000034 method Methods 0.000 title claims abstract description 79
- 238000010586 diagram Methods 0.000 description 12
- 238000012545 processing Methods 0.000 description 10
- 238000011156 evaluation Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000001174 ascending effect Effects 0.000 description 2
- 238000013209 evaluation strategy Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000005111 flow chemistry technique Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5083—Techniques for rebalancing the load in a distributed system
- G06F9/5088—Techniques for rebalancing the load in a distributed system involving task migration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
- G06F9/4856—Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/4557—Distribution of virtual machine instances; Migration and load balancing
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本发明涉及网络安全领域,具体地说,涉及虚拟机迁移方法、系统、设备及存储介质。The present invention relates to the field of network security, in particular to a virtual machine migration method, system, device and storage medium.
背景技术Background technique
随着计算机技术的发展,虚拟化技术得到了越来越广泛的应用。其中,应用最多的是虚拟化分割技术,即在一台主机上运行多个虚拟机(Virtual Machine;VM),在主机和多个VM之间,通过虚拟机监视器(Virtual Machine Monitor;VMM)管理中央处理单元(Central Processing Unit;CPU)、内存、存储、网络和其它外设资源,VMM对这些物理资源进行调度、管理,为多个VM分配这些物理资源,实现各个VM之间的相互隔离运行。With the development of computer technology, virtualization technology has been widely used. Among them, the most widely used is the virtualization segmentation technology, that is, running multiple virtual machines (Virtual Machine; VM) on one host, and between the host and multiple VMs, through the virtual machine monitor (Virtual Machine Monitor; VMM) Manage Central Processing Unit (CPU), memory, storage, network and other peripheral resources, VMM schedules and manages these physical resources, allocates these physical resources to multiple VMs, and realizes mutual isolation between VMs run.
其中,虚拟机是模拟的具有完整硬件系统功能的、运行在隔离环境中的计算机系统,是资源调度的对象,主机是计算资源的物理承载,是虚拟机的实际承载,如物理服务器。为了有效利用集群系统中各物理服务器上的资源,使各物理服务器上负载均衡,通常采用虚拟机迁移的方法,将虚拟机负载较多的物理服务器上的部分VM迁移到其他物理服务器上。The virtual machine is a simulated computer system with complete hardware system functions and running in an isolated environment, and is the object of resource scheduling. The host is the physical bearer of computing resources and the actual bearer of the virtual machine, such as a physical server. In order to effectively utilize the resources on each physical server in the cluster system and balance the load on each physical server, the virtual machine migration method is usually adopted to migrate some VMs on the physical server with more virtual machine load to other physical servers.
发明内容SUMMARY OF THE INVENTION
针对现有技术中的问题,本发明的目的在于提供虚拟机迁移方法、系统、设备及存储介质,克服了现有技术的困难,能够解决虚拟机迁移到集中调度方式难以满足高负载、大并发的管控需求的问题,提升虚拟机迁移效率以提升资源利用率。In view of the problems in the prior art, the purpose of the present invention is to provide a virtual machine migration method, system, device and storage medium, which overcomes the difficulties of the prior art and can solve the problem that the migration of virtual machines to a centralized scheduling mode is difficult to meet high load and large concurrency. To solve the problem of management and control requirements, improve the efficiency of virtual machine migration to improve resource utilization.
本发明实施例提供一种虚拟机迁移方法,该方法应用于主机群中的第一主机,包括:An embodiment of the present invention provides a virtual machine migration method, and the method is applied to a first host in a host group, including:
收集主机群中各主机的虚拟机负载数据;Collect virtual machine load data of each host in the host group;
在虚拟机负载数据显示第一主机为过载节点的情况下,根据虚拟机负载数据在主机群中选取未过载的至少一个第二主机,并在第一主机中选取至少一个迁出虚拟机并迁出到第二主机;When the virtual machine load data shows that the first host is an overloaded node, at least one second host that is not overloaded is selected from the host group according to the virtual machine load data, and at least one migrated virtual machine is selected from the first host and migrated out to the second host;
在虚拟机负载数据显示第一主机为非过载节点的情况下,接收主机群中至少一个第三主机迁入的迁入虚拟机并部署在第一主机。In the case that the virtual machine load data shows that the first host is a non-overloaded node, the migrated virtual machine migrated from at least one third host in the host group is received and deployed on the first host.
可选地,该方法还包括:Optionally, the method further includes:
在收集主机群中各主机的虚拟机负载数据之前,接收控制器发送的自主协商迁移虚拟机指令;Before collecting the virtual machine load data of each host in the host group, receive an autonomous negotiation migration virtual machine instruction sent by the controller;
收集主机群中各主机的虚拟机负载数据,包括:Collect virtual machine load data for each host in the host group, including:
基于自主协商迁移虚拟机指令向主机群通告自身的虚拟机负载数据,并接收各主机的虚拟机负载数据。Based on the virtual machine migration instruction through autonomous negotiation, it notifies the host group of its own virtual machine load data, and receives the virtual machine load data of each host.
可选地,该方法还包括:Optionally, the method further includes:
确定状态阈值;determine the status threshold;
根据主机群中各主机的虚拟机负载数据与状态阈值之间的比较结果,确定主机群中各主机的负载状态,负载状态为过载或非过载。According to the comparison result between the virtual machine load data of each host in the host group and the state threshold, the load state of each host in the host group is determined, and the load state is overload or non-overload.
可选地,该方法还包括:Optionally, the method further includes:
在根据主机群中各主机的负载状态确定主机群中的过载节点占比超出第一目标区间的上限值的情况下,在主机群中开启新的主机。When it is determined according to the load state of each host in the host group that the proportion of overloaded nodes in the host group exceeds the upper limit value of the first target interval, a new host is started in the host group.
可选地,在根据主机群中各主机的负载状态确定主机群中的过载节点占比超出第一目标区间的上限值的情况下,在主机群中开启新的主机,包括:Optionally, when it is determined according to the load status of each host in the host group that the proportion of overloaded nodes in the host group exceeds the upper limit of the first target interval, starting a new host in the host group includes:
在根据主机群中各主机的虚拟机负载数据确定主机群的全局负载度超过负载度阈值、且根据主机群中各主机的负载状态确定主机群中的过载节点占比超出第一目标区间的上限值的情况下,在主机群中开启新的主机。It is determined according to the virtual machine load data of each host in the host group that the global load degree of the host group exceeds the load degree threshold, and it is determined according to the load status of each host in the host group that the proportion of overloaded nodes in the host group exceeds the first target interval. In the case of the limit, start a new host in the host group.
可选地,该方法还包括:Optionally, the method further includes:
在根据主机群中各主机的虚拟机负载数据确定主机群的全局负载度超过负载度阈值、且根据主机群中各主机的负载状态确定主机群中的过载节点占比未超出第一目标区间的上限值的情况下,根据主机群中的过载节点占比更新第一目标区间的上限值。If it is determined according to the virtual machine load data of each host in the host group that the global load degree of the host group exceeds the load degree threshold, and it is determined according to the load status of each host in the host group that the proportion of overloaded nodes in the host group does not exceed the first target interval In the case of the upper limit value, the upper limit value of the first target interval is updated according to the proportion of overloaded nodes in the host group.
可选地,该方法还包括:Optionally, the method further includes:
在根据主机群中各主机的负载状态确定主机群中的非过载节点占比超出第二目标区间的上限值的情况下,关闭主机群中的空闲主机。When it is determined according to the load status of each host in the host group that the proportion of non-overloaded nodes in the host group exceeds the upper limit value of the second target interval, the idle hosts in the host group are shut down.
可选地,在根据主机群中各主机的负载状态确定主机群中的非过载节点占比超出第二目标区间的上限值的情况下,关闭主机群中的空闲主机,包括:Optionally, when it is determined according to the load status of each host in the host group that the proportion of non-overloaded nodes in the host group exceeds the upper limit of the second target interval, shutting down the idle hosts in the host group includes:
在根据主机群中各主机的虚拟机负载数据确定主机群的全局负载度未超过负载度阈值、且根据主机群中各主机的负载状态确定主机群中的非过载节点占比超出第二目标区间的上限值的情况下,关闭主机群中的空闲主机。According to the virtual machine load data of each host in the host group, it is determined that the global load degree of the host group does not exceed the load degree threshold, and according to the load status of each host in the host group, it is determined that the proportion of non-overloaded nodes in the host group exceeds the second target interval In the case of the upper limit value, shut down idle hosts in the host group.
可选地,该方法还包括:Optionally, the method further includes:
在根据主机群中各主机的虚拟机负载数据确定主机群的全局负载度未超过负载度阈值、且根据主机群中各主机的负载状态确定主机群中的非过载节点占比未超出第二目标区间的上限值的情况下,根据主机群中的非过载节点占比更新第二目标区间的上限值。According to the virtual machine load data of each host in the host group, it is determined that the global load degree of the host group does not exceed the load degree threshold, and according to the load status of each host in the host group, it is determined that the proportion of non-overloaded nodes in the host group does not exceed the second target. In the case of the upper limit value of the interval, the upper limit value of the second target interval is updated according to the proportion of non-overloaded nodes in the host group.
可选地,在虚拟机负载数据显示第一主机为过载节点的情况下,根据虚拟机负载数据在主机群中选取非过载的至少一个第二主机,包括:Optionally, when the virtual machine load data shows that the first host is an overloaded node, selecting at least one non-overloaded second host in the host group according to the virtual machine load data, including:
在虚拟机负载数据显示第一主机为过载节点的情况下,根据虚拟机负载数据获取第一主机中过载的负载指标类型;When the virtual machine load data shows that the first host is an overloaded node, obtain the overloaded load indicator type in the first host according to the virtual machine load data;
在主机群中被认定为非过载节点的候选主机中选取与负载指标类型匹配的第二主机。A second host that matches the load index type is selected from the candidate hosts that are identified as non-overloaded nodes in the host group.
可选地,该方法还包括:Optionally, the method further includes:
在主机群中被认定为非过载节点的候选主机中选取与负载指标类型匹配的第二主机之前,根据各主机的虚拟机负载数据在主机群中选取非过载节点,得到候选主机列表;Before selecting the second host matching the load index type from the candidate hosts identified as non-overloaded nodes in the host cluster, select non-overloaded nodes in the host cluster according to the virtual machine load data of each host to obtain a candidate host list;
对候选主机列表按照候选主机与负载指标类型之间的匹配度进行递减排序;Sort the candidate host list in descending order according to the matching degree between the candidate host and the load indicator type;
在主机群中被认定为非过载节点的候选主机中选取与负载指标类型匹配的第二主机,包括:Select the second host that matches the load indicator type from the candidate hosts identified as non-overloaded nodes in the host cluster, including:
在递减排序得到的候选主机列表中根据各候选主机中虚拟机负载数据选取第二主机。The second host is selected according to the virtual machine load data in each candidate host in the candidate host list obtained by descending order.
可选地,该方法还包括:Optionally, the method further includes:
根据自身虚拟机迁入迁出结果,更新自身虚拟机负载数据并将更新的虚拟机负载数据通告给主机群。According to the migration result of its own virtual machine, update its own virtual machine load data and notify the host group of the updated virtual machine load data.
本发明实施例还提供一种虚拟机迁移系统,该系统用于主机群中的第一主机,包括:The embodiment of the present invention also provides a virtual machine migration system, the system is used for the first host in the host group, including:
收集模块,收集主机群中各主机的虚拟机负载数据;The collection module collects the virtual machine load data of each host in the host group;
迁出模块,在虚拟机负载数据显示第一主机为过载节点的情况下,根据虚拟机负载数据在主机群中选取未过载的至少一个第二主机,并在第一主机中选取至少一个迁出虚拟机并迁出到第二主机;The migration module, when the virtual machine load data shows that the first host is an overloaded node, selects at least one second host that is not overloaded in the host group according to the virtual machine load data, and selects at least one second host from the first host to migrate out virtual machine and migrated out to the second host;
迁入模块,在虚拟机负载数据显示第一主机为非过载节点的情况下,接收主机群中至少一个第三主机迁入的迁入虚拟机并部署在第一主机。The migration module, when the virtual machine load data shows that the first host is a non-overloaded node, receives the migrated virtual machine migrated from at least one third host in the host group and deploys it on the first host.
本发明实施例还提供一种虚拟机迁移设备,包括:The embodiment of the present invention also provides a virtual machine migration device, including:
处理器;processor;
存储器,其中存储有处理器的可执行指令;a memory in which executable instructions for the processor are stored;
其中,处理器配置为经由执行可执行指令来执行上述虚拟机迁移方法的步骤。The processor is configured to execute the steps of the above virtual machine migration method by executing the executable instructions.
本发明的实施例还提供一种计算机可读存储介质,用于存储程序,程序被执行时实现上述虚拟机迁移方法的步骤。Embodiments of the present invention further provide a computer-readable storage medium for storing a program, and when the program is executed, the steps of the above-mentioned virtual machine migration method are implemented.
本发明的目的在于提供虚拟机迁移方法、系统、设备及存储介质,该方法包括:主机群中任一主机可以收集主机群中各主机的虚拟机负载数据,在虚拟机负载数据显示当前主机为过载节点的情况下,根据虚拟机负载数据在主机群中选取非过载的至少一个目标主机,并在当前主机中选取至少一个虚拟机到该目标主机,在虚拟机资源负载数据显示当前主机为非过载节点的情况下,接收其他主机迁入的虚拟机并部署在当前主机。这能够解决现有技术利用控制器集中调度迁移虚拟机而带来的调度过载问题,从而避免虚拟机迁移等待而导致不可用问题,确保虚拟机可以在主机群内更高效迁移,提升虚拟机资源利用率。The purpose of the present invention is to provide a virtual machine migration method, system, device and storage medium. The method includes: any host in the host group can collect the virtual machine load data of each host in the host group, and when the virtual machine load data shows that the current host is In the case of an overloaded node, select at least one non-overloaded target host in the host group according to the virtual machine load data, and select at least one virtual machine from the current host to the target host, and the virtual machine resource load data shows that the current host is not overloaded. In the case of an overloaded node, virtual machines migrated from other hosts are received and deployed on the current host. This can solve the scheduling overload problem caused by using the controller to centrally schedule and migrate virtual machines in the prior art, thereby avoiding the unavailability problem caused by waiting for virtual machine migration, ensuring that virtual machines can be migrated more efficiently within the host group, and improving virtual machine resources. utilization.
附图说明Description of drawings
通过阅读参照以下附图对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显。Other features, objects and advantages of the present invention will become more apparent upon reading the detailed description of non-limiting embodiments with reference to the following drawings.
图1是本发明实施例的虚拟机迁移方法的流程图之一;1 is one of the flowcharts of a virtual machine migration method according to an embodiment of the present invention;
图2是本发明实施例的虚拟机迁移方法的流程图之二;FIG. 2 is the second flowchart of the virtual machine migration method according to the embodiment of the present invention;
图3是本发明实施例的虚拟机迁移方法的流程图之三;3 is the third flowchart of the virtual machine migration method according to the embodiment of the present invention;
图4是本发明实施例的虚拟机迁移方法的流程图之四;4 is a fourth flowchart of a virtual machine migration method according to an embodiment of the present invention;
图5是本发明实施例的虚拟机迁移方法的流程图之五;FIG. 5 is a fifth flowchart of a virtual machine migration method according to an embodiment of the present invention;
图6是本发明实施例的虚拟机迁移方法的流程图之六;FIG. 6 is a sixth flowchart of a virtual machine migration method according to an embodiment of the present invention;
图7是本发明实施例的虚拟机迁移方法的流程图之七;7 is a seventh flowchart of a virtual machine migration method according to an embodiment of the present invention;
图8是本发明实施例的虚拟机迁移方法的流程图之八;FIG. 8 is the eighth flow chart of the virtual machine migration method according to the embodiment of the present invention;
图9是本发明实施例的虚拟机迁移方法的流程图之九;9 is a ninth flow chart of a virtual machine migration method according to an embodiment of the present invention;
图10是本发明实施例的虚拟机迁移方法的流程图之十;FIG. 10 is a tenth flow chart of a virtual machine migration method according to an embodiment of the present invention;
图11是本发明实施例的虚拟机迁移方法的流程图之十一;11 is an eleventh flowchart of a method for migrating a virtual machine according to an embodiment of the present invention;
图12是本发明实施例的虚拟机迁移方法的流程图之十二;12 is a twelfth flowchart of a virtual machine migration method according to an embodiment of the present invention;
图13是本发明实施例的虚拟机迁移方法的流程图之十三;13 is a thirteenth flowchart of a virtual machine migration method according to an embodiment of the present invention;
图14是本发明实施例的虚拟机迁移系统的结构图之一;14 is one of the structural diagrams of a virtual machine migration system according to an embodiment of the present invention;
图15是本发明实施例的虚拟机迁移系统的结构图之二;15 is the second structural diagram of a virtual machine migration system according to an embodiment of the present invention;
图16是本发明实施例的虚拟机迁移系统的结构图之三;FIG. 16 is a third structural diagram of a virtual machine migration system according to an embodiment of the present invention;
图17是本发明实施例的虚拟机迁移系统的结构图之四;FIG. 17 is a fourth structural diagram of a virtual machine migration system according to an embodiment of the present invention;
图18是本发明实施例的虚拟机迁移系统的结构图之五;FIG. 18 is a fifth structural diagram of a virtual machine migration system according to an embodiment of the present invention;
图19是本发明实施例的虚拟机迁移系统的结构图之六;FIG. 19 is a sixth structural diagram of a virtual machine migration system according to an embodiment of the present invention;
图20是本发明实施例的虚拟机迁移系统的结构图之七;FIG. 20 is a seventh structural diagram of a virtual machine migration system according to an embodiment of the present invention;
图21是本发明实施例的虚拟机迁移系统的结构图之八;FIG. 21 is the eighth structural diagram of the virtual machine migration system according to the embodiment of the present invention;
图22是本发明实施例的虚拟机迁移系统的结构图之九;22 is the ninth structural diagram of the virtual machine migration system according to the embodiment of the present invention;
图23是本发明实施例的虚拟机迁移设备运行的示意图。FIG. 23 is a schematic diagram of the operation of a virtual machine migration device according to an embodiment of the present invention.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的实施方式。相反,提供这些实施方式使本发明全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
附图仅为本发明的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件转发模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The drawings are merely schematic illustrations of the invention and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware forwarding modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices .
此外,附图中所示的流程仅是示例性说明,不是必须包括所有的步骤。例如,有的步骤可以分解,有的步骤可以合并或部分合并,且实际执行的顺序有可能根据实际情况改变。具体描述时使用的“第一”、“第二”以及类似的词语并不表示任何顺序、数量或者重要性,而只是用来区分不同的组成部分。需要说明的是,在不冲突的情况下,本发明的实施例及不同实施例中的特征可以相互组合。In addition, the flow shown in the drawings is only an exemplary illustration, and does not necessarily include all steps. For example, some steps can be decomposed, and some steps can be combined or partially combined, and the actual execution order may be changed according to the actual situation. "First", "second" and similar words used in the detailed description do not denote any order, quantity or importance, but are only used to distinguish different components. It should be noted that the embodiments of the present invention and features in different embodiments may be combined with each other under the condition of no conflict.
在实际应用中发现,平台在各主机节点上创建和分配虚机时,会考虑节点资源是否满足虚拟机需求,这会导致各节点间虚拟机分配不均匀。节点内虚拟机所需资源随业务规模变化而调整,当单一节点虚拟机数量过多会因节点资源争抢而导致节点过载,影响甚至中断业务。因此,根据各节点负载的变化对节点内虚拟机自动化在线迁移是解决上述问题的有效方法。In practical applications, it is found that when the platform creates and allocates virtual machines on each host node, it will consider whether the node resources meet the virtual machine requirements, which will lead to uneven distribution of virtual machines among nodes. The resources required by the virtual machines in a node are adjusted with the change of the business scale. When the number of virtual machines on a single node is too large, the nodes will be overloaded due to the competition for node resources, affecting or even interrupting the business. Therefore, automatic online migration of virtual machines in nodes according to changes in the load of each node is an effective method to solve the above problems.
因此,现有一种方式采用集中调度方式,利用控制器负责虚拟机资源的调度,尤其是计算资源的调度。但是,这种方式出现如下问题:在主机群规模达到一定程度时,这种集中调度方式会导致控制器拥堵,难以满足高负载、大并发的管控需求,导致部分虚拟机迁移需要等待,从而影响服务质量、降低服务能力和资源利用率。Therefore, an existing method adopts a centralized scheduling method, and uses a controller to be responsible for the scheduling of virtual machine resources, especially the scheduling of computing resources. However, this method has the following problems: when the scale of the host group reaches a certain level, this centralized scheduling method will cause the controller to be congested, and it is difficult to meet the management and control requirements of high load and large concurrency, resulting in the need to wait for some virtual machines to migrate, thus affecting the Quality of service, reduced service capacity and resource utilization.
本发明实施例提出虚拟机迁移方法、装置、设备及存储介质,其中方法包括:主机群中任一主机可以收集主机群中各主机的虚拟机负载数据;The embodiments of the present invention provide a virtual machine migration method, apparatus, device and storage medium, wherein the method includes: any host in the host group can collect virtual machine load data of each host in the host group;
在虚拟机负载数据显示当前主机为过载节点的情况下,根据虚拟机负载数据在主机群中选取非过载的至少一个目标主机,并在当前主机中选取至少一个虚拟机到该目标主机;When the virtual machine load data shows that the current host is an overloaded node, select at least one non-overloaded target host from the host group according to the virtual machine load data, and select at least one virtual machine from the current host to the target host;
在虚拟机资源负载数据显示当前主机为非过载节点的情况下,接收其他主机迁入的虚拟机并部署在当前主机。When the virtual machine resource load data shows that the current host is a non-overloaded node, the virtual machines migrated from other hosts are received and deployed on the current host.
本发明实施例提出技术方案,主机群能够自主协商迁移策略,避免控制器的瓶颈,避免不必要的服务质量下降,保证虚拟机迁移效率,提升虚拟机资源利用率。The embodiment of the present invention provides a technical solution, the host group can negotiate the migration strategy independently, avoid the bottleneck of the controller, avoid unnecessary service quality degradation, ensure the virtual machine migration efficiency, and improve the virtual machine resource utilization rate.
图1为本发明实施例的虚拟机迁移方法的流程图,本方法的执行主体为主机群中的任一主机,为描述方便,以下定义为第一主机。其中主机群中的主机具体可以为物理服务器,在此不做限定。FIG. 1 is a flowchart of a method for migrating a virtual machine according to an embodiment of the present invention. The execution subject of the method is any host in the host group. For convenience of description, it is defined as the first host below. The hosts in the host group may specifically be physical servers, which are not limited herein.
参考图1,本发明实施例提供的虚拟机迁移方法包括如下步骤:Referring to FIG. 1, a virtual machine migration method provided by an embodiment of the present invention includes the following steps:
步骤110:收集主机群中各主机的虚拟机负载数据;Step 110: Collect virtual machine load data of each host in the host group;
步骤120:在虚拟机负载数据显示第一主机为过载节点的情况下,根据虚拟机负载数据在主机群中选取非过载的至少一个第二主机,并在第一主机中选取至少一个迁出虚拟机并迁出到第二主机;Step 120: When the virtual machine load data shows that the first host is an overloaded node, select at least one non-overloaded second host in the host group according to the virtual machine load data, and select at least one migrated virtual machine from the first host. host and migrate out to the second host;
步骤130:在虚拟机负载数据显示第一主机为非过载节点的情况下,接收主机群中至少一个第三主机迁入的迁入虚拟机并部署在第一主机。Step 130: In the case that the virtual machine load data shows that the first host is a non-overloaded node, receive a migrated virtual machine migrated from at least one third host in the host group and deploy it on the first host.
利用本发明实施例,允许任意一个主机收集主机群的虚拟机负载数据,从而能够在自身主机为过载节点的情况下,选择合适的第二主机来迁出虚拟机,或在自身主机为非过载节点的情况下,能够接收并部署第三主机迁入的虚拟机。这能够解决现有技术利用控制器集中调度迁移虚拟机而带来的调度过载问题,从而避免虚拟机迁移等待而导致不可用问题,确保虚拟机可以在主机群内更高效迁移,提升虚拟机资源利用率。Using the embodiment of the present invention, any host is allowed to collect the virtual machine load data of the host group, so that when its own host is an overloaded node, it can select a suitable second host to migrate out the virtual machine, or when its own host is not overloaded In the case of a node, the virtual machine migrated by the third host can be received and deployed. This can solve the scheduling overload problem caused by using the controller to centrally schedule and migrate virtual machines in the prior art, thereby avoiding the unavailability problem caused by waiting for virtual machine migration, ensuring that virtual machines can be migrated more efficiently within the host group, and improving virtual machine resources. utilization.
在本发明可选实施例中,虚拟机负载数据为主机上部署的虚拟机数量或运行虚拟机的资源消耗量。In an optional embodiment of the present invention, the virtual machine load data is the number of virtual machines deployed on the host or the resource consumption of running the virtual machines.
在本发明可选实施例中,收集主机群中各主机的虚拟机负载数据,具体可以包括:In an optional embodiment of the present invention, collecting the virtual machine load data of each host in the host group may specifically include:
在自身虚拟机过载或非过载的情况下,向主机群发送虚拟机负载数据获取请求,并接收主机群中各主机反馈的虚拟机负载数据。In the case that the own virtual machine is overloaded or not overloaded, a request for obtaining virtual machine load data is sent to the host group, and the virtual machine load data fed back by each host in the host group is received.
本实施例允许各主机按照自身虚拟机迁移需求适时收集各主机的虚拟机负载数据,并根据其他主机的虚拟机负载情况实现虚拟机迁入和迁出,避免虚拟机频繁迁移,提升虚拟机迁入迁出效率。This embodiment allows each host to timely collect virtual machine load data of each host according to its own virtual machine migration requirements, and implement virtual machine migration in and out according to the virtual machine load of other hosts, avoiding frequent virtual machine migration and improving virtual machine migration. Inbound and outbound efficiency.
在本发明可选实施例中,各主机还可以每隔设定时间向主机群通告自身虚拟机负载数据。In an optional embodiment of the present invention, each host may also announce its own virtual machine load data to the host group at a set time interval.
参照图2,本发明可选实施例的虚拟机迁移方法包括如下步骤:Referring to FIG. 2, a virtual machine migration method according to an optional embodiment of the present invention includes the following steps:
步骤210:接收控制器发送的自主协商迁移虚拟机指令;Step 210: Receive an autonomous negotiation migration virtual machine instruction sent by the controller;
步骤220:基于自主协商迁移虚拟机指令向主机群通告自身的虚拟机负载数据,并接收各主机的虚拟机负载数据;Step 220: Notifying the host group of its own virtual machine load data based on the virtual machine migration instruction through autonomous negotiation, and receiving the virtual machine load data of each host;
步骤230:在虚拟机负载数据显示第一主机为过载节点的情况下,根据虚拟机负载数据在主机群中选取非过载的至少一个第二主机,并在第一主机中选取至少一个迁出虚拟机并迁出到第二主机;Step 230: When the virtual machine load data shows that the first host is an overloaded node, select at least one non-overloaded second host in the host group according to the virtual machine load data, and select at least one migrated virtual machine from the first host. host and migrate out to the second host;
步骤240:在虚拟机负载数据显示第一主机为非过载节点的情况下,接收主机群中至少一个第三主机迁入的迁入虚拟机并部署在第一主机。Step 240: In the case that the virtual machine load data shows that the first host is a non-overloaded node, receive a migrated virtual machine migrated from at least one third host in the host group and deploy it on the first host.
在本实施例中,控制器向主机群中各主机发送自主协商迁移虚拟机指令,触发各主机向主机群通告自身虚拟机负载数据,这样每个主机可以拿到主机群中各主机的所有虚拟机负载数据。In this embodiment, the controller sends an autonomous negotiation and migration virtual machine instruction to each host in the host group, triggering each host to announce its own virtual machine load data to the host group, so that each host can obtain all virtual machines of each host in the host group. machine load data.
在可选实施例中,参考图3,虚拟机迁移方法可以包括如下步骤:In an optional embodiment, referring to FIG. 3 , the virtual machine migration method may include the following steps:
步骤310:收集主机群中各主机的虚拟机负载数据;Step 310: Collect virtual machine load data of each host in the host group;
步骤320:确定状态阈值;Step 320: determine a state threshold;
步骤330:根据主机群中各主机的虚拟机负载数据与状态阈值之间的比较结果,确定主机群中各主机的负载状态,负载状态为过载或非过载;Step 330: According to the comparison result between the virtual machine load data of each host in the host group and the state threshold, determine the load state of each host in the host group, and the load state is overload or non-overload;
步骤340:在虚拟机负载数据显示第一主机为过载节点的情况下,根据虚拟机负载数据在主机群中选取未过载的至少一个第二主机,并在第一主机中选取至少一个迁出虚拟机并迁出到第二主机;Step 340: In the case where the virtual machine load data shows that the first host is an overloaded node, select at least one second host that is not overloaded in the host group according to the virtual machine load data, and select at least one migrated virtual machine from the first host. host and migrate out to the second host;
步骤350:在虚拟机负载数据显示第一主机为非过载节点的情况下,接收主机群中至少一个第三主机迁入的迁入虚拟机并部署在第一主机。Step 350: In the case that the virtual machine load data shows that the first host is a non-overloaded node, receive a migrated virtual machine migrated from at least one third host in the host group and deploy it on the first host.
在本实施例中,各主机的虚拟机负载状态可以根据虚拟机负载数据与状态阈值的比较结果来确定。In this embodiment, the virtual machine load state of each host may be determined according to a comparison result between the virtual machine load data and the state threshold.
其中,状态阈值可以是预先设定的。The state threshold may be preset.
在可选实施例中,参照图4,虚拟机迁移方法可以包括如下步骤:In an optional embodiment, referring to FIG. 4 , the virtual machine migration method may include the following steps:
步骤410:收集主机群中各主机的虚拟机负载数据;Step 410: Collect virtual machine load data of each host in the host group;
步骤420:确定状态阈值;Step 420: determine a state threshold;
步骤430:根据主机群中各主机的虚拟机负载数据与状态阈值之间的比较结果,确定主机群中各主机的负载状态,负载状态为过载或非过载;Step 430: According to the comparison result between the virtual machine load data of each host in the host group and the state threshold, determine the load state of each host in the host group, and the load state is overload or non-overload;
步骤440:在根据主机群中各主机的负载状态确定主机群中的过载节点占比超出第一目标区间的上限值的情况下,在主机群中开启新的主机;Step 440: in the case that the proportion of overloaded nodes in the host group exceeds the upper limit value of the first target interval according to the load status of each host in the host group, start a new host in the host group;
步骤450:在虚拟机负载数据显示第一主机为过载节点的情况下,根据虚拟机负载数据在主机群中选取未过载的至少一个第二主机,并在第一主机中选取至少一个迁出虚拟机并迁出到第二主机;Step 450: When the virtual machine load data shows that the first host is an overloaded node, select at least one second host that is not overloaded in the host group according to the virtual machine load data, and select at least one migrated virtual machine from the first host. host and migrate out to the second host;
步骤460:在虚拟机负载数据显示第一主机为非过载节点的情况下,接收主机群中至少一个第三主机迁入的迁入虚拟机并部署在第一主机。Step 460: In the case that the virtual machine load data shows that the first host is a non-overloaded node, receive a migrated virtual machine migrated from at least one third host in the host group and deploy it on the first host.
在本实施例中,在主机群中开启新的主机,来迁入虚拟机,以释放高位运行的过载节点内的虚拟机负载。In this embodiment, a new host is started in the host group to migrate the virtual machine in, so as to release the load of the virtual machine in the overloaded node running at a high position.
在可选实施例中,参照图5,虚拟机迁移方法可以包括如下步骤:In an optional embodiment, referring to FIG. 5 , the virtual machine migration method may include the following steps:
步骤510:收集主机群中各主机的虚拟机负载数据;Step 510: Collect virtual machine load data of each host in the host group;
步骤520:确定状态阈值;Step 520: determine a state threshold;
步骤530:根据主机群中各主机的虚拟机负载数据与状态阈值之间的比较结果,确定主机群中各主机的负载状态,负载状态为过载或非过载;Step 530: According to the comparison result between the virtual machine load data of each host in the host group and the state threshold, determine the load state of each host in the host group, and the load state is overload or non-overload;
步骤540:在根据主机群中各主机的负载状态确定主机群中的非过载节点占比超出第二目标区间的上限值的情况下,关闭主机群中的空闲主机;Step 540: In the case where it is determined according to the load status of each host in the host group that the proportion of non-overloaded nodes in the host group exceeds the upper limit of the second target interval, shut down the idle hosts in the host group;
步骤550:在虚拟机负载数据显示第一主机为过载节点的情况下,根据虚拟机负载数据在主机群中选取未过载的至少一个第二主机,并在第一主机中选取至少一个迁出虚拟机并迁出到第二主机;Step 550: In the case where the virtual machine load data shows that the first host is an overloaded node, select at least one second host that is not overloaded in the host group according to the virtual machine load data, and select at least one migrated virtual machine from the first host. host and migrate out to the second host;
步骤560:在虚拟机负载数据显示第一主机为非过载节点的情况下,接收主机群中至少一个第三主机迁入的迁入虚拟机并部署在第一主机。Step 560: In the case that the virtual machine load data shows that the first host is a non-overloaded node, receive a migrated virtual machine migrated from at least one third host in the host group and deploy it on the first host.
这样,通过关闭主机群中的空闲主机来释放活跃主机,以节约系统资源。In this way, active hosts are released by shutting down idle hosts in the host group to save system resources.
在可选实施例中,参考图6,虚拟机迁移方法包括如下步骤:In an optional embodiment, referring to FIG. 6 , the virtual machine migration method includes the following steps:
步骤610:根据主机群中各主机的虚拟机负载数据计算主机群的全局负载度;Step 610: Calculate the global load degree of the host group according to the virtual machine load data of each host in the host group;
步骤620:判断全局负载度是否超过负载度阈值;Step 620: Determine whether the global load degree exceeds the load degree threshold;
步骤630:在根据主机群中各主机的虚拟机负载数据确定主机群的全局负载度超过负载度阈值的情况下,根据主机群中各主机的负载状态判断主机群中的过载节点占比超出第一目标区间的上限值;Step 630: In the case where it is determined according to the virtual machine load data of each host in the host group that the global load degree of the host group exceeds the load degree threshold, it is determined according to the load status of each host in the host group that the proportion of overloaded nodes in the host group exceeds the th an upper limit of the target interval;
步骤640:在根据主机群中各主机的虚拟机负载数据确定主机群的全局负载度超过负载度阈值、且根据主机群中各主机的负载状态确定主机群中的过载节点占比超出第一目标区间的上限值的情况下,在主机群中开启新的主机;Step 640: Determine according to the virtual machine load data of each host in the host group that the global load degree of the host group exceeds the load degree threshold, and determine according to the load status of each host in the host group that the proportion of overloaded nodes in the host group exceeds the first target In the case of the upper limit of the interval, start a new host in the host group;
步骤650:在根据主机群中各主机的虚拟机负载数据确定主机群的全局负载度未超过负载度阈值的情况下,根据主机群中各主机的负载状态判断主机群中的非过载节点占比超出第二目标区间的上限值;Step 650: In the case where it is determined according to the virtual machine load data of each host in the host group that the global load degree of the host group does not exceed the load degree threshold, determine the proportion of non-overloaded nodes in the host group according to the load status of each host in the host group Exceeds the upper limit of the second target interval;
步骤660:在根据主机群中各主机的虚拟机负载数据确定主机群的全局负载度未超过负载度阈值、且根据主机群中各主机的负载状态确定主机群中的非过载节点占比超出第二目标区间的上限值的情况下,关闭主机群中的空闲主机。Step 660: According to the virtual machine load data of each host in the host group, it is determined that the global load degree of the host group does not exceed the load degree threshold, and the proportion of non-overloaded nodes in the host group is determined according to the load status of each host in the host group. In the case of the upper limit value of the target interval, the idle host in the host group is shut down.
在这种情况下,更精确地作出开启新主机和关闭空闲主机的决策。In this case, more precise decisions are made to power up new hosts and shut down idle hosts.
在可选实施例中,参考图7,与图6相比,本方法还包括:In an optional embodiment, referring to FIG. 7 , compared with FIG. 6 , the method further includes:
步骤710:在根据主机群中各主机的虚拟机负载数据确定主机群的全局负载度超过负载度阈值、且根据主机群中各主机的负载状态确定主机群中的过载节点占比未超出第一目标区间的上限值的情况下,根据主机群中的过载节点占比更新第一目标区间的上限值;Step 710: According to the virtual machine load data of each host in the host group, it is determined that the global load degree of the host group exceeds the load degree threshold, and according to the load status of each host in the host group, it is determined that the proportion of overloaded nodes in the host group does not exceed the first. In the case of the upper limit value of the target interval, update the upper limit value of the first target interval according to the proportion of overloaded nodes in the host group;
步骤720:在根据主机群中各主机的虚拟机负载数据确定主机群的全局负载度未超过负载度阈值、且根据主机群中各主机的负载状态确定主机群中的非过载节点占比未超出第二目标区间的上限值的情况下,根据主机群中的非过载节点占比更新第二目标区间的上限值。Step 720: According to the virtual machine load data of each host in the host group, it is determined that the global load degree of the host group does not exceed the load degree threshold, and according to the load status of each host in the host group, it is determined that the proportion of non-overloaded nodes in the host group does not exceed the load degree threshold. In the case of the upper limit value of the second target interval, the upper limit value of the second target interval is updated according to the proportion of non-overloaded nodes in the host group.
这样,当前过载节点占比或非负载节点占比反映这段时间内主机群负载状态,使用当前过载节点占比作为第一目标区间的上限值、或使用当前非过载节点占比作为第二目标区间的上限值,该更新的第一目标区间的上限值可以应用在下一次新主机开启决策过程、或更新的第二目标区间的上限值可以应用于下一次空闲主机关闭决策过程。本实施例实现对过载节点的虚拟机动态调整,从而优化节点资源配置并改善负载均衡。In this way, the current proportion of overloaded nodes or the proportion of non-loaded nodes reflects the load status of the host group during this period, and the current proportion of overloaded nodes is used as the upper limit of the first target interval, or the current proportion of non-overloaded nodes is used as the second The upper limit value of the target interval, the updated upper limit value of the first target interval can be applied to the next decision process of turning on a new host, or the updated upper limit value of the second target interval can be applied to the next decision process of shutting down an idle host. This embodiment implements dynamic adjustment of the virtual machine of an overloaded node, thereby optimizing node resource configuration and improving load balancing.
在本发明可选实施例中,参照图8,虚拟机迁移方法包括如下步骤:In an optional embodiment of the present invention, referring to FIG. 8 , the virtual machine migration method includes the following steps:
步骤810:收集主机群中各主机的虚拟机负载数据;Step 810: Collect virtual machine load data of each host in the host group;
步骤820:在虚拟机负载数据显示第一主机为过载节点的情况下,根据虚拟机负载数据获取第一主机中过载的负载指标类型;Step 820: In the case where the virtual machine load data shows that the first host is an overloaded node, obtain the overloaded load indicator type in the first host according to the virtual machine load data;
步骤830:在主机群中被认定为非过载节点的候选主机中选取与负载指标类型匹配的第二主机,并在第一主机中选取至少一个迁出虚拟机并迁出到第二主机。Step 830: Select a second host matching the load index type from the candidate hosts identified as non-overloaded nodes in the host group, and select at least one migrated virtual machine from the first host and migrate it out to the second host.
每个虚拟机所提供服务不同,具体可以包括中央处理器服务、网络传输服务或内存服务,对应的负载指标类型包括CPU过载、网络过载或内存过载。此为举例,不构成对负载指标类型范围的限定。The services provided by each virtual machine are different, and may specifically include central processing unit services, network transmission services, or memory services. The corresponding load indicator types include CPU overload, network overload, or memory overload. This is an example, and does not constitute a limitation on the range of load index types.
在本实施例中,负载指标类型与主机匹配是指,该负载指标类型所对应虚拟机对主机具有较强的资源依赖度,从而确保迁出的虚拟机能够在最终的第二主机上正常运行,而不会对该第二主机造成过高负载或产生第二主机不能为迁入虚拟机提供运行所需资源的问题,提升虚拟机迁移成功率。In this embodiment, the matching of the load indicator type with the host means that the virtual machine corresponding to the load indicator type has a strong resource dependence on the host, so as to ensure that the migrated virtual machine can run normally on the final second host , without causing excessive load on the second host or causing the problem that the second host cannot provide resources required for running the migrated virtual machine, thereby improving the success rate of virtual machine migration.
在可选实施例中,参考图9,虚拟机迁移方法可以包括如下步骤:In an optional embodiment, referring to FIG. 9 , the virtual machine migration method may include the following steps:
步骤910:收集主机群中各主机的虚拟机负载数据;Step 910: Collect virtual machine load data of each host in the host group;
步骤920:在虚拟机负载数据显示第一主机为过载节点的情况下,根据虚拟机负载数据获取第一主机中过载的负载指标类型;Step 920: In the case where the virtual machine load data shows that the first host is an overloaded node, obtain the overloaded load indicator type in the first host according to the virtual machine load data;
步骤930:根据各主机的虚拟机负载数据在主机群中选取非过载节点,得到候选主机列表;Step 930: Select a non-overloaded node in the host group according to the virtual machine load data of each host to obtain a candidate host list;
步骤940:对候选主机列表按照候选主机与负载指标类型之间的匹配度进行递减排序;Step 940: Describing the candidate host list according to the degree of matching between the candidate hosts and the load indicator type;
步骤950:在递减排序得到的候选主机列表中根据各候选主机中虚拟机负载数据选取第二主机,并在第一主机中选取至少一个迁出虚拟机并迁出到第二主机。Step 950: Select a second host from the candidate host list obtained by descending sorting according to the virtual machine load data in each candidate host, and select at least one migrated virtual machine from the first host and migrate it out to the second host.
在本实施例中,主机可以在本地维护主机列表,主机列表可以记载各主机的虚拟机负载数据及负载指标类型,从而可以快速识别并选取能够接收迁入虚拟机的主机。In this embodiment, the host can maintain a host list locally, and the host list can record the virtual machine load data and load index type of each host, so that the host that can receive the migrated virtual machine can be quickly identified and selected.
在可选实施例中,参考图10,虚拟机迁移方法可以包括如下步骤:In an optional embodiment, referring to FIG. 10 , the virtual machine migration method may include the following steps:
步骤1010:收集主机群中各主机的虚拟机负载数据;Step 1010: Collect virtual machine load data of each host in the host group;
步骤1020:在虚拟机负载数据显示第一主机为过载节点的情况下,根据虚拟机负载数据在主机群中选取未过载的至少一个第二主机,并在第一主机中选取至少一个迁出虚拟机并迁出到第二主机;Step 1020: When the virtual machine load data shows that the first host is an overloaded node, select at least one second host that is not overloaded in the host group according to the virtual machine load data, and select at least one migrated virtual machine from the first host. host and migrate out to the second host;
步骤1030:在虚拟机负载数据显示第一主机为非过载节点的情况下,接收主机群中至少一个第三主机迁入的迁入虚拟机并部署在第一主机;Step 1030: In the case that the virtual machine load data shows that the first host is a non-overloaded node, receive a migrated virtual machine migrated from at least one third host in the host group and deploy it on the first host;
步骤1040:根据自身虚拟机迁入迁出结果,更新自身虚拟机负载数据并将更新的虚拟机负载数据通告给主机群。Step 1040: Update the load data of the own virtual machine and notify the host group of the updated load data of the virtual machine according to the migration result of the own virtual machine.
使用本实施例,在自身主机存在虚拟机迁入或迁出的情况下,通过向主机群即时通告更新的虚拟机负载数据,主机群各主机都能维护最新的虚拟机负载数据,从而能够及时根据自身需求确定虚拟机迁移策略。Using this embodiment, in the case that the virtual machine migrates in or out of its own host, by notifying the updated virtual machine load data to the host group in real time, each host in the host group can maintain the latest virtual machine load data, so that it can be timely. Determine the virtual machine migration strategy based on your own needs.
在可选实施例中,参考图11,虚拟机迁移方法可以包括如下步骤:In an optional embodiment, referring to FIG. 11 , the virtual machine migration method may include the following steps:
步骤1110:控制器判断自身工作负载在目标时间段内是否过载;Step 1110: the controller determines whether its own workload is overloaded within the target time period;
若是则执行步骤1120:各主机收集主机群中各主机的虚拟机负载数据,计算监测时间内全局负载度与高低负载主机占比,其中高负载主机对应上文过载节点,低负载主机对应上文非过载节点;If so, go to step 1120: each host collects the virtual machine load data of each host in the host group, and calculates the global load degree and the proportion of high and low load hosts within the monitoring time, wherein the high load host corresponds to the above overloaded node, and the low load host corresponds to the above non-overloaded nodes;
步骤1130:对节点负载度超过高位阈值的负载指标计算其评估值,若评估值达到过载要求,则判断此主机为指标类型过载(其过载指标类型分为CPU过载型、网络过载型、内存过载型,在此不做限定);Step 1130: Calculate the evaluation value of the load index whose load degree of the node exceeds the high threshold. If the evaluation value meets the overload requirement, it is determined that the host is overloaded by the index type (the overload index types are divided into CPU overload type, network overload type, and memory overload type. type, which is not limited here);
步骤1140:对节点负载度低于低位阈值的节点计算其评估值,若评估值达到轻载要求,则判断此节点为轻载节点,加入低负载主机列表;Step 1140: Calculate the evaluation value of the node whose load degree of the node is lower than the low threshold, and if the evaluation value meets the light load requirement, determine that the node is a light load node, and add it to the low load host list;
步骤1150:将低负载节点列表按负载度升序,结合全局负载度,判断是否在负载均衡范围中,若全局负载度小于合理范围的最低值,计算得到待迁移操作的非负载节点集合;Step 1150: Arrange the list of low-load nodes in ascending order of load degree, and combine the global load degree to determine whether it is in the load balancing range, and if the global load degree is less than the lowest value of the reasonable range, calculate and obtain the set of non-load nodes to be migrated;
步骤1160:若全局负载度大于合理范围的最高点,则启用一个主机。Step 1160: If the global load level is greater than the highest point in a reasonable range, enable a host.
其中, in,
节点负载度=[Cpu|Mem|Band]uesd*Li Node load degree = [Cpu|Mem|Band] uesd *L i
其中[Cpu|Mem|Band]used为CPU、内存、带宽的利用率,Li为对应的权重。Where [Cpu|Mem|Band]used is the utilization rate of CPU, memory, and bandwidth, and Li is the corresponding weight.
在可选实施例中,参考图12,虚拟机迁移方法中所包含的待迁移虚拟机决策包括如下步骤:In an optional embodiment, referring to FIG. 12 , the decision of the virtual machine to be migrated included in the virtual machine migration method includes the following steps:
步骤1210:根据节点评估得到的高负载节点列表,获取高负载节点信息,具体节点评估策略参考图11所示实施例,在此不再详述;Step 1210: Acquire high-load node information according to the high-load node list obtained by the node evaluation. For the specific node evaluation strategy, refer to the embodiment shown in FIG. 11, which will not be described in detail here;
步骤1220:根据当前节点过载类型,计算单次迁移下可使得该节点解除过载情况的待筛选虚拟机集合;Step 1220: According to the current node overload type, calculate the set of virtual machines to be screened that can relieve the overload condition of the node under a single migration;
步骤1230:计算待筛选虚拟机集合中各虚拟机的资源依赖度,并按递减排序;Step 1230: Calculate the resource dependency of each virtual machine in the set of virtual machines to be screened, and sort them in descending order;
步骤1240:计算各虚拟机的CPU、内存、带宽比;Step 1240: Calculate the CPU, memory, and bandwidth ratio of each virtual machine;
步骤1250:选择虚拟机作为待迁移虚拟机并计算其资源占比,加入待迁移虚拟机列表。Step 1250: Select a virtual machine as the virtual machine to be migrated, calculate its resource ratio, and add it to the list of virtual machines to be migrated.
其中,资源依赖度: Among them, the resource dependency:
Vi为虚拟机在i时刻的某指标资源利用率,Ni为节点在i时刻的该指标资源利用率,Rtype大则表示该虚拟机与此节点的该指标类型资源的依赖越高。Vi is the resource utilization of a certain index of the virtual machine at time i, Ni is the resource utilization of the index of the node at time i, and the larger the R type , the higher the dependence of the virtual machine on the resource of this index type of the node.
在可选实施例中,参考图13,虚拟机迁移方法中所包含的目标节点决策包括如下步骤:In an optional embodiment, referring to FIG. 13 , the target node decision included in the virtual machine migration method includes the following steps:
步骤1310:根据节点评估得到的适载节点列表,由负载度递增排序,得到待选节点列表,具体节点评估策略参考图11所示实施例,在此不再详述;Step 1310 : According to the load-appropriate node list obtained by the node evaluation, sort by the load degree in ascending order to obtain the node list to be selected. For the specific node evaluation strategy, refer to the embodiment shown in FIG. 11 , which will not be described in detail here;
步骤1320:计算待选节点列表中虚拟机与节点的匹配度,并按递减排序;Step 1320: Calculate the matching degree between the virtual machine and the node in the candidate node list, and sort them in descending order;
步骤1330:按照匹配度顺序分别计算迁移代价;Step 1330: Calculate the migration cost according to the order of matching degree;
步骤1340:选取匹配度高且迁移代价最小的节点为目的节点。Step 1340: Select the node with high matching degree and the smallest migration cost as the destination node.
图14为本发明实施例提供给的一种虚拟机迁移系统,该系统用于主机群中的第一主机,包括:FIG. 14 is a virtual machine migration system provided by an embodiment of the present invention. The system is used for a first host in a host group, including:
收集模块1410,收集主机群中各主机的虚拟机负载数据;The
迁出模块1420,在虚拟机负载数据显示第一主机为过载节点的情况下,根据虚拟机负载数据在主机群中选取未过载的至少一个第二主机,并在第一主机中选取至少一个迁出虚拟机并迁出到第二主机;The
迁入模块1430,在虚拟机负载数据显示第一主机为非过载节点的情况下,接收主机群中至少一个第三主机迁入的迁入虚拟机并部署在第一主机。The
利用本发明实施例提供的虚拟机迁移系统,允许任意一个主机收集主机群的虚拟机负载数据,从而能够在自身主机为过载节点的情况下,选择合适的第二主机来迁出虚拟机,或在自身主机为非过载节点的情况下,能够接收并部署第三主机迁入的虚拟机。这能够解决现有技术利用控制器集中调度迁移虚拟机而带来的调度过载问题,从而避免虚拟机迁移等待而导致不可用问题,确保虚拟机可以在主机群内更高效迁移,提升虚拟机资源利用率。Using the virtual machine migration system provided by the embodiment of the present invention allows any host to collect the virtual machine load data of the host group, so that when its own host is an overloaded node, it can select a suitable second host to migrate the virtual machine out, or When the own host is a non-overloaded node, the virtual machine migrated by the third host can be received and deployed. This can solve the scheduling overload problem caused by using the controller to centrally schedule and migrate virtual machines in the prior art, thereby avoiding the problem of unavailability caused by waiting for virtual machine migration, ensuring that virtual machines can be migrated more efficiently within the host group, and improving virtual machine resources. utilization.
上述模块的实现原理参见虚拟机迁移方法中的相关介绍,此处不再赘述。For the implementation principle of the above modules, please refer to the relevant introduction in the virtual machine migration method, which will not be repeated here.
在可选实施例中,迁出模块1420具体用于:In an optional embodiment, the
在虚拟机负载数据显示第一主机为过载节点的情况下,根据虚拟机负载数据获取第一主机中过载的负载指标类型;When the virtual machine load data shows that the first host is an overloaded node, obtain the overloaded load indicator type in the first host according to the virtual machine load data;
在主机群中被认定为非过载节点的候选主机中选取与负载指标类型匹配的第二主机。A second host that matches the load index type is selected from the candidate hosts that are identified as non-overloaded nodes in the host group.
在可选实施例中,与图14相比,图15所示虚拟机迁移系统还包括:In an optional embodiment, compared with FIG. 14 , the virtual machine migration system shown in FIG. 15 further includes:
选取模块1510,在主机群中被认定为非过载节点的候选主机中选取与负载指标类型匹配的第二主机之前,根据各主机的虚拟机负载数据在主机群中选取非过载节点,得到候选主机列表;The selecting
排序模块1520,对候选主机列表按照候选主机与负载指标类型之间的匹配度进行递减排序;
迁出模块1530具体用于:The check-out
在递减排序得到的候选主机列表中根据各候选主机中虚拟机负载数据选取第二主机。The second host is selected according to the virtual machine load data in each candidate host in the candidate host list obtained by descending order.
在可选实施例中,与图14相比,图16所示虚拟机迁移系统还包括:In an optional embodiment, compared with FIG. 14 , the virtual machine migration system shown in FIG. 16 further includes:
接收模块1610,在收集主机群中各主机的虚拟机负载数据之前,接收控制器发送的自主协商迁移虚拟机指令;The
收集模块1620具体用于:The
基于自主协商迁移虚拟机指令向主机群通告自身的虚拟机负载数据,并接收各主机的虚拟机负载数据。Based on the virtual machine migration instruction through autonomous negotiation, it notifies the host group of its own virtual machine load data, and receives the virtual machine load data of each host.
在可选实施例中,与图14相比,图17所示虚拟机迁移系统还包括:In an optional embodiment, compared with FIG. 14 , the virtual machine migration system shown in FIG. 17 further includes:
状态阈值确定模块1710,确定状态阈值;a state
负载状态确定模块1720,根据主机群中各主机的虚拟机负载数据与状态阈值之间的比较结果,确定主机群中各主机的负载状态,负载状态为过载或非过载。The load
在可选实施例中,与图14相比,图18所示虚拟机迁移系统还包括:In an optional embodiment, compared with FIG. 14 , the virtual machine migration system shown in FIG. 18 further includes:
主机开启模块1810,在根据主机群中各主机的负载状态确定主机群中的过载节点占比超出第一目标区间的上限值的情况下,在主机群中开启新的主机。The
在可选实施例中,主机开启模块1810具体用于:In an optional embodiment, the
在根据主机群中各主机的虚拟机负载数据确定主机群的全局负载度超过负载度阈值、且根据主机群中各主机的负载状态确定主机群中的过载节点占比超出第一目标区间的上限值的情况下,在主机群中开启新的主机。It is determined according to the virtual machine load data of each host in the host group that the global load degree of the host group exceeds the load degree threshold, and it is determined according to the load status of each host in the host group that the proportion of overloaded nodes in the host group exceeds the first target interval. In the case of the limit, start a new host in the host group.
在可选实施例中,与图18相比,图19所示虚拟机迁移系统还包括:In an optional embodiment, compared with FIG. 18 , the virtual machine migration system shown in FIG. 19 further includes:
第一更新模块1910,在根据主机群中各主机的虚拟机负载数据确定主机群的全局负载度超过负载度阈值、且根据主机群中各主机的负载状态确定主机群中的过载节点占比未超出第一目标区间的上限值的情况下,根据主机群中的过载节点占比更新第一目标区间的上限值。The
在可选实施例中,与图14相比,图20所示虚拟机迁移系统还包括:In an optional embodiment, compared with FIG. 14 , the virtual machine migration system shown in FIG. 20 further includes:
主机关闭模块2010,在根据主机群中各主机的负载状态确定主机群中的非过载节点占比超出第二目标区间的上限值的情况下,关闭主机群中的空闲主机。The
在可选实施例中,主机关闭模块2010具体用于:In an optional embodiment, the
在根据主机群中各主机的虚拟机负载数据确定主机群的全局负载度未超过负载度阈值、且根据主机群中各主机的负载状态确定主机群中的非过载节点占比超出第二目标区间的上限值的情况下,关闭主机群中的空闲主机。According to the virtual machine load data of each host in the host group, it is determined that the global load degree of the host group does not exceed the load degree threshold, and according to the load status of each host in the host group, it is determined that the proportion of non-overloaded nodes in the host group exceeds the second target interval In the case of the upper limit value, shut down idle hosts in the host group.
在可选实施例中,与图20相比,图21所示虚拟机迁移系统还包括:In an optional embodiment, compared with FIG. 20 , the virtual machine migration system shown in FIG. 21 further includes:
第二更新模块2110,在根据主机群中各主机的虚拟机负载数据确定主机群的全局负载度未超过负载度阈值、且根据主机群中各主机的负载状态确定主机群中的非过载节点占比未超出第二目标区间的上限值的情况下,根据主机群中的非过载节点占比更新第二目标区间的上限值。The
在可选实施例中,与图14相比,图22所示虚拟机迁移系统还包括:In an optional embodiment, compared with FIG. 14 , the virtual machine migration system shown in FIG. 22 further includes:
通告模块2210,根据自身虚拟机迁入迁出结果,更新自身虚拟机负载数据并将更新的虚拟机负载数据通告给主机群。The
图23是本发明的虚拟机迁移设备的结构示意图。下面参照图23来描述根据本发明的这种实施方式的电子设备2300。图23显示的电子设备2300仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 23 is a schematic structural diagram of a virtual machine migration device of the present invention. An
如图23所示,电子设备2300以通用计算设备的形式表现。电子设备2300的组件可以包括但不限于:至少一个处理单元2310、至少一个存储单元2320、连接不同平台组件(包括存储单元2320和处理单元2310)的总线2330、显示单元2340等。As shown in Figure 23,
其中,存储单元存储有程序代码,程序代码可以被处理单元2310执行,使得处理单元2310执行本说明书上述电子处方流转处理方法部分中描述的根据本发明各种示例性实施方式的步骤。例如,处理单元2310可以执行如图1-图13任一实施例中所示的步骤。The storage unit stores program codes, which can be executed by the
存储单元2320可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)2321和/或高速缓存存储单元2322,还可以进一步包括只读存储单元(ROM)2323。The
存储单元2320还可以包括具有一组(至少一个)程序模块2325的程序/实用工具2324,这样的程序模块2325包括但不限于:处理系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The
总线2330可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。The
电子设备2300也可以与一个或多个外部设备2350(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备2300交互的设备通信,和/或与使得该电子设备2300能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口2360进行。并且,电子设备2300还可以通过网络适配器2370与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。网络适配器2370可以通过总线2330与电子设备2300的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备2300使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储平台等。The
本发明实施例还提供一种计算机可读存储介质,用于存储程序,程序被执行时实现的虚拟机迁移方法的步骤。在一些可能的实施方式中,本发明的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当程序产品在终端设备上运行时,程序代码用于使终端设备执行本说明书上述虚拟机迁移方法部分中描述的根据本发明各种示例性实施方式的步骤。Embodiments of the present invention further provide a computer-readable storage medium for storing a program, and the steps of the virtual machine migration method implemented when the program is executed. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes program code, when the program product runs on a terminal device, the program code is used to cause the terminal device to execute the above-mentioned description in this specification. The steps according to various exemplary embodiments of the present invention are described in the virtual machine migration method section.
根据本发明的实施方式的用于实现上述方法的程序产品800,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本发明的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The program product 800 for implementing the above method according to an embodiment of the present invention can adopt a portable compact disc read only memory (CD-ROM) and include program codes, and can be executed on a terminal device such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
计算机可读存储介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读存储介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。A computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable storage medium can also be any readable medium other than a readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言的任意组合来编写用于执行本发明处理的程序代码,程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for carrying out the processes of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming Language - such as the "C" language or similar programming language. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).
综上,本发明的目的在于提供虚拟机迁移方法、系统、设备及存储介质,主机群中任一主机可以收集主机群中各主机的虚拟机负载数据,在虚拟机负载数据显示当前主机为过载节点的情况下,根据虚拟机负载数据在主机群中选取非过载的至少一个目标主机,并在当前主机中选取至少一个虚拟机到该目标主机,在虚拟机资源负载数据显示当前主机为非过载节点的情况下,接收其他主机迁入的虚拟机并部署在当前主机。这能够解决现有技术利用控制器集中调度迁移虚拟机而带来的调度过载问题,从而避免虚拟机迁移等待而导致不可用问题,确保虚拟机可以在主机群内更高效迁移,提升虚拟机资源利用率。To sum up, the purpose of the present invention is to provide a virtual machine migration method, system, device and storage medium, any host in the host group can collect the virtual machine load data of each host in the host group, and the virtual machine load data shows that the current host is overloaded In the case of a node, select at least one non-overloaded target host in the host group according to the virtual machine load data, and select at least one virtual machine from the current host to the target host, and the virtual machine resource load data shows that the current host is not overloaded. In the case of a node, receive virtual machines migrated from other hosts and deploy them on the current host. This can solve the scheduling overload problem caused by using the controller to centrally schedule and migrate virtual machines in the prior art, thereby avoiding the unavailability problem caused by waiting for virtual machine migration, ensuring that virtual machines can be migrated more efficiently within the host group, and improving virtual machine resources. utilization.
允许任意一个主机收集主机群的虚拟机负载数据,从而能够在自身主机为过载节点的情况下,选择合适的第二主机来迁出虚拟机,或在自身主机为非过载节点的情况下,能够接收并部署第三主机迁入的虚拟机。这能够解决现有技术利用控制器集中调度迁移虚拟机而带来的调度过载问题,从而避免虚拟机迁移等待而导致不可用问题,确保虚拟机可以在主机群内更高效迁移,提升虚拟机资源利用率。Allows any host to collect the virtual machine load data of the host group, so that when its own host is an overloaded node, it can select a suitable second host to migrate out the virtual machine, or when its own host is a non-overloaded node, it can Receive and deploy the virtual machine migrated from the third host. This can solve the scheduling overload problem caused by using the controller to centrally schedule and migrate virtual machines in the prior art, thereby avoiding the problem of unavailability caused by waiting for virtual machine migration, ensuring that virtual machines can be migrated more efficiently within the host group, and improving virtual machine resources. utilization.
以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be considered that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field of the present invention, without departing from the concept of the present invention, some simple deductions or substitutions can be made, which should be regarded as belonging to the protection scope of the present invention.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111300588.9A CN113886091A (en) | 2021-11-04 | 2021-11-04 | Virtual machine migration method, system, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111300588.9A CN113886091A (en) | 2021-11-04 | 2021-11-04 | Virtual machine migration method, system, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113886091A true CN113886091A (en) | 2022-01-04 |
Family
ID=79016933
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111300588.9A Pending CN113886091A (en) | 2021-11-04 | 2021-11-04 | Virtual machine migration method, system, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113886091A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023172596A1 (en) * | 2022-03-10 | 2023-09-14 | Google Llc | Compute load balancing in a distributed environment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105120008A (en) * | 2015-09-14 | 2015-12-02 | 南京邮电大学 | Layering-based distributed cloud computing centre load balancing method |
CN105740074A (en) * | 2016-01-26 | 2016-07-06 | 中标软件有限公司 | Cloud computing based virtual machine load balancing method |
CN109617826A (en) * | 2018-12-29 | 2019-04-12 | 南京航空航天大学 | A Storm Dynamic Load Balancing Method Based on Cuckoo Search |
-
2021
- 2021-11-04 CN CN202111300588.9A patent/CN113886091A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105120008A (en) * | 2015-09-14 | 2015-12-02 | 南京邮电大学 | Layering-based distributed cloud computing centre load balancing method |
CN105740074A (en) * | 2016-01-26 | 2016-07-06 | 中标软件有限公司 | Cloud computing based virtual machine load balancing method |
CN109617826A (en) * | 2018-12-29 | 2019-04-12 | 南京航空航天大学 | A Storm Dynamic Load Balancing Method Based on Cuckoo Search |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023172596A1 (en) * | 2022-03-10 | 2023-09-14 | Google Llc | Compute load balancing in a distributed environment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3847549B1 (en) | Minimizing impact of migrating virtual services | |
CN107196865B (en) | Load-aware adaptive threshold overload migration method | |
US8423646B2 (en) | Network-aware virtual machine migration in datacenters | |
CN113342477B (en) | Container group deployment method, device, equipment and storage medium | |
CN107273185B (en) | Load balancing control method based on virtual machine | |
JP5162579B2 (en) | Deploy virtual machines to hosts based on workload characteristics | |
US8341626B1 (en) | Migration of a virtual machine in response to regional environment effects | |
Wang et al. | Research on virtual machine consolidation strategy based on combined prediction and energy-aware in cloud computing platform | |
US20140149768A1 (en) | Virtualized application power budgeting | |
Xu et al. | Adaptive task scheduling strategy based on dynamic workload adjustment for heterogeneous Hadoop clusters | |
US20150286492A1 (en) | Optimized resource allocation and management in a virtualized computing environment | |
US11311722B2 (en) | Cross-platform workload processing | |
CN111381928B (en) | Virtual machine migration method, cloud computing management platform and storage medium | |
US20170161117A1 (en) | Apparatus and method to determine a service to be scaled out based on a predicted virtual-machine load and service importance | |
CN107977271B (en) | Load balancing method for data center integrated management system | |
Bok et al. | An efficient MapReduce scheduling scheme for processing large multimedia data | |
KR20200080458A (en) | Cloud multi-cluster apparatus | |
KR20100118357A (en) | Semantic computing-based dynamic job scheduling system for distributed processing | |
CN117785465A (en) | Resource scheduling method, device, equipment and storage medium | |
US9594596B2 (en) | Dynamically tuning server placement | |
CN115766737A (en) | Load balancing method and device and electronic equipment | |
CN113886091A (en) | Virtual machine migration method, system, equipment and storage medium | |
Rathore | A REVIEW TOWARDS: LOAD BALANCING TECHNIQUES. | |
CN118502956A (en) | Resource scheduling method, device, electronic device, storage medium and program product based on cloud storage system | |
CN104834565B (en) | A kind of system service dynamic deployment method and device |
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 |