Migration optimization method, source device and virtual machine migration management system
By detecting the transmission time of new dirty pages and predicting the device generation rate during the virtual machine migration process, dynamically adjusting the compression method and optimizing the migration strategy, the problems of migration efficiency and downtime in the existing technology are solved, and a shorter migration time is achieved. and downtime.
Patent Information
- Application Number
- CN202110250454.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-08
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-03-08
AI Technical Summary
The existing virtual machine migration process does not consider the destination performance and current application environment, resulting in the inability to effectively reduce migration efficiency and downtime.
During each round of copying, the transmission time of newly added dirty pages is detected. If it is greater than the preset threshold, the next round of copying is continued. If it is less than the threshold, the source virtual machine is shut down and the destination virtual machine is started. By merging dirty pages and predicting devices Generate rates and select appropriate compression methods to optimize the migration process.
It effectively reduces the total time and downtime of virtual machine migration, and maximizes migration speed by dynamically adjusting compression methods and migration strategies.
Smart Images

Figure CN115048179B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of cloud computing, and in particular to a migration optimization method, a source-end device, and a virtual machine migration management system. Background Art
[0002] With the development of cloud computing technology, more and more applications and services are deployed in cloud data centers. As one of the core technologies of cloud computing, virtualization technology abstracts and isolates physical hardware resources through virtualization, so that the same hardware device can be shared by multiple virtual machines and be independent of each other.
[0003] The dynamic migration technology of virtual machines refers to the process of migrating virtual machines from the source to the destination without interrupting the service of the applications in the virtual machines, so that users cannot feel the difference. Therefore, during the virtual machine migration process, the downtime and system performance loss should be minimized. In order to shorten the downtime, the dynamic migration of virtual machines is usually based on the pre-copy method, which has been widely used in multiple virtualization platforms.
[0004] The current pre-copy algorithm mainly includes the following process: When the copy starts, the source VM keeps running and records the dirty memory pages. These dirty pages will be transferred again in the next iteration until the preset conditions are met and the migration enters the shutdown-copy phase. At this time, the source VM stops the service and the data continues to be transferred. When the destination receives the data, the VM resumes running and the migration task is completed. Summary of the invention
[0005] The inventors have noticed that the following problems still exist in the existing virtual machine migration process: (1) the impact of the target end performance and the current application environment on the migration efficiency is not considered; (2) during the compression migration, the impact of the continuous changes in the virtual machine load operation status, migration bandwidth and other information is not considered. As a result, the total migration time and downtime cannot be effectively reduced.
[0006] Accordingly, the present disclosure provides a migration optimization solution that can effectively reduce the total migration time and downtime.
[0007] According to the first aspect of the embodiments of the present disclosure, a migration optimization method is provided, which is executed by a source device and includes: during each round of copying, sending dirty pages to be transmitted to a destination device; detecting newly added dirty pages during each round of copying; if the transmission time of the newly added dirty pages is greater than a preset threshold, performing the next round of copying; if the transmission time of the newly added dirty pages is less than the preset threshold, after shutting down the virtual machine of the source device, performing the last round of copying and instructing the destination device to start the virtual machine to implement virtual machine migration from the source to the destination station; wherein, the copying process includes: merging the dirty pages to be transmitted and determining the number of dirty pages to be transmitted; predicting the dirty page generation rates of the source device and the destination device; using a preset compression policy table to select a compression method associated with the dirty page generation rates of the source device and the destination device; using the compression method to compress the merged dirty pages to be transmitted to obtain compression information; and sending the compression information to the destination device so that the destination device can decompress the compression information and distribute the memory pages.
[0008] In some embodiments, predicting the dirty page generation rates of the source device and the destination device includes: detecting the load operation information of the source device and the destination device, and the network bandwidth information in the cloud data center; inputting the number of dirty pages to be transmitted, the load operation information, the network bandwidth information, and the configuration information of the source device and the destination device into a preset rate prediction model to predict the dirty page generation rates of the source device and the destination device.
[0009] In some embodiments, the above method further includes: training a machine learning model to obtain the rate prediction model, wherein training the machine learning model includes: collecting the load operation information, the number of generated dirty pages, and the configuration information of multiple nodes in the cloud data center in each period; calculating the dirty page generation rate in each period; constructing a data set, where the i-th row of the data set includes the load operation information of the multiple nodes, the configuration information of the multiple nodes, the dirty page generation rate in the (i - 1)-th period, and the dirty page generation rate in the i-th period, 1 < i < N, and N is the total number of periods; using the data set to train the machine learning model to generate the rate prediction model.
[0010] In some embodiments, the machine learning model is a gated recurrent unit (GRU) model.
[0011] In some embodiments, the above method also includes: generating the compression strategy table, wherein the generating the compression strategy table includes: presetting the load operation information and configuration information of the source device and the destination device; determining the number of dirty pages to be transmitted of the source device, and the allocated network bandwidth information; inputting the number of dirty pages to be transmitted of the source device, the load operation information and configuration information of the source device and the destination device, and the allocated network bandwidth information into the rate prediction model to predict the dirty page generation rate of the source device and the destination device; using each compression method in the compression method set for virtual machine migration from the source device to the destination device, and calculating the time sum of compression time and decompression time; establishing the compression strategy table, wherein in the compression strategy table, the compression method corresponding to the smallest time sum is associated with the predicted dirty page generation rate of the source device and the destination device.
[0012] In some embodiments, the load operation information includes at least one of CPU utilization, memory usage, CPU frequency, I / O throughput, input network traffic, and output network traffic; the configuration information includes at least one of the number of CPU cores, number of CPUs, memory size, average bandwidth, and peak bandwidth.
[0013] According to a second aspect of an embodiment of the present disclosure, a source device is provided, comprising: a copy module, configured to send dirty pages to be transmitted to a destination device in each round of copying; a control module, configured to detect newly added dirty pages in each round of copying, and if the transmission time of the newly added dirty pages is greater than a preset threshold, trigger the copy module to perform the next round of copying, and if the transmission time of the newly added dirty pages is less than the preset threshold, trigger the copy module to perform the last round of copying after shutting down the source device virtual machine, and instruct the destination device to start the virtual machine to achieve virtual machine migration from the source end to the destination station; wherein, during the copying process, the copy module merges dirty pages to be transmitted, determines the number of dirty pages to be transmitted, predicts dirty page generation rates of the source device and the destination device, uses a preset compression strategy table to select a compression method associated with the dirty page generation rates of the source device and the destination device, uses the compression method to compress the merged dirty pages to be transmitted to obtain compression information, and sends the compression information to the destination device so that the destination device decompresses the compression information and distributes the memory pages.
[0014] In some embodiments, the copy module is configured to detect the load operation information of the source device and the destination device, as well as the network bandwidth information in the cloud data center, and input the number of dirty pages to be transmitted, the load operation information, the network bandwidth information, and the configuration information of the source device and the destination device into a preset rate prediction model to predict the dirty page generation rate of the source device and the destination device.
[0015] In some embodiments, the source device further includes: a training module, configured to collect the load operation information, the number of generated dirty pages, and the configuration information of multiple nodes in the cloud data center in each period, calculate the dirty page generation rate in each period, and construct a data set, where the i-th row of the data set includes the load operation information of the multiple nodes, the configuration information of the multiple nodes, the dirty page generation rate in the (i - 1)-th period, and the dirty page generation rate in the i-th period, 1 < i < N, and N is the total number of periods. The machine learning model is trained using the data set to generate the rate prediction model.
[0016] In some embodiments, the machine learning model is a gated recurrent unit (GRU) model.
[0017] In some embodiments, the source device further includes: a compression policy table generation module, configured to preset the load operation information and configuration information of the source device and the destination device, determine the number of dirty pages to be transmitted by the source device, and the allocated network bandwidth information, input the number of dirty pages to be transmitted by the source device, the load operation information and configuration information of the source device and the destination device, and the allocated network bandwidth information into the rate prediction model to predict the dirty page generation rate of the source device and the destination device, use each compression method in the compression method set for virtual machine migration from the source device to the destination device, calculate the total time of compression time and decompression time, and establish the compression policy table, where in the compression policy table, the compression method corresponding to the minimum total time is associated with the predicted dirty page generation rate of the source device and the destination device.
[0018] In some embodiments, the load operation information includes at least one of CPU utilization, memory usage, CPU frequency, I / O throughput, input network traffic, and output network traffic; the configuration information includes at least one of the number of CPU cores, the number of CPUs, memory size, average bandwidth, and peak bandwidth.
[0019] According to a third aspect of the embodiments of the present disclosure, a source device is provided, including: a memory configured to store instructions; a processor coupled to the memory, and the processor is configured to execute the method as described in any of the above embodiments based on the instructions stored in the memory.
[0020] According to the fourth aspect of the embodiments of the present disclosure, a virtual machine migration management system is provided, comprising: a source device as described in any of the above embodiments; a destination device, configured to use a corresponding decompression method to decompress the compressed information sent by the source device to obtain memory pages, and distribute the memory pages, and also configured to start the virtual machine according to the instruction of the source device to realize the migration of the virtual machine from the source to the destination.
[0021] According to a fifth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the method described in any of the above embodiments is implemented.
[0022] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0024] Figure 1 A flowchart of a migration optimization method according to an embodiment of the present disclosure;
[0025] Figure 2 A schematic diagram of a copy process flow of an embodiment of the present disclosure;
[0026] Figure 3 A schematic diagram of a process for training a machine learning model according to an embodiment of the present disclosure;
[0027] Figure 4 A schematic diagram of a process for generating a compression strategy table according to an embodiment of the present disclosure;
[0028] Figure 5 This is a schematic diagram of the structure of a source device according to an embodiment of the present disclosure;
[0029] Figure 6 This is a schematic diagram of the structure of a source device according to another embodiment of the present disclosure;
[0030] Figure 7 This is a schematic diagram of the structure of a source device according to another embodiment of the present disclosure;
[0031] Figure 8 The present invention is a schematic diagram of the structure of a virtual machine migration management system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0033] Unless specifically stated otherwise, the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure.
[0034] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0035] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.
[0036] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0037] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0038] Figure 1 The following is a flow chart of a migration optimization method according to an embodiment of the present disclosure. In some embodiments, the following migration optimization method flow is executed by a source device.
[0039] In step 101, in each round of copying, the dirty pages to be transmitted are sent to the destination device.
[0040] Figure 2 The following is a schematic diagram of a copy process according to an embodiment of the present disclosure. In some embodiments, the following copy process is performed by a source device.
[0041] In step 201, dirty pages to be transmitted are merged, and the number of dirty pages to be transmitted is determined.
[0042] In step 202, dirty page generation rates of the source device and the destination device are predicted.
[0043] In some embodiments, load operation information of the source device and the destination device, as well as network bandwidth information in the cloud data center are detected.
[0044] The number of dirty pages to be transmitted, load operation information, network bandwidth information, and configuration information of the source device and the destination device are input into a preset rate prediction model to predict the dirty page generation rate of the source device and the destination device.
[0045] In some embodiments, the load operation information includes at least one of CPU (Central Processing Unit) utilization, memory usage, CPU frequency, I (Input) / O (Output) throughput, input network traffic, and output network traffic. The configuration information includes at least one of the number of CPU cores, the number of CPUs, memory size, average bandwidth, and peak bandwidth.
[0046] In step 203, a compression method associated with dirty page generation rates of the source device and the destination device is selected using a preset compression strategy table.
[0047] In step 204, the merged dirty pages to be transmitted are compressed using a compression method to obtain compression information.
[0048] In step 205, the compressed information is sent to the destination device, so that the destination device decompresses the compressed information using a decompression method corresponding to the compression method and distributes memory pages.
[0049] return Figure 1 In step 102, newly added dirty pages in each round of copying are detected.
[0050] In step 103, if the transmission time of the newly added dirty page is greater than the preset threshold, the next round of copying process is executed.
[0051] In step 104, if the transmission time of the newly added dirty page is less than the preset threshold, after shutting down the source device virtual machine, the last round of copying process is performed, and the destination device is instructed to start the virtual machine to achieve virtual machine migration from the source to the destination.
[0052] In the migration optimization method provided in the above embodiment of the present disclosure, the compression method is reselected in each round of copying to ensure that each round of copying can be completed at the maximum migration speed, thereby effectively reducing the total migration time and virtual machine downtime.
[0053] In some embodiments, the rate prediction model is obtained by training a machine learning model.
[0054] Figure 3Schematic flowchart of training a machine learning model according to an embodiment of the present disclosure. In some embodiments, the following processes are executed by the source device.
[0055] In step 301, collect the load operation information, the number of dirty pages generated, and the configuration information of multiple nodes in the cloud data center in each cycle.
[0056] For example, in cycle T, the number of dirty pages generated is SP, and the load operation information includes CPU utilization CP, memory usage MP, CPU frequency FP, I / O throughput IO, input network traffic IN, output network traffic ON, etc. The configuration information includes the number of CPU cores K, the number of CPUs C, the memory size M, the average bandwidth AB, the peak bandwidth PB, etc.
[0057] In step 302, calculate the dirty page generation rate in each cycle.
[0058] Dirty page generation rate
[0059] In step 303, construct a data set, where the i-th row of the data set includes the load operation information of multiple nodes in the i-th cycle, the configuration information of multiple nodes, the dirty page generation rate in the (i - 1)-th cycle, and the dirty page generation rate in the i-th cycle, 1 < i < N, and N is the total number of cycles.
[0060] For example, the data set is:
[0061]
[0062] In step 304, use the data set to train a machine learning model to generate a rate prediction model.
[0063] In some embodiments, the machine learning model is a GRU (Gated Recurrent Unit) model.
[0064] Figure 4 Schematic flowchart of generating a compression policy table according to an embodiment of the present disclosure. In some embodiments, the following processes are executed by the source device.
[0065] In step 401, preset the load operation information and configuration information of the source device and the destination device.
[0066] In step 402, determine the number of dirty pages to be transmitted by the source device and the allocated network bandwidth information.
[0067] In step 403, input the number of dirty pages to be transmitted by the source device, the load operation information and configuration information of the source device and the destination device, and the allocated network bandwidth information into the rate prediction model to predict the dirty page generation rates of the source device and the destination device.
[0068] In step 404, each compression method in the compression method set is used for virtual machine migration from the source device to the destination device, and the sum of the compression time and the decompression time is calculated.
[0069] In step 405, a compression strategy table is established, wherein the compression method corresponding to the minimum time sum is associated with the predicted dirty page generation rate of the source device and the destination device in the compression strategy table.
[0070] Therefore, by querying the compression strategy table, it is possible to obtain a compression method that matches the dirty page generation rate of the current source-end device and the destination-end device.
[0071] Figure 5 FIG. 1 is a schematic diagram of the structure of a source device according to an embodiment of the present disclosure. Figure 5 As shown, the source device includes a copy module 51 and a control module 52 .
[0072] The copy module 51 is configured to send the dirty pages to be transmitted to the destination device in each round of copying.
[0073] During the copying process, the copy module 51 merges the dirty pages to be transmitted, determines the number of dirty pages to be transmitted, predicts the dirty page generation rates of the source device and the destination device, uses a preset compression strategy table, selects a compression method associated with the dirty page generation rates of the source device and the destination device, compresses the merged dirty pages to be transmitted using the compression method to obtain compression information, and sends the compressed information to the destination device so that the destination device can decompress the compressed information and distribute memory pages.
[0074] In some embodiments, the copy module 51 is configured to detect the load operation information of the source device and the destination device, as well as the network bandwidth information in the cloud data center, and input the number of dirty pages to be transmitted, the load operation information, the network bandwidth information, and the configuration information of the source device and the destination device into a preset rate prediction model to predict the dirty page generation rate of the source device and the destination device.
[0075] In some embodiments, the load operation information includes at least one of CPU utilization, memory usage, CPU frequency, I / O throughput, input network traffic, and output network traffic. The configuration information includes at least one of the number of CPU cores, the number of CPUs, memory size, average bandwidth, and peak bandwidth.
[0076] The control module 52 is configured to detect newly added dirty pages during each round of the copy process. If the transmission time of the newly added dirty pages is greater than a preset threshold, it triggers the copy module to execute the next round of the copy process. If the transmission time of the newly added dirty pages is less than the preset threshold, after shutting down the virtual machine of the source device, it triggers the copy module to execute the last round of the copy process and instructs the destination device to start the virtual machine to achieve virtual machine migration from the source to the destination station.
[0077] Figure 6 FIG. is a schematic structural diagram of a source device according to another embodiment of the present disclosure. Figure 6 different from Figure 5 in the Figure 6 illustrated embodiment, the source device further includes a training module 53.
[0078] The training module 53 is configured to collect the load operation information, the number of dirty pages generated, and the configuration information of multiple nodes in the cloud data center during each period, calculate the dirty page generation rate during each period, construct a data set, where the i-th row of the data set includes the load operation information of multiple nodes, the configuration information of multiple nodes, the dirty page generation rate in the (i - 1)-th period, and the dirty page generation rate in the i-th period, 1 < i < N, and N is the total number of periods, and use the data set to train a machine learning model to generate a rate prediction model.
[0079] In some embodiments, the machine learning model is a GRU model.
[0080] In some embodiments, as Figure 6 illustrated, the source device further includes a compression policy table generation module 54.
[0081] The compression policy table generation module 54 is configured to preset the load operation information and configuration information of the source device and the destination device, determine the number of dirty pages to be transmitted by the source device, and the allocated network bandwidth information, input the number of dirty pages to be transmitted by the source device, the load operation information and configuration information of the source device and the destination device, and the allocated network bandwidth information into the rate prediction model to predict the dirty page generation rates of the source device and the destination device, use each compression method in the compression method set for virtual machine migration from the source device to the destination device, and calculate the total time of the compression time and the decompression time, and establish a compression policy table, where in the compression policy table, the compression method corresponding to the minimum total time is associated with the predicted dirty page generation rates of the source device and the destination device.
[0082] Thus, by querying the compression policy table, a compression method matching the current dirty page generation rates of the source device and the destination device can be obtained.
[0083] Figure 7FIG. 1 is a schematic diagram of the structure of a source device according to another embodiment of the present disclosure. Figure 7 As shown, the source device includes a memory 71 and a processor 72 .
[0084] The memory 71 is used to store instructions. The processor 72 is coupled to the memory 71. The processor 72 is configured to execute the instructions stored in the memory to implement the following. Figures 1 to 4 The method of any one of the embodiments.
[0085] like Figure 7 As shown, the source device also includes a communication interface 73 for information exchange with other devices. At the same time, the source device also includes a bus 74, through which the processor 72, the communication interface 73, and the memory 71 communicate with each other.
[0086] The memory 71 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory. The memory 71 may also be a memory array. The memory 71 may also be divided into blocks, and the blocks may be combined into virtual volumes according to certain rules.
[0087] In addition, the processor 72 may be a central processing unit CPU, or may be an application specific integrated circuit ASIC, or may be configured to implement one or more integrated circuits of the embodiments of the present disclosure.
[0088] The present disclosure also relates to a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, which are executed by a processor to implement the following Figures 1 to 4 The method of any one of the embodiments.
[0089] Figure 8 FIG. 1 is a schematic diagram of the structure of a virtual machine migration management system according to an embodiment of the present disclosure. Figure 8 The virtual machine migration management system includes a source device 81 and a destination device 82. The source device 81 is Figures 5 to 7 The source device involved in any one of the embodiments.
[0090] The destination device 82 is configured to use a corresponding decompression method to decompress the compressed information sent by the source device 81 to obtain memory pages and distribute the memory pages. It is also configured to start the virtual machine according to the instruction of the source device 81 to realize the migration of the virtual machine from the source to the destination.
[0091] In some embodiments, the functional unit described above can be implemented as a general-purpose processor, a programmable logic controller (PLC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component or any appropriate combination thereof for performing the functions described in the present disclosure.
[0092] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0093] The description of the present disclosure is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the present disclosure to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present disclosure, and to enable those of ordinary skill in the art to understand the present disclosure and thereby design various embodiments with various modifications suitable for specific uses.
Claims
1. A migration optimization method, executed by a source device, comprising: During each round of copying, sending the dirty pages to be transferred to the destination device; Detecting the newly added dirty pages during each round of copying; If the transmission time of the newly added dirty pages is greater than a preset threshold, performing the next round of copying; If the transmission time of the newly added dirty pages is less than a preset threshold, after shutting down the virtual machine of the source device, performing the last round of copying, and instructing the destination device to start the virtual machine to achieve virtual machine migration from the source to the destination; Wherein, the copying process includes: Merging the dirty pages to be transferred and determining the number of dirty pages to be transferred; Predicting the dirty page generation rates of the source device and the destination device; Using a preset compression policy table to select a compression method associated with the dirty page generation rates of the source device and the destination device; Compressing the merged dirty pages to be transferred using the compression method to obtain compression information; Sending the compression information to the destination device so that the destination device can decompress the compression information and distribute memory pages; Wherein, predicting the dirty page generation rates of the source device and the destination device includes: Detecting the load running information of the source device and the destination device, and the network bandwidth information in the cloud data center; Inputting the number of dirty pages to be transferred, the load running information, the network bandwidth information, and the configuration information of the source device and the destination device into a preset rate prediction model to predict the dirty page generation rates of the source device and the destination device.
2. The method according to claim 1, further comprising: Training a machine learning model to obtain the rate prediction model, wherein, The training of the machine learning model includes: Collecting the load running information, the number of dirty pages generated, and the configuration information of multiple nodes in the cloud data center in each period; Calculating the dirty page generation rate in each period; Constructing a data set, wherein the i-th row of the data set includes the load running information of the multiple nodes, the configuration information of the multiple nodes, the dirty page generation rate in the (i - 1)-th period, and the dirty page generation rate in the i-th period, 1 < i < N, and N is the total number of periods; Using the data set to train the machine learning model to generate the rate prediction model.
3. The method according to claim 2, wherein the machine learning model is a gated recurrent unit (GRU) model.
4. The method according to claim 1, further comprising: Generating the compression policy table, wherein, The generating of the compression policy table includes: Presetting the load running information and configuration information of the source device and the destination device; Determining the number of dirty pages to be transferred of the source device and the allocated network bandwidth information; Inputting the number of dirty pages to be transferred of the source device, the load running information and configuration information of the source device and the destination device, and the allocated network bandwidth information into the rate prediction model to predict the dirty page generation rates of the source device and the destination device; Using each compression method in the compression method set for virtual machine migration from the source device to the destination device, and calculating the total time of compression time and decompression time; The compression policy table is established, in which the compression method corresponding to the smallest total time is associated with the predicted dirty page generation rates of the source device and the destination device in the compression policy table.
5. The method according to any one of claims 1-4, wherein the load operation information includes at least one of CPU utilization rate, memory usage rate, CPU frequency, I / O throughput, input network traffic, and output network traffic; the configuration information includes at least one of the number of CPU cores, the number of CPUs, memory size, average bandwidth, and peak bandwidth.
6. A source device, comprising: a copy module configured to send dirty pages to be transmitted to the destination device in each round of the copy process; a control module configured to detect newly added dirty pages in each round of the copy process. If the transmission time of the newly added dirty pages is greater than a preset threshold, the copy module is triggered to execute the next round of the copy process. If the transmission time of the newly added dirty pages is less than the preset threshold, after shutting down the virtual machine of the source device, the copy module is triggered to execute the last round of the copy process, and the destination device is instructed to start the virtual machine to implement virtual machine migration from the source end to the destination end; wherein, in the copy process, the copy module merges the dirty pages to be transmitted, determines the number of dirty pages to be transmitted, predicts the dirty page generation rates of the source device and the destination device, uses a preset compression policy table to select a compression method associated with the dirty page generation rates of the source device and the destination device, compresses the merged dirty pages to be transmitted using the compression method to obtain compression information, and sends the compression information to the destination device so that the destination device decompresses the compression information and distributes memory pages. The copy module detects the load operation information of the source device and the destination device, and the network bandwidth information in the cloud data center, and inputs the number of dirty pages to be transmitted, the load operation information, the network bandwidth information, and the configuration information of the source device and the destination device into a preset rate prediction model to predict the dirty page generation rates of the source device and the destination device.
7. The source device according to claim 6, further comprising: a training module configured to collect the load operation information, the number of generated dirty pages, and the configuration information of multiple nodes in the cloud data center in each period, calculate the dirty page generation rate in each period, and construct a data set. The i-th row of the data set includes the load operation information of the multiple nodes, the configuration information of the multiple nodes, the dirty page generation rate in the (i-1)-th period, and the dirty page generation rate in the i-th period, where 1 < i < N and N is the total number of periods. The machine learning model is trained using the data set to generate the rate prediction model.
8. The source device according to claim 7, wherein the machine learning model is a gated recurrent unit (GRU) model.
9. The source device according to claim 6, further comprising: A compression strategy table generation module is configured to preset the load operation information and configuration information of the source device and the destination device, determine the number of dirty pages to be transmitted of the source device, and the allocated network bandwidth information, input the number of dirty pages to be transmitted of the source device, the load operation information and configuration information of the source device and the destination device, and the allocated network bandwidth information into the rate prediction model to predict the dirty page generation rate of the source device and the destination device, use each compression method in the compression method set for virtual machine migration from the source device to the destination device, and calculate the time sum of compression time and decompression time to establish the compression strategy table, wherein in the compression strategy table, the compression method corresponding to the smallest time sum is associated with the predicted dirty page generation rate of the source device and the destination device.
10. The source device according to any one of claims 6 to 9, wherein: The load operation information includes at least one of CPU utilization, memory usage, CPU frequency, I / O throughput, input network traffic, and output network traffic; The configuration information includes at least one of the number of CPU cores, the number of CPUs, memory size, average bandwidth, and peak bandwidth.
11. A source device, comprising: a memory configured to store instructions; A processor is coupled to the memory, and the processor is configured to execute the method according to any one of claims 1 to 5 based on instructions stored in the memory.
12. A virtual machine migration management system, comprising: The source device according to any one of claims 6 to 11; The destination device is configured to use a corresponding decompression method to decompress the compressed information sent by the source device to obtain memory pages and distribute the memory pages. It is also configured to start the virtual machine according to the instruction of the source device to realize the migration of the virtual machine from the source to the destination.
13. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the method according to any one of claims 1 to 5 is implemented.
