Method, device, electronic device and storage medium for migrating a virtual machine to a server

By using quartile data and redundancy to adjust weights, the migration correspondence between virtual machines and servers is constructed, which solves the impact of extreme values ​​and outliers and data synchronization problems in virtual machine migration technology, and improves the migration effect and reliability.

CN115080177BActive Publication Date: 2024-10-22CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110271791.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-12
Publication Date
2024-10-22
Estimated Expiration
2041-03-12

AI Technical Summary

Technical Problem

Existing virtual machine migration technology based on curve similarity is susceptible to extreme values ​​and outliers, and it is difficult to ensure data sampling time synchronization, resulting in poor migration effects and increased migration times.

Method used

By obtaining the quartile data of the resource monitoring data of virtual machines and servers, we determine the redundancy adjustment information, calculate the redundancy adjustment weight, and use the Euclidean distance matrix and difference matrix to build the migration correspondence relationship to improve the synchronization between the virtual machine and the server. and similarity.

Benefits of technology

It improves the reliability and accuracy of virtual machine migration, reduces data fluctuations and migration times, and enhances the resource complementarity between virtual machines and servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115080177B_ABST
    Figure CN115080177B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device, electronic device and storage medium for migrating a virtual machine to a server, and relates to the technical field of virtual machine migration. The method includes: obtaining a list of virtual machines to be migrated and first resource monitoring data of the virtual machines in the virtual machine list; obtaining a list of candidate servers and second resource monitoring data of the servers in the server list; determining the redundancy adjustment information of the virtual machine in the time domain interval through the quartile data of the first resource monitoring data; determining the redundancy adjustment information of the server in the time domain interval through the quartile data of the second resource monitoring data; determining the gap information between the redundancy adjustment information of the virtual machine and the redundancy adjustment information of the server; determining the migration correspondence between the virtual machine list and the server list according to the gap information; and migrating the virtual machine to the corresponding server according to the migration correspondence. Through the technical solution disclosed in the present disclosure, the reliability, accuracy and efficiency of virtual machine migration to the server are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of virtual machine migration, and in particular to a method, device, electronic device and storage medium for migrating a virtual machine to a server. Background Art

[0002] Virtual machine migration technology can migrate virtual machines from one physical server to another. In a cloud computing environment, virtual machine online migration technology can be used to improve the resource utilization of cloud data center servers, achieve energy saving and load balancing, etc.

[0003] In the related technology, in the method of deciding the target server for virtual machine migration, there is a type of technical solution based on curve similarity, which calculates the similarity between the resource usage curve of the virtual machine to be migrated and the resource remaining curve of the non-overloaded server, and determines the most similar one as the target server, so that the virtual machine to be migrated and the target server are as complementary as possible, thereby making the server load more balanced.

[0004] At present, this type of virtual machine migration target server decision-making technology solution based on curve similarity still has some shortcomings:

[0005] (1) When the original sampled data is directly used to calculate the similarity, the result is easily affected by extreme values ​​and outliers, especially the technical solution based on Fréchet distance.

[0006] (2) The similarity calculation method has strict requirements on the synchronization of data sampling time. The sampling timestamps between each virtual machine and each server need to be consistent. However, when sampling the resource utilization of large-scale virtual machines and server clusters, it is difficult to ensure that the sampling times are completely synchronized. In actual environments, it may be impossible to establish a one-to-one correspondence between the sampling data of the virtual machine and the server in time, or even in the same time interval, the length of the sampling time series of the virtual machine and the server is inconsistent, which affects the migration effect of the virtual machine.

[0007] (3) The existing technical solution directly calculates the trend similarity between the virtual machine resource usage curve and the server resource remaining curve. Although the target server with the most complementary resources can be found through the similarity, the distance deviation between similar curves is ignored. For example, there may be overlaps between the two most similar curves. Data fluctuations may cause the virtual machine to migrate again within a short period of time after migrating to the target server, thereby increasing the number of migrations.

[0008] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0009] The purpose of the present disclosure is to provide a method, device, electronic device and storage medium for migrating a virtual machine to a server, which at least to some extent overcomes the problem of poor migration effect of migrating a virtual machine to a server in the related art.

[0010] Other features and advantages of the present disclosure will become apparent from the subsequent detailed description, or may be learned in part by the practice of the present disclosure.

[0011] According to one aspect of the present disclosure, a method for migrating a virtual machine to a server is provided, comprising: obtaining a list of virtual machines to be migrated and first resource monitoring data of the virtual machines in the virtual machine list; obtaining a list of candidate servers and second resource monitoring data of the servers in the server list; determining redundancy adjustment information of the virtual machines in a time domain interval through quartile data of the first resource monitoring data; determining redundancy adjustment information of the servers in a time domain interval through quartile data of the second resource monitoring data; determining gap information between the redundancy adjustment information of the virtual machines and the redundancy adjustment information of the servers; determining a migration correspondence relationship between the virtual machine list and the server list based on the gap information; and migrating the virtual machines to the corresponding servers based on the migration correspondence relationship.

[0012] In one embodiment of the present disclosure, it also includes: determining the cluster of the first server list where the list of virtual machines to be migrated is located; determining the server list in the first server list that is in an overloaded state as the second server list; obtaining the cluster of the third server list that can migrate the virtual machine list; removing the server list with the same identifier as the second server list in the cluster of the third server list; and determining the server list in the machine of the third server list after the removal as the candidate server list.

[0013] In one embodiment of the present disclosure, determining redundancy adjustment information of a virtual machine list in a time domain interval through quartile data of first resource monitoring data includes: dividing the time domain interval into multiple sub-intervals; determining the time series of the first resource monitoring data of the virtual machine in the sub-interval; determining the first quartile range sequence, the third quartile range sequence and the interquartile range sequence of the time series of the first resource monitoring data; determining the first quartile range sequence, the third quartile range sequence and the interquartile range sequence of the first resource monitoring data of the virtual machines in the virtual machine list in the sub-interval; determining the number of abnormal points of the virtual machine in the sub-interval according to the quartile data of the virtual machine list; determining the total number of abnormal points of the virtual machine in the time domain interval according to the number of abnormal points in the sub-interval; and determining the redundancy adjustment weight of the virtual machine according to the total number of abnormal points.

[0014] In one embodiment of the present disclosure, determining the number of abnormal points of a virtual machine in a sub-interval based on quartile data of a virtual machine list includes: determining the u-th sampling value of the i-th virtual machine in the virtual machine list in the k-th sub-interval; determining the quartile data of the i-th virtual machine in the k-sub-interval; and determining the number of abnormal points of the i-th virtual machine in the k-sub-interval based on the size relationship between the u-th sampling value and the quartile data of the i-th virtual machine.

[0015] In one embodiment of the present disclosure, determining the redundancy adjustment weight of a virtual machine based on the total number of anomalies includes: determining the total number of anomalies of the i-th virtual machine in a subinterval; determining the proportional relationship between the total number of anomalies and the length of the time series; and determining the redundancy adjustment weight of the i-th virtual machine based on the proportional relationship.

[0016] In one embodiment of the present disclosure, determining the redundancy adjustment information of the virtual machine list in the time domain interval through the quartile data of the first resource monitoring data also includes: determining the redundancy adjustment sequence of the third quartile sequence of the virtual machine according to the redundancy adjustment weight of the i-th virtual machine, the third quartile sequence and the interquartile sequence.

[0017] In one embodiment of the present disclosure, determining the redundancy adjustment information of a server in a time domain interval through quartile data of second resource monitoring data includes: dividing the time domain interval into multiple sub-intervals; determining the time series of the second resource monitoring data of the server in the sub-interval; determining the first quartile range sequence, the third quartile range sequence, and the interquartile range sequence of the time series of the second resource monitoring data; determining the first quartile range sequence, the third quartile range sequence, and the interquartile range sequence of the second resource monitoring data of the servers in the server list in the sub-interval; determining the number of abnormal points of the server in the sub-interval according to the quartile data of the server list; determining the total number of abnormal points of the server in the time domain interval according to the number of abnormal points in the sub-interval; and determining the redundancy adjustment weight of the server according to the total number of abnormal points.

[0018] In one embodiment of the present disclosure, determining the number of abnormal points of a server in a sub-interval based on the quartile data of a server list includes: determining the u-th sampling value of the i-th server in the server list in the k-th sub-interval; determining the quartile data of the i-th server in the k-sub-interval; and determining the number of abnormal points of the i-th server in the k-sub-interval based on the size relationship between the u-th sampling value and the quartile data of the i-th server.

[0019] In one embodiment of the present disclosure, determining the redundancy adjustment weight of a server based on the total number of outliers includes: determining the total number of outliers of the i-th server in a subinterval; determining the proportional relationship between the total number of outliers and the length of the time series; and determining the redundancy adjustment weight of the i-th server based on the proportional relationship.

[0020] In one embodiment of the present disclosure, determining the redundancy adjustment information of the server list in the time domain interval through the quartile data of the second resource monitoring data also includes: determining the redundancy adjustment sequence of the first quartile sequence of the server according to the redundancy adjustment weight of the i-th server, the first quartile range sequence and the interquartile range sequence.

[0021] In one embodiment of the present disclosure, determining the gap information between the redundancy adjustment information of a virtual machine and the redundancy adjustment information of a server includes: determining the Euclidean distance value between the redundancy adjustment sequence of the third quartile sequence of the virtual machine and the redundancy adjustment sequence of the first quartile sequence of the server; constructing a Euclidean distance matrix according to the Euclidean distance value; determining the difference between the redundancy adjustment sequence of the third quartile sequence of the virtual machine and the redundancy adjustment sequence of the first quartile sequence of the server; constructing a difference matrix according to the difference; and determining the gap information according to the Euclidean distance matrix and the difference matrix.

[0022] In one embodiment of the present disclosure, determining the migration correspondence between the virtual machine list and the server list based on the gap information includes: determining the difference greater than or equal to zero in the i-th row of the difference matrix, and constructing a difference column index set; determining the minimum Euclidean distance in the corresponding column elements of the i-th row in the Euclidean distance matrix based on the difference column index set; determining the migration correspondence between the virtual machine list and the server list based on the minimum Euclidean distance.

[0023] According to another aspect of the present disclosure, a device for migrating a virtual machine to a server is provided, including: an acquisition module, used to acquire a list of virtual machines to be migrated and first resource monitoring data of the virtual machines in the virtual machine list; the acquisition module is also used to acquire a list of candidate servers and second resource monitoring data of the servers in the server list; a determination module, used to determine the redundancy adjustment information of the virtual machine in a time domain interval through quartile data of the first resource monitoring data; the determination module is also used to determine the redundancy adjustment information of the server in the time domain interval through quartile data of the second resource monitoring data; the determination module is also used to determine the gap information between the redundancy adjustment information of the virtual machine and the redundancy adjustment information of the server; the determination module is also used to determine the migration correspondence between the virtual machine list and the server list according to the gap information; and a migration module, used to migrate the virtual machine to the corresponding server according to the migration correspondence.

[0024] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any of the above-mentioned methods of migrating a virtual machine to a server by executing the executable instructions.

[0025] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any of the above-mentioned methods of migrating a virtual machine to a server is implemented.

[0026] The solution for migrating a virtual machine to a server provided in an embodiment of the present disclosure determines the redundant adjustment information of the virtual machine in a time domain interval through the quartile data of the first resource monitoring data, and determines the redundant adjustment information of the server in a time domain interval through the quartile data of the second resource monitoring data, thereby improving the synchronization between the virtual machine and the server in the time series, reducing data fluctuations after the virtual machine is migrated to the server, and improving the migration effect of the virtual machine.

[0027] Furthermore, by determining the gap information between the redundant adjustment information of the virtual machine and the redundant adjustment information of the server, and determining the migration correspondence between the virtual machine list and the server list based on the gap information, the similarity between the virtual machine and the server is made higher and more accurate, and finally the virtual machine is migrated to the corresponding server according to the migration correspondence, thereby improving the reliability and accuracy of the virtual machine migration and effectively reducing the number of virtual machine migrations.

[0028] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0030] Figure 1 A schematic diagram showing a method for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0031] Figure 2 A flowchart showing another method for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0032] Figure 3 A flowchart showing another method for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0033] Figure 4 A flowchart showing another method for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0034] Figure 5A flowchart showing another method for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0035] Figure 6 A flowchart showing another method for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0036] Figure 7 A flowchart showing another method for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0037] Figure 8 A flowchart showing another method for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0038] Fig. 9 A schematic diagram showing another method for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0039] Fig.10 A schematic diagram showing another method for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0040] Fig.11 A schematic diagram showing another method for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0041] Fig.12 A schematic diagram showing another method for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0042] Fig.13 A schematic diagram showing another system for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0043] Fig.14 A flowchart showing a solution for migrating a virtual machine to a server in an embodiment of the present disclosure is shown;

[0044] Fig.15 A flowchart showing another solution for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0045] Fig.16 A schematic diagram showing a device for migrating a virtual machine to a server in an embodiment of the present disclosure;

[0046] Fig.17 A schematic diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0047] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0048] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0049] The solution provided by the present invention determines the redundant adjustment information of the virtual machine in the time domain interval through the quartile data of the first resource monitoring data, and determines the redundant adjustment information of the server in the time domain interval through the quartile data of the second resource monitoring data, thereby improving the synchronization between the virtual machine and the server in the time series, reducing the data fluctuation after the virtual machine is migrated to the server, and improving the migration effect of the virtual machine.

[0050] Furthermore, by determining the gap information between the redundant adjustment information of the virtual machine and the redundant adjustment information of the server, and determining the migration correspondence between the virtual machine list and the server list based on the gap information, the similarity between the virtual machine and the server is made higher and more accurate, and finally the virtual machine is migrated to the corresponding server according to the migration correspondence, thereby improving the reliability and accuracy of the virtual machine migration and effectively reducing the number of virtual machine migrations.

[0051] Quantiles are the variable values ​​at each equal position after all the data of the population are arranged in order of size. If all the data are divided into two equal parts, it is the median; if divided into four equal parts, it is the quartile; eight equal parts are the eighth quartile, etc. Quartiles are also called quartile points. They divide all the data into four equal parts, each of which includes 25% of the data. The values ​​at each quartile are quartiles. There are three quartiles. The first quartile is what is commonly called the quartile, called the lower quartile, the second quartile is the median, and the third quartile is called the upper quartile, represented by Q1, Q2, and Q3 respectively.

[0052] The first quartile (Q1), also known as the "lower quartile", is equal to the 25th percentile of all values ​​in the sample arranged from small to large.

[0053] The second quartile (Q2), also known as the "median", is equal to the 50th percentile of all values ​​in the sample arranged from small to large.

[0054] The third quartile (Q3), also known as the "upper quartile", is equal to the 75th percentile of all the values ​​in the sample arranged from small to large.

[0055] The difference between the third quartile and the first quartile is also called the interquartile range (IQR).

[0056] The above-mentioned solution of migrating the virtual machine to the server can be implemented through the interaction of multiple terminals and the server cluster.

[0057] The terminal may be a mobile terminal such as a mobile phone, a game console, a tablet computer, an e-book reader, smart glasses, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a smart home device, an AR (Augmented Reality) device, a VR (Virtual Reality) device, or the terminal may be a personal computer (PC), such as a laptop computer and a desktop computer.

[0058] The terminal may be installed with an application for providing migration of the virtual machine to the server.

[0059] The terminal is connected to the server cluster via a communication network. Optionally, the communication network is a wired network or a wireless network.

[0060] A server cluster is a server, or a combination of several servers, or a virtualization platform, or a cloud computing service center. The server cluster is used to provide background services for applications that provide virtual machine migration to the server. Optionally, the server cluster undertakes the main computing work and the terminal undertakes the secondary computing work; or, the server cluster undertakes the secondary computing work and the terminal undertakes the main computing work; or, the terminal and the server cluster adopt a distributed computing architecture for collaborative computing.

[0061] Optionally, the client of the application installed in different terminals is the same, or the client of the application installed on the two terminals is the client of the same type of application on different control system platforms. Based on the different terminal platforms, the specific form of the client of the application can also be different, for example, the application client can be a mobile client, a PC client or a global wide area network client, etc.

[0062] Those skilled in the art will appreciate that the number of the above terminals may be more or less. For example, the above terminal may be only one, or the above terminals may be dozens or hundreds, or more. The embodiments of the present disclosure do not limit the number of terminals and device types.

[0063] Optionally, the system may further include a management device, wherein the management device is connected to the server cluster via a communication network. Optionally, the communication network is a wired network or a wireless network.

[0064] Optionally, the above-mentioned wireless network or wired network uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, the data exchanged through the network is represented by technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above-mentioned data communication technologies.

[0065] The following will describe in more detail the steps of the method for migrating a virtual machine to a server in this example implementation with reference to the accompanying drawings and embodiments.

[0066] Figure 1A flow chart of a method for migrating a virtual machine to a server in an embodiment of the present disclosure is shown. The method provided in the embodiment of the present disclosure can be executed by any electronic device with computing and processing capabilities.

[0067] like Figure 1 As shown, the method for an electronic device to perform virtual machine migration to a server includes the following steps:

[0068] Step S102: obtaining a list of virtual machines to be migrated and first resource monitoring data of the virtual machines in the list of virtual machines.

[0069] Step S104: Acquire a candidate server list and second resource monitoring data of the servers in the server list.

[0070] Step S106: determining redundancy adjustment information of the virtual machine in the time domain interval through the quartile data of the first resource monitoring data.

[0071] Step S108: determining redundancy adjustment information of the server in the time domain interval through the quartile data of the second resource monitoring data.

[0072] In one embodiment of the present disclosure, data is segmented according to time intervals, and the first quartile Q1, the third quartile Q3 and the interquartile range IQR of each sub-interval are calculated. Then, the distance is calculated based on the obtained Q1 sequence, Q3 sequence and IQR sequence, thereby avoiding the influence of extreme values ​​and abnormal values. Furthermore, the redundant adjustment information of the virtual machine in the time domain interval is determined through the quartile data of the first resource monitoring data, and the redundant adjustment information of the server in the time domain interval is determined through the quartile data of the second resource monitoring data, thereby improving the synchronization between the virtual machine and the server in the time series, reducing the data fluctuation after the virtual machine is migrated to the server, and improving the migration effect of the virtual machine.

[0073] Step S110: determining the difference information between the redundancy adjustment information of the virtual machine and the redundancy adjustment information of the server.

[0074] Step S112: determining a migration correspondence relationship between the virtual machine list and the server list according to the gap information.

[0075] Step S114: Migrate the virtual machine to the corresponding server according to the migration correspondence relationship.

[0076] In one embodiment of the present disclosure, by determining the gap information between the redundancy adjustment information of the virtual machine and the redundancy adjustment information of the server, and determining the migration correspondence between the virtual machine list and the server list based on the gap information, the similarity between the virtual machine and the server is made higher and more accurate, and finally the virtual machine is migrated to the corresponding server according to the migration correspondence, thereby improving the reliability and accuracy of the virtual machine migration and effectively reducing the number of virtual machine migrations.

[0077] like Figure 2 As shown, it also includes:

[0078] Step S202: determine the cluster of the first server list where the list of virtual machines to be migrated is located.

[0079] Step S204: Determine the server list in the first server list that is in an overloaded state as the second server list.

[0080] Step S206: obtaining a cluster of a third server list capable of migrating the virtual machine list.

[0081] Step S208: remove the server list having the same identifier as the second server list in the cluster of the third server list.

[0082] Step S210: determine the server list in the machine after the third server list is removed as the candidate server list.

[0083] In one embodiment of the present disclosure, by determining the cluster of the first server list where the list of virtual machines to be migrated is located, determining the server list in the first server list that is in an overloaded state as the second server list, and removing the server list in the cluster of the third server list with the same identifier as the second server list, the servers in the candidate server list are not overloaded to meet the needs of virtual machine migration.

[0084] like Figure 3 As shown, determining the redundancy adjustment information of the virtual machine list in the time domain interval through the quartile data of the first resource monitoring data includes:

[0085] Step S302: divide the time domain interval into multiple sub-intervals.

[0086] Step S304: determine the time sequence of the first resource monitoring data of the virtual machine in the sub-interval.

[0087] Step S306: determine a first interquartile range sequence, a third interquartile range sequence, and an interquartile range sequence of the time series of the first resource monitoring data.

[0088] Step S308: determining the first quartile range sequence, the third quartile range sequence and the interquartile range sequence of the first resource monitoring data of the virtual machine in the virtual machine list in the sub-interval.

[0089] Step S310: determining the number of abnormal points of the virtual machine in the sub-interval according to the quartile data of the virtual machine list.

[0090] Step S312: determining the total number of abnormal points of the virtual machine in the time domain interval according to the number of abnormal points in the sub-interval.

[0091] Step S314: determining the redundancy adjustment weight of the virtual machine according to the total number of abnormal points.

[0092] In one embodiment of the present disclosure, compared with directly using the original data to calculate the similarity, the data is segmented according to the time interval, the first quartile Q1, the third quartile Q3 and the interquartile range IQR of each sub-interval are calculated, and then the distance is calculated based on the obtained Q1 sequence, Q3 sequence and IQR sequence, thereby avoiding the influence of extreme values ​​and outliers.

[0093] In addition, by dividing the time interval in the same way, the lengths of the Q1 sequence, Q3 sequence, and IQR sequence of each virtual machine and server are kept consistent, which solves the problem of being unable to calculate similarity due to the lack of synchronization in the original data sampling time and inconsistent time series lengths.

[0094] like Figure 4 As shown, the number of abnormal points of the virtual machine in the sub-interval is determined based on the quartile data of the virtual machine list, including:

[0095] Step S402 : determining the u th sampling value of the i th virtual machine in the k th subinterval in the virtual machine list.

[0096] Step S404: determine the quartile data of the i-th virtual machine in the k-th sub-interval.

[0097] Step S406 , determining the number of abnormal points of the i th virtual machine in the k th subinterval according to the size relationship between the u th sampling value and the quartile data of the i th virtual machine.

[0098] In one embodiment of the present disclosure, under the premise of data distribution of virtual machines reflected by quartile data, the number of abnormal points of the ith virtual machine in the kth sub-interval is determined according to the size relationship between the uth sampling value and the quartile data of the ith virtual machine, and the abnormal points and the number of abnormal points of the virtual machine in all sub-intervals are accurately obtained.

[0099] like Figure 5 As shown, determining the redundancy adjustment weight of the virtual machine according to the total number of abnormal points includes:

[0100] Step S502, determining the total number of abnormal points of the i-th virtual machine in the sub-interval.

[0101] Step S504, determining the proportional relationship between the total number of abnormal points and the length of the time series.

[0102] Step S506: determine the redundancy adjustment weight of the i-th virtual machine according to the proportional relationship.

[0103] In one embodiment of the present disclosure, under the premise of the data distribution of the server reflected by the quartile data, the number of abnormal points of the i-th virtual machine in the k-th sub-interval is determined according to the size relationship between the u-th sampling value and the quartile data of the i-th virtual machine, and the abnormal points and the number of abnormal points of the server in all sub-intervals are accurately obtained.

[0104] like Figure 6 As shown, determining the redundancy adjustment information of the virtual machine list in the time domain interval through the quartile data of the first resource monitoring data also includes:

[0105] Step S602 : determining a redundancy adjustment sequence of the third quartile sequence of the virtual machine according to the redundancy adjustment weight of the i th virtual machine, the third quartile sequence and the interquartile sequence.

[0106] like Figure 7 As shown, determining the redundancy adjustment information of the server in the time domain interval through the quartile data of the second resource monitoring data includes:

[0107] Step S702: divide the time domain interval into multiple sub-intervals.

[0108] Step S704: determine the time sequence of the second resource monitoring data of the server in the sub-interval.

[0109] Step S706: determine the first interquartile range sequence, the third interquartile range sequence and the interquartile range sequence of the time series of the second resource monitoring data.

[0110] Step S708: Determine the first interquartile range sequence, the third interquartile range sequence and the interquartile range sequence of the second resource monitoring data of the servers in the server list in the sub-interval.

[0111] Step S710, determining the number of abnormal points of the server in the sub-interval according to the quartile data of the server list.

[0112] Step S712: determine the total number of outliers of the server in the time domain interval according to the number of outliers in the sub-interval.

[0113] Step S714: determining the redundancy adjustment weight of the server according to the total number of abnormal points.

[0114] In one embodiment of the present disclosure, by determining the first quartile sequence, the third quartile sequence and the interquartile sequence of the second resource monitoring data of the server in the server list in the sub-interval, the number of abnormal points of the server in the sub-interval is determined according to the quartile data of the server list, and the total number of abnormal points of the server in the time domain interval is determined according to the number of abnormal points in the sub-interval, the redundancy adjustment weight of the server is determined more accurately.

[0115] like Figure 8 As shown in the figure, the number of abnormal points of the server in the sub-interval is determined based on the quartile data of the server list, including:

[0116] Step S802: determine the uth sampling value of the i-th server in the k-th subinterval in the server list.

[0117] Step S804: determine the quartile data of the i-th server in the k-th sub-interval.

[0118] Step S806, determining the number of abnormal points of the i-th server in the k-th subinterval according to the size relationship between the u-th sampling value and the quartile data of the i-th server.

[0119] In one embodiment of the present disclosure, the number of abnormal points of the i-th server in the k-th sub-interval is determined based on the size relationship between the u-th sampling value and the quartile data of the i-th server, and then the total number of abnormal points in all sub-intervals is statistically determined.

[0120] like Fig. 9 As shown, determining the redundancy adjustment weight of the server according to the total number of abnormal points includes:

[0121] Step S902, determining the total number of abnormal points of the i-th server in the sub-interval.

[0122] Step S904, determining the proportional relationship between the total number of outliers and the length of the time series.

[0123] Step S906: determine the redundancy adjustment weight of the ith server according to the proportional relationship.

[0124] In one embodiment of the present disclosure, by determining the total number of anomalies of the ith server in the subinterval, the proportional relationship between the total number of anomalies and the length of the time series is determined, and then the redundancy adjustment weight of the ith server is determined according to the proportional relationship. While considering the complementarity of virtual machine and server resources, the resource redundancy of the server to the virtual machine is also taken into account.

[0125] like Fig.10 As shown, determining the redundancy adjustment information of the server list in the time domain interval through the quartile data of the second resource monitoring data also includes:

[0126] Step S1002 : determining a redundancy adjustment sequence of the first quartile sequence of the server according to the redundancy adjustment weight of the i th server, the first quartile range sequence and the interquartile range sequence.

[0127] like Fig.11 As shown, determining the gap information between the redundancy adjustment information of the virtual machine and the redundancy adjustment information of the server includes:

[0128] Step S1102: determine the Euclidean distance value between the redundancy adjustment sequence of the third quartile sequence of the virtual machine and the redundancy adjustment sequence of the first quartile sequence of the server.

[0129] Step S1104: construct a Euclidean distance matrix according to the Euclidean distance values.

[0130] Step S1106: determine the difference between the redundancy adjustment sequence of the third quartile sequence of the virtual machine and the redundancy adjustment sequence of the first quartile sequence of the server.

[0131] Step S1108, constructing a difference matrix according to the difference values.

[0132] Step S1110, determining the gap information according to the Euclidean distance matrix and the difference matrix.

[0133] In one embodiment of the present disclosure, while considering the complementarity of virtual machine and server resources, the resource redundancy of the server to the virtual machine is also taken into account. The Euclidean distance is calculated using the Q3 redundancy adjustment sequence of the virtual machine and the Q1 redundancy adjustment sequence of the server to find the matching relationship with the smallest distance and the most similarity, so that the target virtual machine and the target server have resource complementarity, and the target server also has a certain amount of resource redundancy.

[0134] In addition, by calculating the mean difference of the sequence, the relative position relationship between the virtual machine resource utilization and the server remaining resources is further limited, so as to avoid the target virtual machine from migrating again in a short period of time after migrating to the target server, thereby reducing the number of migrations.

[0135] like Fig.12 As shown, determining the migration correspondence between the virtual machine list and the server list according to the gap information includes:

[0136] Step S1202, determining the difference values ​​in the i-th row of the difference matrix that are greater than or equal to zero, and constructing a difference column index set.

[0137] Step S1204: determine the minimum Euclidean distance among the corresponding column elements of the i-th row in the Euclidean distance matrix according to the difference column index set.

[0138] Step S1206: determining a migration correspondence relationship between the virtual machine list and the server list according to the minimum Euclidean distance.

[0139] In one embodiment of the present disclosure, by performing anomaly analysis on the target virtual machine and candidate servers, calculating weights according to the number of anomalies, and further adjusting the redundancy of resources, the target server's tolerance to target virtual machine data fluctuations is enhanced, making migration more robust and reliable.

[0140] Refer to the following Fig.13 A schematic diagram of a system for migrating a virtual machine to a server according to an embodiment of the present disclosure is described below. Fig.13 The system for migrating a virtual machine to a server is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.

[0141] like Fig.13 As shown, the system for migrating a virtual machine to a server includes: a parameter setting module 1302 , a target virtual machine receiving module 1304 , a data acquisition module 1306 , a sequence calculation module 1308 , a target server decision module 1310 and a target server output module 1312 .

[0142] The parameter setting module 1302 is used to set the time interval, the number of sub-intervals, resource types, cloud data center server cluster IP range, etc. Resource types include but are not limited to CPU, memory, bandwidth, storage, etc.

[0143] The target virtual machine receiving module 1304 is used to obtain the target virtual machine list data to be migrated.

[0144] The data acquisition module 1306 is used to acquire the monitoring data of the specified resource type of the target virtual machine within a certain time interval according to the target virtual machine list and the set parameters, and is also used to acquire the candidate server and its monitoring data.

[0145] The sequence calculation module 1308 is used to divide the monitoring data of the target virtual machine and the candidate server into sub-intervals according to the time interval, and calculate the first quartile, the third quartile and the interquartile range in each sub-interval.

[0146] The target server decision module 1310 calculates the redundancy adjustment weight, the distance matrix and the difference matrix according to the data obtained by the sequence calculation module, and then determines the preferred target server corresponding to each target virtual machine.

[0147] The target server output module 1312 is used to output the calculation results obtained by the target server decision module.

[0148] like Fig.13 The execution steps of the system for migrating the virtual machine to the server include:

[0149] Step 1: According to the target virtual machine list V = {v1, ..., v i ,…,v m}, obtain the overloaded server list P where each target virtual machine is located v ={p v1 ,…,p vi ,…,p vm}, and a certain time interval [T s, T e ] Historical monitoring data of resource utilization of each target virtual machine in .

[0150] Furthermore, in step 1, the number of target virtual machines is m, and the i-th target virtual machine v i The server is p vi , i∈[1,m].

[0151] The certain time interval [T s, T e ] refers to T before the current moment e -T s Duration range.

[0152] Target virtual machine v i In the time interval [T s, T e The historical monitoring data of resource utilization in ] is a time series Where i_m represents the time series X vi Length.

[0153] The time series set corresponding to the target virtual machine list V is X V ={X v1 ,…,X vi ,…,X vm}.

[0154] Step 2: Get a list of all servers in the pre-set migration scope, excluding the servers in the list P v After the overloaded servers in the list are obtained, the candidate server list P = {p1,…,p j ,…,p n}, and then obtain a certain time interval [T s, T e ] Historical monitoring data on the remaining resources of each candidate server in .

[0155] Furthermore, in step 2, the number of candidate servers is n, p j represents the jth candidate server, j∈[1,n].

[0156] Candidate server p j In the time interval [T s,T e The historical monitoring data of the remaining resources in ] is a time series Where j_n represents the time series Y pj Length.

[0157] The time series set corresponding to the list of candidate servers P is Y P = {Y p1 ,…,Y pj ,…,Y pn}.

[0158] Step 3: Set the time interval [T s, T e ] is divided into d subintervals, and the time series set X obtained in step 1 is calculated. V The first quartile Q1, the third quartile Q3 and the interquartile range IQR in each subinterval, where IQR=Q3-Q1, thereby obtaining the Q1 sequence, Q3 sequence and IQR sequence of each target virtual machine time series.

[0159] Furthermore, in step 3, the time interval [T s, T e ] can be divided into equal parts or unequal parts.

[0160] Target virtual machine v i The Q1 sequence on d subintervals is in represents the value of the first quartile Q1 in the kth subinterval. The Q1 sequence set corresponding to the target virtual machine list V is

[0161] Target virtual machine v i The Q3 sequence on d subintervals is in represents the value of the first quartile Q3 in the kth subinterval. The set of Q3 sequences corresponding to the target virtual machine list V is

[0162] Target virtual machine v i The IQR sequence on d subintervals is in represents the value of the interquartile range IQR in the kth subinterval. The IQR sequence set corresponding to the target virtual machine list V is

[0163] Step 4: Set the time interval [T s, T e] is divided into d subintervals, and the time series set Y obtained in step 2 is calculated. P The first quartile Q1, the third quartile Q3 and the interquartile range IQR in each subinterval are obtained, thereby obtaining the Q1 sequence, Q3 sequence and IQR sequence of the sampling data of each candidate server.

[0164] Furthermore, in step 4, the time interval of the candidate server [T s, T e ] needs to be divided in the same way as the time interval division method of the target virtual machine in step 3.

[0165] Candidate server p j The Q1 sequence on d subintervals is in represents the value of the first quartile Q1 in the kth subinterval, and the Q1 sequence set corresponding to the candidate server list P is

[0166] Candidate server p j The Q3 sequence on d subintervals is in represents the value of the first quartile Q3 in the kth subinterval, and the set of Q3 sequences corresponding to the candidate server list P is

[0167] Candidate server p j The IQR sequence on d subintervals is in represents the value of the interquartile range IQR in the kth subinterval. The IQR sequence set corresponding to the candidate server list P is

[0168] Step 5: Traverse the target virtual machine list V, and calculate the number of abnormal points of each target virtual machine in its respective subinterval according to the Q1 sequence, Q3 sequence and IQR sequence obtained in step 3, and then calculate the respective time interval [T s, T e ] to obtain the redundancy adjustment weight of each target virtual machine.

[0169] Furthermore, in step 5, the target virtual machine v i The number of outliers in its kth subinterval is:

[0170]

[0171] Where k_m represents the target virtual machine v i The length of the time series in the kth subinterval.

[0172] use Indicates the target virtual machine v i The u-th sample value in its k-th subinterval, and u∈[1,k_m], when When the following formula 2 is met, The value of is 1:

[0173]

[0174] otherwise, The value of is 0.

[0175] Target virtual machine v i In the time interval [T s, T e The total proportion of abnormal points in ] is b i The cumulative number of abnormal points in d subintervals divided by the time series X vi The length i_m is calculated as follows:

[0176]

[0177] Target virtual machine v i The redundancy adjustment weight w vi =b i .

[0178] Step 6: Traverse the candidate server list P, and calculate the number of outliers in each subinterval for each candidate server using the method described in step 5 according to the Q1 sequence, Q3 sequence and IQR sequence obtained in step 4, and then calculate the time interval [T s, T e ] to obtain the redundancy adjustment weight of each candidate server.

[0179] Furthermore, in step 6, the candidate server p j The number of outliers in its kth subinterval is:

[0180]

[0181] Where k_n represents the candidate server p j The length of the time series in the kth subinterval.

[0182] use represents the candidate server p j The u-th sample value in its k-th subinterval, and u∈[1,k_n], when When the following formula 5 is met, The value of is 1:

[0183]

[0184] otherwise, The value of is 0.

[0185] Candidate server p j In the time interval [T s, T e The total proportion of abnormal points in ] is b j The cumulative value of the number of abnormal points in d subintervals divided by the time series Y pj The length j_n is calculated as follows:

[0186]

[0187] Candidate server p j The redundancy adjustment weight w pj =b j .

[0188] Step 7: Using the Q3 sequence and IQR sequence of each target virtual machine obtained in step 3, the Q1 sequence and IQR sequence of each candidate server obtained in step 4, the redundancy adjustment weight of each target virtual machine obtained in step 5, and the redundancy adjustment weight of each candidate server obtained in step 6, calculate the Euclidean distance between the Q3 redundancy adjustment sequence of each target virtual machine and the Q1 redundancy adjustment sequence of each candidate server to obtain the distance matrix S.

[0189] Furthermore, in step 7, the target virtual machine v i The Q3 redundancy adjustment sequence refers to the sequence in The calculation method is:

[0190]

[0191] Candidate server p j The Q1 redundant adjustment sequence refers to the sequence in The calculation method is:

[0192]

[0193] Target virtual machine v i Q3 redundancy adjustment sequence and candidate server p j The Euclidean distance s between the Q1 redundancy-adjusted sequences ij for:

[0194]

[0195] The distance matrix S is:

[0196]

[0197] Step 8: Calculate the sum of the differences between the redundant adjustment sequences of each candidate server Q1 and the redundant adjustment sequences of each target virtual machine Q3 obtained in step 7 to obtain a difference matrix E. j Q1 redundancy adjustment sequence and target virtual machine v i The difference between the Q3 redundant adjustment sequence and e ij for:

[0198]

[0199] The difference matrix E is:

[0200]

[0201] Step 9: Based on the distance matrix S obtained in step 7 and the difference matrix E obtained in step 8, obtain each row in the distance matrix S that satisfies e ij Non-repeating minimum s for ≥0 condition ij , thus obtaining the target virtual machine v i Preferred target server to which you can migrate j .

[0202] Furthermore, in step 9, each row in the distance matrix S is obtained to satisfy e ij Non-repeating minimum s for ≥0 condition ij The steps are as follows:

[0203] Step 9.1, initialize the index set O of the preferred target server, and initialize i=1.

[0204] Step 9.2, traverse the i-th row of the difference matrix E and obtain the values ​​that satisfy e ij ≥0 condition column index set O i , and meets the conditions

[0205] Step 9.3, traverse the i-th row of the distance matrix S, according to the column index set O obtained in step 9.2 i , get the minimum value in the corresponding column element of the i-th row of the distance matrix S Will The corresponding candidate server p j As the target virtual machine v i The preferred target server to which you can migrate. The corresponding column index j is added to the index set O.

[0206] Step 9.4, if the value of i is equal to m, end the operation, otherwise add 1 to the value of i and repeat steps 9.2 to 9.4.

[0207] Refer to the following Fig.14 A schematic diagram is provided to describe a solution of migrating a virtual machine to a server according to an embodiment of the present disclosure. Fig.14 The solution of migrating a virtual machine to a server is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.

[0208] like Fig.14 As shown, the solution for migrating a virtual machine to a server includes the following steps:

[0209] Step S1402: input a list of target virtual machines, and simultaneously obtain monitoring data of a specified resource type of the target virtual machines within a certain time interval.

[0210] Step S1404, obtaining a list of candidate servers and simultaneously obtaining monitoring data of a specified resource type within a corresponding time interval.

[0211] Step S1406: Divide the monitoring data of the target virtual machine and the candidate server into a specified number of sub-intervals according to time, and calculate the first quartile, the third quartile and the interquartile range of each sub-interval.

[0212] Step S1408: Calculate the redundancy adjustment weight of each target virtual machine and each candidate server.

[0213] Step S1410, calculating the distance matrix and the difference matrix.

[0214] Step S1412, determine the preferred target server.

[0215] Step S1414, output the target server list.

[0216] Refer to the following Fig.15 A schematic diagram is provided to describe a solution of migrating a virtual machine to a server according to an embodiment of the present disclosure. Fig.15 The solution of migrating a virtual machine to a server is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.

[0217] like Fig.15 As shown, the solution for migrating a virtual machine to a server includes the following steps:

[0218] Step S1502, initialize the target server index set O, and initialize i=1.

[0219] Step S1504, traverse the i-th row of the difference matrix E to obtain a column index set Oi that meets the specified conditions, and the intersection of Oi and the set O is empty.

[0220] Step S1506, traverse the i-th row of the distance matrix S, obtain the minimum value of the column elements corresponding to the i-th row of the matrix according to the index set Oi, take the candidate server corresponding to this column as the target server, and add the index of this column to the index set O.

[0221] Step S1508, determine whether i==m is established, where m is the number of virtual machines. If so, execute step S1510, if not, execute step S1512.

[0222] Step S1510, outputting a target server list.

[0223] Step S1512, execute the accumulation processing of i=i+1.

[0224] Refer to the following Fig.16 The apparatus 1600 for migrating a virtual machine to a server according to this embodiment of the present disclosure is described. Fig.16 The device 1600 for migrating a virtual machine to a server is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0225] like Fig.16 As shown, the apparatus 1600 for migrating a virtual machine to a server is presented in the form of a hardware module. The components of the apparatus 1600 for migrating a virtual machine to a server may include but are not limited to: an acquisition module 1602 , a determination module 1604 , and a migration module 1606 .

[0226] The acquisition module 1602 is used to acquire a list of virtual machines to be migrated and first resource monitoring data of the virtual machines in the list of virtual machines.

[0227] The acquisition module 1602 is further used to acquire a candidate server list and second resource monitoring data of the servers in the server list.

[0228] The determination module 1604 is configured to determine the redundancy adjustment information of the virtual machine in the time domain interval according to the quartile data of the first resource monitoring data.

[0229] The determination module 1604 is further configured to determine redundancy adjustment information of the server in a time domain interval through quartile data of the second resource monitoring data.

[0230] The determination module 1604 is further configured to determine the difference information between the redundancy adjustment information of the virtual machine and the redundancy adjustment information of the server.

[0231] The determination module 1604 is further configured to determine a migration correspondence between the virtual machine list and the server list according to the gap information.

[0232] The migration module 1606 is used to migrate the virtual machine to the corresponding server according to the migration correspondence relationship.

[0233] Refer to the following Fig.17 1700 according to this embodiment of the present disclosure is described. Fig.17 The electronic device 1700 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0234] like Fig.17 As shown, the electronic device 1700 is in the form of a general computing device. The components of the electronic device 1700 may include but are not limited to: at least one processing unit 1710, at least one storage unit 1720, and a bus 1730 connecting different system components (including the storage unit 1720 and the processing unit 1710).

[0235] The storage unit stores program codes, which can be executed by the processing unit 1710, so that the processing unit 1710 executes the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 1710 can execute the steps defined in the method of migrating a virtual machine to a server of the present disclosure.

[0236] The storage unit 1720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 17201 and / or a cache storage unit 17202 , and may further include a read-only storage unit (ROM) 17203 .

[0237] The storage unit 1720 may also include a program / utility 17204 having a set (at least one) of program modules 17205, such program modules 17205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0238] Bus 1730 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0239] The electronic device 1700 may also communicate with one or more external devices 1740 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device, and / or may communicate with any device that enables the electronic device 1700 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1750. Furthermore, the electronic device 1700 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1110, which communicates with other modules of the electronic device 1700 via a bus 1730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RA identification systems, tape drives, and data backup storage systems.

[0240] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0241] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above "Exemplary Method" section of the present specification.

[0242] According to the program product for implementing the above method in the embodiment of the present disclosure, it can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0243] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0244] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0245] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0246] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0247] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0248] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0249] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

Claims

1. A method for migrating a virtual machine to a server, characterized in that: include: Acquire a list of virtual machines to be migrated and first resource monitoring data of the virtual machines in the list of virtual machines; Acquire a candidate server list and second resource monitoring data of servers in the server list; Determining redundancy adjustment information of the virtual machine in a time domain interval according to quartile data of the first resource monitoring data includes: Dividing the time domain interval into a plurality of sub-intervals; Determine a time sequence of the first resource monitoring data of the virtual machine in the sub-interval; Determine a first interquartile range sequence, a third interquartile range sequence, and an interquartile range sequence of the time series of the first resource monitoring data; Determine the first interquartile range sequence, the third interquartile range sequence and the interquartile range sequence of the first resource monitoring data of the virtual machine in the virtual machine list in the sub-interval; Determining the number of abnormal points of the virtual machine in the sub-interval according to the quartile data of the virtual machine list includes: Determine the uth sampling value of the i-th virtual machine in the k-th subinterval in the virtual machine list; Determine quartile data of the i-th virtual machine in the k-th subinterval; Determine the number of abnormal points of the i-th virtual machine in the k-th subinterval according to the size relationship between the u-th sampling value and the quartile data of the i-th virtual machine; Determine the total number of abnormal points of the virtual machine in the time domain interval according to the number of abnormal points in the sub-interval; Determining the redundancy adjustment weight of the virtual machine according to the total number of abnormal points includes: Determine the total number of abnormal points of the i-th virtual machine in the subinterval; Determine the proportional relationship between the total number of abnormal points and the length of the time series; Determining a redundancy adjustment weight of the i-th virtual machine according to the proportional relationship; Determine a redundancy adjustment sequence of the third quartile sequence of the virtual machine according to the redundancy adjustment weight, the third quartile sequence and the interquartile sequence of the i-th virtual machine; Determining the redundancy adjustment information of the server in the time domain interval according to the quartile data of the second resource monitoring data includes: Dividing the time domain interval into a plurality of sub-intervals; Determine a time sequence of the second resource monitoring data of the server in the sub-interval; Determine a first interquartile range sequence, a third interquartile range sequence, and an interquartile range sequence of the time series of the second resource monitoring data; Determine the first interquartile range sequence, the third interquartile range sequence and the interquartile range sequence of the second resource monitoring data of the server in the server list in the sub-interval; Determining the number of abnormal points of the server in the sub-interval according to the quartile data of the server list includes: Determine the uth sampling value of the i-th server in the k-th subinterval in the server list; Determine the quartile data of the i-th server in the k-th sub-interval; Determine the number of abnormal points of the i-th server in the k-th subinterval according to the size relationship between the u-th sampling value and the quartile data of the i-th server; Determine the total number of abnormal points of the server in the time domain interval according to the number of abnormal points in the sub-interval; Determining the redundancy adjustment weight of the server according to the total number of abnormal points includes: Determine the total number of abnormal points of the i-th server in the subinterval; Determine the proportional relationship between the total number of abnormal points and the length of the time series; Determining a redundancy adjustment weight of the i-th server according to the proportional relationship; Determine gap information between the redundancy adjustment information of the virtual machine and the redundancy adjustment information of the server; Determine a migration correspondence relationship between the virtual machine list and the server list according to the gap information; The virtual machine is migrated to a corresponding server according to the migration correspondence.

2. The method for migrating a virtual machine to a server according to claim 1, characterized in that: Also includes: Determine the cluster of the first server list where the list of virtual machines to be migrated is located; Determine that a server list in the first server list that is in an overloaded state is a second server list; Obtaining a cluster of a third server list capable of migrating the virtual machine list; Removing a server list having the same identifier as that of the second server list from the cluster of the third server list; The server list in the machine after the third server list is removed is determined as the candidate server list.

3. The method for migrating a virtual machine to a server according to claim 1 or 2, characterized in that: Determining the redundancy adjustment information of the server list in the time domain interval by using the quartile data of the second resource monitoring data also includes: A redundancy adjustment sequence of the first quartile sequence of the server is determined according to the redundancy adjustment weight of the i-th server, the first quartile sequence and the quartile sequence.

4. The method for migrating a virtual machine to a server according to claim 3, characterized in that: Determining the gap information between the redundancy adjustment information of the virtual machine and the redundancy adjustment information of the server includes: Determine a Euclidean distance value between a redundancy adjustment sequence of a third quartile sequence of the virtual machine and a redundancy adjustment sequence of a first quartile sequence of the server; Constructing a Euclidean distance matrix according to the Euclidean distance values; Determine a difference between a redundancy adjustment sequence of a third quartile sequence of the virtual machine and a redundancy adjustment sequence of a first quartile sequence of the server; Constructing a difference matrix according to the difference; The gap information is determined according to the Euclidean distance matrix and the difference matrix.

5. The method for migrating a virtual machine to a server according to claim 4, characterized in that: Determining the migration correspondence between the virtual machine list and the server list according to the gap information includes: Determine the difference values ​​greater than or equal to zero in the i-th row of the difference matrix, and construct a set of difference column indices; Determine the minimum Euclidean distance among the corresponding column elements of the i-th row in the Euclidean distance matrix according to the difference column index set; A migration correspondence relationship between the virtual machine list and the server list is determined according to the minimum Euclidean distance.

6. A device for migrating a virtual machine to a server, characterized in that: include: An acquisition module, used to acquire a list of virtual machines to be migrated and first resource monitoring data of the virtual machines in the list of virtual machines; The acquisition module is further used to acquire a candidate server list and second resource monitoring data of the servers in the server list; A determination module, configured to determine redundancy adjustment information of the virtual machine in a time domain interval according to quartile data of the first resource monitoring data, comprising: Dividing the time domain interval into a plurality of sub-intervals; Determine a time sequence of the first resource monitoring data of the virtual machine in the sub-interval; Determine a first interquartile range sequence, a third interquartile range sequence, and an interquartile range sequence of the time series of the first resource monitoring data; Determine the first interquartile range sequence, the third interquartile range sequence and the interquartile range sequence of the first resource monitoring data of the virtual machine in the virtual machine list in the sub-interval; Determining the number of abnormal points of the virtual machine in the sub-interval according to the quartile data of the virtual machine list includes: Determine the uth sampling value of the i-th virtual machine in the k-th subinterval in the virtual machine list; Determine quartile data of the i-th virtual machine in the k-th subinterval; Determine the number of abnormal points of the i-th virtual machine in the k-th subinterval according to the size relationship between the u-th sampling value and the quartile data of the i-th virtual machine; Determine the total number of abnormal points of the virtual machine in the time domain interval according to the number of abnormal points in the sub-interval; Determining the redundancy adjustment weight of the virtual machine according to the total number of abnormal points includes: Determine the total number of abnormal points of the i-th virtual machine in the subinterval; Determine the proportional relationship between the total number of abnormal points and the length of the time series; Determining a redundancy adjustment weight of the i-th virtual machine according to the proportional relationship; Determine a redundancy adjustment sequence of the third quartile sequence of the virtual machine according to the redundancy adjustment weight, the third quartile sequence and the interquartile sequence of the i-th virtual machine; The determination module is further configured to determine the redundancy adjustment information of the server in the time domain interval according to the quartile data of the second resource monitoring data, including: Dividing the time domain interval into a plurality of sub-intervals; Determine a time sequence of the second resource monitoring data of the server in the sub-interval; Determine a first interquartile range sequence, a third interquartile range sequence, and an interquartile range sequence of the time series of the second resource monitoring data; Determine the first interquartile range sequence, the third interquartile range sequence and the interquartile range sequence of the second resource monitoring data of the server in the server list in the sub-interval; Determining the number of abnormal points of the server in the sub-interval according to the quartile data of the server list includes: Determine the uth sampling value of the i-th server in the k-th subinterval in the server list; Determine the quartile data of the i-th server in the k-th sub-interval; Determine the number of abnormal points of the i-th server in the k-th subinterval according to the size relationship between the u-th sampling value and the quartile data of the i-th server; Determine the total number of abnormal points of the server in the time domain interval according to the number of abnormal points in the sub-interval; Determining the redundancy adjustment weight of the server according to the total number of abnormal points includes: Determine the total number of abnormal points of the i-th server in the subinterval; Determine the proportional relationship between the total number of abnormal points and the length of the time series; Determining a redundancy adjustment weight of the i-th server according to the proportional relationship; The determination module is further used to determine the gap information between the redundancy adjustment information of the virtual machine and the redundancy adjustment information of the server; The determination module is further used to determine the migration correspondence between the virtual machine list and the server list according to the gap information; A migration module is used to migrate the virtual machine to a corresponding server according to the migration correspondence.

7. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the method for migrating a virtual machine to a server according to any one of claims 1 to 5 by executing the executable instructions.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for migrating a virtual machine to a server according to any one of claims 1 to 5 is implemented.