Telecommunication cloud resource pool virtual machine migration method and device and storage medium

By obtaining and preprocessing resource parameters in the telecom cloud resource pool, and using the hybrid heuristic gray wolf algorithm to optimize virtual machine migration, the problem of high energy consumption and resource waste during virtual machine migration is solved, and resource utilization is improved and Reduction in energy consumption.

CN118796347APending Publication Date: 2024-10-18CHINA MOBILE GRP GUANGDONG CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410550411.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-06
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing technology fails to effectively consider energy consumption and resource waste during the migration process of virtual machines in the telecom cloud resource pool, resulting in problems of high energy consumption and low resource utilization.

Method used

By obtaining the underlying resource fragment parameter information of the cloud resource pool, preprocessing and establishing a constraint model, the hybrid heuristic gray wolf algorithm is used to integrate and migrate virtual machines, and the virtual machine distribution of the resource pool is optimized to maximize resource utilization and Reduction in energy consumption.

Benefits of technology

It realizes optimization of virtual machine distribution in resource pools, reduces resource waste, improves resource utilization, reduces energy consumption, and provides more efficient resource services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796347A_ABST
    Figure CN118796347A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of core networks, in particular to a telecommunication cloud resource pool virtual machine migration method, device and equipment and a computer storage medium. According to the method, parameter information of bottom-layer resource fragments of a cloud resource pool is preprocessed, key parameters are pre-evaluated according to preprocessed structured initial data, the key parameters serve as input, reasoning is conducted through a hybrid heuristic grey wolf algorithm, multiple constraints are considered, and the minimum activation number and migration number of a physical machine serve as double targets; outputting an optimal migration scheme; according to the method, the fragment management capability is planned through the network cloud resources, the fragment optimization space of the resource pool is predicted or evaluated, the virtual machines are concentrated to fewer computing nodes through virtual machine migration, the concentration ratio of the virtual machines is improved, the fragments of the resource pool are reduced, and more computing power is released, so that the purposes of saving resource waste, improving the utilization rate of the virtual machines of the resource pool and improving the resource utilization rate are achieved. Therefore, the conditions of high energy consumption and low energy efficiency are solved, and more accurate, comprehensive and excellent resource services are provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of core network technology, and in particular to a telecom cloud resource pool virtual machine migration method, device, equipment and computer storage medium. Background Art

[0002] As the cloudification technology of NFV core network elements gradually matures, the scale of telecom cloud resource pools is also facing huge growth; however, resource fragments are scattered throughout the resource pool, and how operators can provide users with reliable services while saving energy as much as possible is a huge challenge. Virtual machine defragmentation is the key to improving resource pool utilization and reducing energy consumption. It can migrate virtual machines on some physical machines to other activated physical machines.

[0003] The challenges faced by virtual machine defragmentation in actual practice are summarized as follows: Multiple resource constraints. The virtual machine defragmentation problem considers not only a single resource (such as CPU or memory) or a combination of them, but also other resources (such as storage volumes and network interfaces), other rules (such as affinity and anti-affinity of virtual machines, whether to migrate across HA). Multi-NUMA architecture. In order to reduce the competition for memory bandwidth, multi-NUMA architecture is widely used in multi-core systems and has been widely used in the industry. At the same time, mobile resource pools currently use NUMA architecture servers. In a NUMA system, it is common for a virtual machine to request multiple NUMA resources, which must be scheduled to different NUMA architectures on the same physical server. In this regard, we not only need to arrange a physical server to carry the request, but also need to take into account the allocation of independent NUMA resources, resulting in a larger scheduling scale.

[0004] In the scheme of the prior art, only the CPU usage, memory usage, CPU temperature and the status information of the operating parameters of the power supply are considered during the virtual machine migration process, and the success rate of virtual machine migration is improved by setting thresholds. Energy consumption costs and resource pool fragment concentration are not considered. In the 5G resource pool with massive devices, a large amount of resource waste is caused. Or only the host machine performance is simply considered whether it meets the migration needs of the virtual machine, and the affinity, concentration, migration times, etc. of the virtual machine in the migration process are not considered, which leads to the idle CPU of the computing node host in the ultra-large-scale resource pool, and the low utilization rate of the server causes huge waste of electricity. Or there is no solution for maximizing the utilization of virtual machine resources in the virtual resource pool and minimizing the number of virtual machine migration operations. The processing mechanism that determines whether to migrate tasks only based on the processing load value of the virtual machine of the physical server will cause resource fragments to be idle for a long time, and the accumulation will lead to resource waste and the reduction of idle machines. Due to the increasing number of physical servers and the continuous enhancement of processing power, more energy consumption and more resource waste are brought. Summary of the invention

[0005] Therefore, the technical problem to be solved by the present invention is to overcome the problems of high energy consumption and waste of resources in the prior art.

[0006] In order to solve the above technical problems, the present invention provides a telecom cloud resource pool virtual machine migration method, comprising:

[0007] Get the underlying resource fragmentation parameter information of the cloud resource pool;

[0008] Preprocessing the underlying resource fragment parameter information of the cloud resource pool;

[0009] Pre-evaluate key parameters based on pre-processed structured initial data;

[0010] Considering the objective functions under resource constraints, non-resource constraints and multiple cost indicators, a constraint model for virtual machine integration scenarios is established;

[0011] According to the key parameters and based on the constraint model, a hybrid heuristic grey wolf algorithm is used to integrate virtual machine fragments in a resource pool, obtain virtual machines that need to be arranged, and migrate them.

[0012] Preferably, the underlying resource fragmentation parameter information of the cloud resource pool includes high-availability cluster-host relationships, host CPU resource information, virtual machine data information, cloud resource pool resource data, and special virtual network function configurations that affect virtual machine migration, wherein the special virtual network functions include anti-affinity virtual network functions and virtual network functions that can be deployed across non-uniform memory access.

[0013] Preferably, the preprocessing includes data cleaning and data relationship construction, and the data relationship includes a high-availability cluster-host relationship model, a host CPU resource structure model, a virtual network function data model, and a virtual machine data model.

[0014] Preferably, the key parameters include the number of hosts required for actual deployment, the high-availability cluster concentration that can be achieved for actual deployment, the list of host balances used, and the virtual machine deployment status, and the virtual machine deployment status includes the host group, virtual machine information, CPU specifications, computing nodes estimated to be deployed by the virtual machine, virtual machine creation time, and virtual machine anti-affinity group.

[0015] Preferably, the resource constraints include uniform memory access resource constraints and non-uniform memory access resource constraints; the non-resource constraints include anti-affinity group constraints; and the cost indicators include the number of activated physical machines and the number of overall migrations.

[0016] Preferably, the step of integrating virtual machine fragments in the resource pool according to the key parameters and based on the constraint model using a hybrid heuristic grey wolf algorithm to obtain virtual machines that need to be arranged and migrate them includes:

[0017] Step a: Use the modified grey wolf algorithm to search for the destination physical machine of the virtual machine;

[0018] Step b: The candidate virtual machine of the jth physical machine is determined by the worst fit decreasing algorithm to determine the non-uniform memory access architecture where it should be placed;

[0019] Step c: re-arranging the virtual machines that failed to be arranged in step b using a multi-heuristic factor placement algorithm;

[0020] Step d: Repeat steps ac until the number of iterations reaches the upper limit or the objective function converges.

[0021] Preferably, the modified grey wolf algorithm comprises:

[0022] Convert the continuous solution updated by the Gray Wolf Optimizer into a discrete solution and convert it into binary;

[0023] The poor quality solutions are pruned and a physical machine is randomly released. Meanwhile, all virtual machines in the physical machine are arranged on other activated physical machines.

[0024] Preferably, the non-uniform memory access architecture for determining the placement of the candidate virtual machine of the j-th physical machine by a worst-fit decreasing algorithm includes:

[0025] Sort the candidate virtual machines of the jth physical machine in descending order according to the average request rate and set the priority;

[0026] Sort the non-uniform memory access architectures of the jth physical machine in descending order of remaining resource utilization and set priorities;

[0027] Popping the highest priority candidate virtual machine non-uniform memory access sub-request into the highest priority non-uniform memory access architecture;

[0028] Update the priority queue of the non-uniform memory access architecture, continue to place the non-uniform memory access sub-requests of the next priority candidate virtual machine, and repeat this step multiple times until the resources of the j-th physical machine are overloaded.

[0029] Preferably, the method of rearranging the virtual machines that failed to be arranged in step b by using a multi-heuristic factor placement algorithm comprises:

[0030] Traverse each activated physical machine and filter out the physical machines that have enough space to accommodate the virtual machines to be scheduled;

[0031] Determine a heuristic factor and impose a penalty on the migration of the virtual machine in the heuristic factor to form a hybrid heuristic indicator, wherein the heuristic factor includes an average ratio H^1 of the remaining resource utilization after the virtual machine is placed and H^1 and the remaining ratio after each resource is utilized;

[0032] The best destination physical machine for the virtual machine is selected by minimizing the hybrid heuristic metric.

[0033] The present invention also provides a telecom cloud resource pool virtual machine migration device, comprising:

[0034] The data acquisition module is used to obtain the parameter information of the underlying resource fragments of the cloud resource pool;

[0035] A preprocessing module, used for preprocessing parameter information of underlying resource fragments of the cloud resource pool;

[0036] A key parameter evaluation module, used for pre-evaluating key parameters based on the pre-processed structured initial data;

[0037] The model building module is used to consider the objective function under resource constraints, non-resource constraints and multiple cost indicators, and to establish the constraint model under the virtual machine integration scenario;

[0038] The migration module is used to integrate virtual machine fragments in the resource pool according to the key parameters and based on the constraint model using a hybrid heuristic grey wolf algorithm to obtain virtual machines that need to be arranged and migrate them.

[0039] The present invention also provides a telecom cloud resource pool virtual machine migration device, comprising:

[0040] Memory for storing computer programs;

[0041] The processor is used to implement the above-mentioned steps of the telecom cloud resource pool virtual machine migration method when executing the computer program.

[0042] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned telecommunications cloud resource pool virtual machine migration method are implemented.

[0043] The above technical solution of the present invention has the following advantages compared with the prior art:

[0044] The telecom cloud resource pool virtual machine migration method described in the present invention pre-processes the underlying resource fragmentation parameter information of the cloud resource pool, and pre-evaluates key parameters based on the pre-processed structured initial data, takes the key parameters as input, and uses a hybrid heuristic gray wolf algorithm to consider multiple constraints, and performs reasoning with the dual goals of minimizing the number of physical machine activations and the number of migrations, and outputs the optimal migration plan; the present invention predicts or evaluates the fragmentation optimization space of the resource pool through the network cloud resource planning fragmentation management capability, and through virtual machine migration, concentrates virtual machines to fewer computing nodes, improves virtual machine concentration, reduces resource pool fragmentation, and releases more computing power, so as to save resource waste and improve resource pool virtual machine utilization, thereby solving the problem of high energy consumption and low energy efficiency, and providing more accurate, comprehensive and excellent resource services. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:

[0046] Figure 1 A flowchart of a telecom cloud resource pool virtual machine migration method provided by the present invention;

[0047] Figure 2 A virtual machine fragment integration flow chart provided by an embodiment of the present invention;

[0048] Figure 3 This is a flow chart of a virtual machine migration method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The core of the present invention is to provide a telecom cloud resource pool virtual machine migration method, device, equipment and computer storage medium, which effectively reduces resource waste.

[0050] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0051] Please refer to Figure 1 , Figure 1 This is a flowchart of a telecom cloud resource pool virtual machine migration method provided by the present invention; the specific operation steps are as follows:

[0052] S101: Obtaining parameter information of underlying resource fragments in a cloud resource pool;

[0053] S102: Preprocessing the underlying resource fragment parameter information of the cloud resource pool;

[0054] S103: pre-evaluating key parameters according to the pre-processed structured initial data;

[0055] S104: Considering resource constraints, non-resource constraints and objective functions under multiple cost indicators, a constraint model in a virtual machine integration scenario is established;

[0056] S105: According to the key parameters and based on the constraint model, the virtual machine fragments in the resource pool are integrated using the hybrid heuristic grey wolf algorithm to obtain the virtual machines that need to be arranged and migrate them.

[0057] Based on the above embodiments, this embodiment describes step S101 in detail:

[0058] The underlying resource fragmentation parameter information of the cloud resource pool includes high-availability cluster HA-host Host relationship, host CPU resource information, virtual machine VM data information, cloud resource pool resource data, and special virtual network function VNF configuration that affects virtual machine migration. The special virtual network function includes anti-affinity virtual network function and virtual network function that can be deployed across non-uniform memory access NUMA.

[0059] Based on the above embodiments, this embodiment describes step S102 in detail:

[0060] The preprocessing includes data cleaning and data relationship construction, and the data relationship includes a high-availability cluster-host relationship model, a host CPU resource structure model, a virtual network function data model, and a virtual machine data model.

[0061] Relationship between HA and Host:

[0062] HA name, Host name

[0063] Host CPU resource structure:

[0064] Host name, NUMA0 CPU, NUMA1 CPU, NUMA0 memory, NUMA1 memory, balance, CPU availability

[0065] 1) NUMACPU data structure:

[0066] USED, FREE, RESERVED, TOTAL

[0067] 2) Balance = (numa0_usedCpu+numa1_usedCpu) / (numa0_totalCpu+numa1_totalCpu)

[0068] 3) CPU availability

[0070] =(numa0_freeCpunuma1_freeCpu) / (numa0_totalCpu-numa0_reservedCpu+numa1_to talCpu-numa1_reservedCpu)

[0071] VNF data structure:

[0072] VNF name, VM name, cross-NUMA deployment, anti-affinity

[0073] VM data structure:

[0074] VM name, VNF name, HA name, Host name, CPU, cross-NUMA deployment, anti-affinity

[0075] 1) Cross-NUMA deployment: information on whether the network element can be deployed across NUMA is obtained from the request parameters, and whether it is a network element that can be deployed across NUMA is determined.

[0076] 2) Anti-affinity:

[0077] Affinity: put multiple things together as much as possible. Anti-affinity: separate multiple things as much as possible. Anti-affinity is mainly for high reliability considerations, try to disperse instances as much as possible, and when a node fails, the impact on the application is only one-Nth or only one instance.

[0078] Determine whether the virtual machine network element is anti-affinity or affinity. If the group attribute of the virtual machine is not null, the network element is anti-affinity; otherwise, it is affinity.

[0079] It can be deployed across NUMA, and anti-affinity is used to subsequently estimate whether it can be migrated and optimized.

[0080] Based on the above embodiments, this embodiment describes step S103 in detail:

[0081] The key parameters include the number of hosts required for actual deployment, the high-availability cluster concentration that can be achieved in actual deployment, the list of host balances used, and virtual machine deployment status. The virtual machine deployment status includes host groups, virtual machine information, CPU specifications, computing nodes where virtual machines are estimated to be deployed, virtual machine creation time, and virtual machine anti-affinity groups.

[0082] The HA concentration that can be achieved in actual deployment is calculated by estimating the number of hosts and the actual number of deployments:

[0083] HA concentration = (1-algorithm estimates of the number of hosts required for actual deployment / total number of hosts) * 100

[0084] Based on the above embodiments, this embodiment describes step S104 in detail:

[0085] To address the problem of virtual machine fragment integration in a resource pool, we propose a practical scenario model that meets this problem.

[0086] In actual production, we need to consider the resource types represented by the physical machine, which can be divided into two categories: uniform memory access Non-NUMA resources and non-uniform memory access NUMA resources. We consider NUMA resources similarly to simpler Non-NUMA resources. In the modeling process, we will try our best to describe various scenario expressions under the conditions of both resources, so as to advance the interpretation of actual application scenarios as much as possible.

[0087] Definition of virtual machine fragmentation optimization and integration model parameters and coefficients:

[0088] DC (Metadata Center)

[0089] PM (Physical Machine Set)

[0090] Physical Machine: Represents the physical machine PM, 1, 2, ... represent the number of physical machines

[0091] Virtual Machine: Represents the virtual machine VM, 1, 2, ... represent the number of virtual machine sets

[0092] Resources are divided into two categories:

[0093] Non-NUMA resources:

[0094] NUMA Resources:

[0095] The request vector of the VM's Non-NUMA resources:

[0096] The request vector of the VM's NUMA resources:

[0097] The capacity of the Non-NUMA resources of the physical machine PM:

[0098] The capacity of the NUMA resources of the physical machine PM:

[0099] Available NUMA architectures in physical machines PMj:

[0100] Virtual machine VMi's resource request for NUMA:

[0101] K i : The demand of the virtual machine VM for NUMA resources is decomposed into K i Number of subrequests

[0102] Decision variables (the resource request of the virtual machine VM for NUMA in the available NUMA structure of the physical machine):

[0103]

[0104] Describes the NUMA architecture available in the physical machine PMj and is scheduled to carry the virtual machine's request for NUMA sub-resources K i ,when Indicates that VMi is not scheduled to PMj

[0105] Scenario A: Resource constraints

[0106] The resources we consider include Non-NUMA resource and NUMA resource scenarios. In the case of resource constraints, there are capacity limitations.

[0107] (1) Non-numa resource constraints: Generally speaking, the total amount of each resource used cannot exceed the corresponding capacity of the PM. The constraint is:

[0108]

[0109]

[0110] Indicates that the virtual machine VMi can be placed on the physical machine PMj, and Indicates that PMj does not host VMi.

[0111] (2) NUMA resource constraints: Compared with non-NUMA resource constraints, NUMA resource constraints are more complicated because there are some complex rules for mapping between the NUMA architecture of PMs and the NUMA resource requests of VMs, as follows:

[0112] First, when deciding to place a VM on a PM, the NUMA architecture of the target PM must be The number must be greater than or equal to the VM NUMA subrequests. Therefore, we have:

[0113]

[0114] Where 1{·}=1 if the condition in the curly braces is true, otherwise 1{·}=0.

[0115] In addition, the VM's NUMA resource requests They should be placed on the same PM because the NUMA resources required by the VM are indivisible. Formally, we have:

[0116]

[0117] Moreover, the NUMA resource requests of VMs are independent and we need a different NUMA architecture to host each resource request. Therefore, the constraint can be expressed by formula (5), which must always be true.

[0118]

[0119] If the left side is false, it means we decide to schedule the VM to a specific PMj. Each resource request should be scheduled to a different NUMA architecture, and we need to ensure that K i NUMA resource request x i,j,k must be different, which tells us that the second term must be true. And if the left side is true, the right side is always false, because To satisfy this constraint, we just need to make sure that the combined expression is true.

[0120] Finally, like the Non-NUMA resource constraint, the total amount of NUMA resources used should be less than or equal to the capacity of the NUMA architecture. Therefore, we have a formula similar to equation (1):

[0121]

[0122] in, is the i-th NUMA sub-resource request for VMi, Used to indicate the first th The resource capacity of a NUMA architecture.

[0123] Scenario B: Non-resource constraints

[0124] Now let's look at constraints that do not depend on resource capacity and are applicable to scenarios where there is redundant resources.

[0125] In this scenario, the VM is unique, and we must ensure that a VM can only be scheduled to one PM. Formally, we have:

[0126]

[0127] In addition, some users, especially business users, tend to rent multiple VMs for their services. Therefore, it is better to arrange VMs belonging to the same user into different PMs to avoid the failure of the entire service due to the unexpected shutdown of PM. Considering this requirement, we establish an anti-affinity group constraint. Let a set

[0128] Represents the user ID in the DC, a collection is a set of virtual machines whose elements (i.e. VMs) belong to user a o Formally, the anti-affinity group constraint can be expressed as formula (8):

[0129]

[0130] Scenario C. Objective function under cost indicator

[0131] Cost indicator: The main goal of the resource fragmentation integration problem is to keep as few activated PMs as possible to save the cost of the data center. The overall measurement and scheduling direction is cost. Therefore, our first indicator is about the number of activated PMs, which can be expressed as follows:

[0132]

[0133] where Y j ∈{0,1} indicates whether PMj is activated, which is determined by x i,j,k calculate:

[0134]

[0135] In addition, VM migration requires a copy of all information from the source PM to the target PM, such as the state of registers and memory, which incurs additional energy and bandwidth costs. All of these costs are positively correlated with the number of migrations. Therefore, for simplicity, we use the number of migrations as our second evaluation

[0136]

[0137] in, is the prior knowledge, representing the mapping between VM and PM before integration, represents the final deployment of the integrated VM, calculated by formula (2).

[0138] Objective VMC Formulation: Based on the above discussion, we will now formally introduce our VMC problem as a single-objective integer nonlinear programming problem (INLP) as follows:

[0139]

[0140] st(1)-(8),(10)

[0141] Where η1 and η2 represent the weights of the cost metrics Mp and Mm, respectively.

[0142] Our goal is to minimize the combination of the number of activated PMs Mp and the number of overall migrations Mm, however, it is impossible to optimize both indicators at the same time. When a PM is released, the VMs on the PM must be migrated to other PMs, which inevitably leads to an increase in the number of migrations. In fact, η1 and η2 require operators to adjust according to their preferences. At the same time, the VMC problem under multi-NUMA architecture involves two scheduling-level tasks (physical machine level and NUMA architecture level), which brings obstacles to our scheduling. Specifically, we need to determine not only which target PM to place the VM on, but also which NUMA architecture to host the NUMA request corresponding to the VM.

[0143] Based on the evolution of the scenario, we finally came up with a constraint model for the virtual machine integration scenario. On this basis, we used the Grey Wolf Algorithm to place the virtual machines in the model, determined the number of physical machines based on the cost estimate and business redundancy of the resource pool, and further migrated the virtual machines to suitable nodes on this basis to achieve the purpose of integrating virtual machine fragments in the resource pool.

[0144] Based on the above embodiments, this embodiment describes step S105 in detail:

[0145] After the pre-assessment modeling, the estimated situation is implemented and the virtual machine fragmentation optimization and integration are carried out. The pre-assessment key parameters (coefficients) are brought into the virtual machine fragmentation optimization and integration model, and the optimal deployment result based on multiple objectives and constraints is obtained through the migration algorithm.

[0146] like Figure 2 In the above three scenarios, in order to solve the problem of virtual machine fragment integration in the resource pool, we used the hybrid heuristic gray wolf algorithm (HHGWA). The hybrid heuristic gray wolf algorithm modifies the gray wolf algorithm, uses the worst fit decreasing algorithm, and the multi-heuristic factor placement algorithm. It can be roughly divided into the following steps:

[0147] Step a: Use the modified grey wolf algorithm to search for the destination physical machine of the virtual machine;

[0148] The modified grey wolf algorithm comprises:

[0149] Convert the continuous solution updated by the Gray Wolf Optimizer to a discrete solution and convert it to binary:

[0150] The solution updated by the Grey Wolf Optimizer (GWO) is a continuous solution, which is not suitable for the VMC problem involving discrete integer variables. In order to apply GWO to this VMC problem, a modified Grey Wolf algorithm is proposed, which transforms the continuous solution into a discrete solution. Let the binary matrix The solution t represents the correspondence between VM and PM t h iterations, and is the best of the three solutions. According to GWO, solution It can be optimized by the following formula (21).

[0151]

[0152] in It is expressed as follows:

[0153]

[0154]

[0155]

[0156] Where D α ,D β ,D δ Calculated by formula (15).

[0157]

[0158]

[0159]

[0160] Furthermore, A and C are expressed as formula (16) and formula (17).

[0161] A=2a·R1-a (16)

[0162] C=2R2 (17)

[0163]

[0164] The matrices R1 and R2 are randomly generated in [0,1], and a decreases linearly from 2 to 0.

[0165] As mentioned above, the solution should be converted to binary to satisfy the integer constraint. We assume The larger the value (ie, the matrix ), which means that the algorithm believes that it is more likely to assign VMi to PMj. In order to round the solution to binary, we update the maximum value of each row in the matrix to 1, while the other elements in the matrix should be around 0. In this way, the modified solution no longer violates the integer constraint and the unique constraint in formula (7).

[0166] Prune the poor quality solutions and randomly release a physical machine. At the same time, arrange all virtual machines in the physical machine to other activated physical machines:

[0167] In order to avoid searching the entire solution space, we will need to prune away some inferior solutions. In other words, we will not schedule any VMs onto PMs that were turned off in the previous iteration, but rather onto those that are currently active. It is tempting to believe that the pruning procedure can help shrink the search space and thus speed up convergence. At the same time, in order to overcome the problem that GWO is relatively easy to fall into local optimality too early, we need to randomly release a PM and schedule all VMs in it onto other active PMs, which introduces additional randomness and exploration.

[0168] Step b: The candidate virtual machine of the jth physical machine is determined by the worst fit decreasing algorithm to determine the non-uniform memory access architecture where it should be placed;

[0169] The solution obtained by MGW only determines the PM where the virtual machine is located, but which target NUMA architecture to place NUMA resources has not been determined. In addition, MGW does not fully consider the constraints, and the solution obtained may still be infeasible (that is, the PM after scheduling is likely to be overloaded). Therefore, in this step, we should first select some virtual machines in the PM determined by MGW as candidates for the host, and then determine the target NUMA architecture without violating the relevant constraints:

[0170] Sort the candidate virtual machines of the jth physical machine in descending order according to the average request rate and set the priority:

[0171] Select candidate virtual machines. We sort an activated virtual machine. From the average request rate of each virtual machine, what is the average request rate of PM? Calculate it through formula (19) and formula (20):

[0172]

[0173]

[0174] in and Indicates types of requests, non-NUMA resources and their corresponding resource capacities in PMj. and express Kind of k t h seed request type non-NUMA resources and l t The corresponding resource capacity of the NUMA architecture h in PMj. Here, we tend to believe that virtual machines with high average request rates should be scheduled before virtual machines with low request rates. Based on this consideration, we define a priority queue To capture the ranking result, the candidate VMs in the previous position have higher request rates and have higher priorities in our scheduling process.

[0175] Sort the non-uniform memory access architectures of the jth physical machine in descending order of remaining resource utilization and set priorities:

[0176] Determine the target NUMA architecture. In order to balance the NUMA resource utilization of the PM, we sort the NUMA architectures of the PM in descending order of remaining resource utilization, which can be expressed as formula (21):

[0177]

[0178] The sorted results form the NUMA architecture The priority queue.

[0179] Pop the highest priority candidate VM NUMA subrequest into the highest priority NUMA fabric;

[0180] Update the priority queue of the non-uniform memory access architecture, continue to place the non-uniform memory access sub-requests of the next priority candidate virtual machine, and repeat this step multiple times until the resources of the j-th physical machine are overloaded:

[0181] if and are ready, we schedule VMs to the PM until it runs out of capacity. Specifically, we schedule K i The NUMA subrequests of the virtual machine are from Pop up to Top K in i The NUMA architecture is then sorted again before scheduling the next candidate VM. Finally, the VMs that cannot be scheduled are moved to the queue Wait to re-plan in the next step.

[0182] In this phase, we pre-schedule VMs with high average request rates and place NUMA subrequests in a relatively balanced manner, resulting in effective load balancing. In addition, most VMs that fail to be scheduled are captured, they require relatively few resources and can, therefore, be efficiently rescheduled using heuristic algorithms in the next phase.

[0183] Step c: re-arranging the virtual machines that failed to be arranged in step b using a multi-heuristic factor placement algorithm;

[0184] After WFD scheduling, most of the VMs to be scheduled are successfully scheduled and the placement does not violate the system constraints. However, the queue The VMs in have not been scheduled to a specific destination. Therefore, we propose a heuristic algorithm MHFP to recover VMs that have failed to schedule. Specifically, MHFP can be divided into two stages to solve this problem: filtering possible PMs and selecting the best destination:

[0185] Traverse each activated physical machine and filter out the physical machines that have enough space to accommodate the virtual machines to be scheduled:

[0186] In this phase, we iterate over each activated PM and filter out those PMs that have enough space to accommodate the VMs to be scheduled. Then, for each candidate PM, we use the worst-fit algorithm to schedule NUMA resources. The candidate PM and the intended NUMA architecture can be represented by a tuple (j, N j ), where j represents the index of a possible PM, N j Denote the corresponding target NUMA architectures, respectively. Finally, we use a queue Q host To capture all possible (j, N j ).

[0187] Determine a heuristic factor and impose a penalty on the migration of the virtual machine in the heuristic factor to form a hybrid heuristic indicator, wherein the heuristic factor includes an average ratio H^1 of the remaining resource utilization after placing the virtual machine and H^1 and the remaining ratio after each resource is utilized:

[0188] Possible queue Q host Containing some possible target PMs, we need to select an optimal destination to place the VM. In order to achieve the goal of reducing the cost indicators Mp and Mm, we propose a heuristic algorithm MHFP, which contains three heuristic factors.

[0189] Before formally introducing the heuristic factors, we first give some notations that constitute these factors. First, we put is defined as a vector of non-NUMA resources and the utilization of PMj before scheduling VM i, while represents the NUMA resource utilization before placement. Formally, after placing VM i, the non-NUMA resource utilization vector and NUMA resource utilization vector They can be expressed by formula (22) and formula (23) respectively.

[0190]

[0191]

[0192] according to and Heuristic Factor H 1 and H 2 The data of VMi and PMj can be calculated by the following formula.

[0193]

[0194]

[0195] Among them, H 1 represents the average ratio of remaining resource utilization after placing virtual machines, H 2 Capture a value, which is H 1 (Right now The average remaining rate of each resource) and the remaining rate of each resource after utilization. Place virtual machines. By minimizing H 1 In our heuristic factors, the migration of virtual machines is penalized by 3 Formally, we show that:

[0196] Among them, H 1 represents the average ratio of remaining resource utilization after VM placement, H 2 Capture and sum H 1 The square of the difference between The average remaining ratio of each resource type) and then the remaining ratio of each resource utilization are used to place virtual machines. By minimizing H 1 ,We tend to make resources ,maximize the utilization of the activated PMs and reduce the number of activated PMs. ,In addition, we tend to achieve load balancing among different types of ,resources by minimizing the H 2 .

[0197] Recall that VM migration is also counted as a performance indicator target. Therefore, we need to impose a penalty H on VM migration in the heuristic factor 3 Formally, we show that:

[0198]

[0199] Where C is a predefined constant.

[0200] Finally, we combine the heuristic factors to form a hybrid heuristic metric to select the best PM.

[0201]

[0202] Select the best destination physical machine for the VM by minimizing a hybrid heuristic metric:

[0203] MHFP can be achieved by choosing the minimum H i,j The PM is used as the destination, effectively making an ideal trade-off between MP and Mm.

[0204] Step d: Repeat steps ac until the number of iterations reaches the upper limit or the objective function converges.

[0205] At this point, based on the Grey Wolf Algorithm GWO, through algorithm analysis and processing, the virtual machine fragments in the resource pool are integrated and the virtual machines that need to be arranged are obtained.

[0206] like Figure 3 As shown, the situation of each virtual machine to be deployed after the output algorithm is processed, and the implementation plan for optimizing the migration of virtual machine fragments in the cloud resource pool is obtained. After the implementation plan for optimizing the migration of virtual machine fragments is evaluated and determined, the cloud resource pool virtual machine is migrated and deployed under the premise of ensuring the quality of application services. After the implementation is completed, the performance parameters of the cloud resource pool are continuously monitored, and attention is paid to and determining that the cloud resource pool virtual machine migration is normal after implementation. Attention is paid to whether the resource utilization rate of the physical server in the data center, the number of resource fragments of the resource pool server, the number of active physical machines, and the idle physical machines after the migration implementation achieve the effect of defragmenting the virtual machine under the resource pool, reducing resource fragments, and improving server resource utilization, thereby effectively reducing energy consumption.

[0207] Based on the above embodiments, this embodiment provides the actual effect achieved by using the proposed hybrid heuristic gray wolf algorithm method in the actual scenario of the manufacturer. By comparing the virtual machine fragmentation before and after using the optimization algorithm, it can be seen that the resource fragmentation rate is significantly reduced. After using the optimization algorithm, the overall average is reduced by 33.13% compared with before using the optimization algorithm.

[0208] The fragmentation rate of NFV-HA-HNGZ-07A-ER-01-SVIC02 dropped from 55.21% to 15.05%.

[0209] The fragmentation rate of NFV-HA-HNGZ-07A-ER-01-SVIC03 dropped from 50.14% to 19.54%.

[0210] The fragmentation rate of NFV-HA-HNGZ-07A-ER-01-SVIC06 dropped from 49.11% to 17.31%.

[0211] The fragmentation rate of NFV-HA-HNGZ-07A-ER-01-SVIC07 dropped from 45.40% to 20.05%.

[0212] The present invention provides a telecom cloud resource pool virtual machine migration method based on multi-objective optimization. According to computing node NUMA Node CPU and memory information, virtual machine affinity, cross-NUMA attributes, etc., an improved gray wolf algorithm is used to perform reasoning with dual goals of maximizing resource utilization and minimizing the number of virtual machine migration operations, and the migration steps of the virtual machine to the source destination host and a list of computing nodes that can be activated are output.

[0213] The present invention constructs a virtual machine fragment optimization integration model, and obtains an optimal deployment result based on multiple objectives and constraints through a migration algorithm.

[0214] Compared with the existing technology, the technical advantages of this proposal are:

[0215] 1. Good flexibility. It performs reasoning with the dual goals of maximizing resource utilization and minimizing the number of VM migration operations. It outputs the migration steps from the virtual machine to the source host and the list of computing nodes that can be activated. It considers affinity, concentration, number of migrations, and stability. The algorithm supports fast configuration of migration rules and has good flexibility.

[0216] 2. Good real-time performance. Through algorithm optimization, the optimal solution can be selected from hundreds of solutions in a cluster of 3,000 CPU physical cores within 3 minutes, achieving good real-time performance;

[0217] 3. Simple implementation. The efficiency of the entire resource pool can be analyzed by collecting data from the existing resource pool, which requires little manpower.

[0218] The embodiment of the present invention also provides a telecom cloud resource pool virtual machine migration device; the specific device may include:

[0219] The data acquisition module is used to obtain the parameter information of the underlying resource fragments of the cloud resource pool;

[0220] A preprocessing module, used for preprocessing parameter information of underlying resource fragments of the cloud resource pool;

[0221] A key parameter evaluation module, used for pre-evaluating key parameters based on the pre-processed structured initial data;

[0222] The model building module is used to consider the objective function under resource constraints, non-resource constraints and multiple cost indicators, and to establish the constraint model under the virtual machine integration scenario;

[0223] The migration module is used to integrate virtual machine fragments in the resource pool according to the key parameters and based on the constraint model using a hybrid heuristic grey wolf algorithm to obtain virtual machines that need to be arranged and migrate them.

[0224] The telecom cloud resource pool virtual machine migration device of this embodiment is used to implement the aforementioned telecom cloud resource pool virtual machine migration method. Therefore, the specific implementation method of the telecom cloud resource pool virtual machine migration device can be seen in the implementation method part of the previous telecom cloud resource pool virtual machine migration method. For example, the data acquisition module, the preprocessing module, the key parameter evaluation module, the model building module, and the migration module are respectively used to implement steps S101, S102, S103, S104 and S105 in the above-mentioned telecom cloud resource pool virtual machine migration method. Therefore, its specific implementation method can refer to the description of the corresponding each part of the implementation method, which will not be repeated here.

[0225] A specific embodiment of the present invention also provides a telecommunications cloud resource pool virtual machine migration device, including: a memory for storing a computer program; a processor for implementing the steps of the above-mentioned telecommunications cloud resource pool virtual machine migration method when executing the computer program.

[0226] A specific embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned telecommunications cloud resource pool virtual machine migration method are implemented.

[0227] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0228] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0229] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0230] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0231] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A telecom cloud resource pool virtual machine migration method, characterized in that: include: Get the underlying resource fragmentation parameter information of the cloud resource pool; Preprocessing the underlying resource fragment parameter information of the cloud resource pool; Pre-evaluate key parameters based on pre-processed structured initial data; Considering the objective functions under resource constraints, non-resource constraints and multiple cost indicators, a constraint model for virtual machine integration scenarios is established; According to the key parameters and based on the constraint model, a hybrid heuristic grey wolf algorithm is used to integrate virtual machine fragments in a resource pool, obtain virtual machines that need to be arranged, and migrate them.

2. The telecom cloud resource pool virtual machine migration method according to claim 1, characterized in that: The cloud resource pool underlying resource fragmentation parameter information includes high-availability cluster-host relationship, host CPU resource information, virtual machine data information, cloud resource pool resource data, and special virtual network function configurations that affect virtual machine migration, wherein the special virtual network functions include anti-affinity virtual network functions and virtual network functions that can be deployed across non-uniform memory access; The preprocessing includes data cleaning and data relationship construction, wherein the data relationship includes a high-availability cluster-host relationship model, a host CPU resource structure model, a virtual network function data model, and a virtual machine data model; The key parameters include the number of hosts required for actual deployment, the high-availability cluster concentration that can be achieved in actual deployment, the list of host balances used, and virtual machine deployment status. The virtual machine deployment status includes host groups, virtual machine information, CPU specifications, computing nodes where virtual machines are estimated to be deployed, virtual machine creation time, and virtual machine anti-affinity groups.

3. The telecom cloud resource pool virtual machine migration method according to claim 1, characterized in that: The resource constraints include uniform memory access resource constraints and non-uniform memory access resource constraints; the non-resource constraints include anti-affinity group constraints; and the cost indicators include the number of activated physical machines and the number of overall migrations.

4. The telecom cloud resource pool virtual machine migration method according to claim 1, characterized in that: The method of integrating virtual machine fragments in the resource pool according to the key parameters and based on the constraint model using a hybrid heuristic grey wolf algorithm to obtain virtual machines that need to be arranged and migrate includes: Step a: Use the modified grey wolf algorithm to search for the destination physical machine of the virtual machine; Step b: The candidate virtual machine of the jth physical machine is determined by the worst fit decreasing algorithm to determine the non-uniform memory access architecture where it should be placed; Step c: re-arranging the virtual machines that failed to be arranged in step b using a multi-heuristic factor placement algorithm; Step d: Repeat steps ac until the number of iterations reaches the upper limit or the objective function converges.

5. The telecom cloud resource pool virtual machine migration method according to claim 4, characterized in that: The modified grey wolf algorithm comprises: Convert the continuous solution updated by the Gray Wolf Optimizer into a discrete solution and convert it into binary; The poor quality solutions are pruned and a physical machine is randomly released. Meanwhile, all virtual machines in the physical machine are arranged on other activated physical machines.

6. The telecom cloud resource pool virtual machine migration method according to claim 4, characterized in that: The non-uniform memory access architecture for determining where the candidate virtual machine of the j-th physical machine should be placed by the worst fit decreasing algorithm includes: Sort the candidate virtual machines of the jth physical machine in descending order according to the average request rate and set the priority; Sort the non-uniform memory access architectures of the jth physical machine in descending order of remaining resource utilization and set priorities; Popping the highest priority candidate virtual machine non-uniform memory access sub-request into the highest priority non-uniform memory access architecture; Update the priority queue of the non-uniform memory access architecture, continue to place the non-uniform memory access sub-requests of the next priority candidate virtual machine, and repeat this step multiple times until the resources of the j-th physical machine are overloaded.

7. The telecom cloud resource pool virtual machine migration method according to claim 4, characterized in that: The method of rearranging the virtual machines that failed to be arranged in step b by using a multi-heuristic factor placement algorithm comprises: Traverse each activated physical machine and filter out the physical machines that have enough space to accommodate the virtual machines to be scheduled; Determine a heuristic factor and impose a penalty on the migration of the virtual machine in the heuristic factor to form a hybrid heuristic indicator, wherein the heuristic factor includes an average ratio H of the remaining resource utilization after placing the virtual machine 1 and H 1 and the remaining rate after each resource is utilized; The best destination physical machine for the virtual machine is selected by minimizing the hybrid heuristic metric.

8. A telecom cloud resource pool virtual machine migration device, characterized in that: include: The data acquisition module is used to obtain the parameter information of the underlying resource fragments of the cloud resource pool; A preprocessing module, used for preprocessing parameter information of underlying resource fragments of the cloud resource pool; A key parameter evaluation module, used for pre-evaluating key parameters based on the pre-processed structured initial data; The model building module is used to consider the objective function under resource constraints, non-resource constraints and multiple cost indicators, and to establish the constraint model under the virtual machine integration scenario; The migration module is used to integrate virtual machine fragments in the resource pool according to the key parameters and based on the constraint model using a hybrid heuristic grey wolf algorithm to obtain virtual machines that need to be arranged and migrate them.

9. A telecom cloud resource pool virtual machine migration device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of a telecom cloud resource pool virtual machine migration method as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a telecom cloud resource pool virtual machine migration method as described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Learning-based NUMA node capacity prediction

    EP4841444A1