Virtual machine data migration method and device, electronic equipment and storage medium

The digital twin model is used to determine the high-temperature migration source physical machine and migrate the virtual machine to the lower-temperature destination physical machine, which solves the problem of virtual machines being unusable due to high temperature and ensures the operational stability of the data center.

CN118567780APending Publication Date: 2024-08-30CHINA MOBILE GROUP SHANDONG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410614094.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

During the data center operation and maintenance process, when the physical machine is down due to high temperature, the virtual machine cannot be used. Because of the delay in manual processing, the virtual machine cannot run normally after the migration source physical machine is down due to excessive temperature.

Method used

Use the digital twin model to determine the migration source physical machine whose temperature is greater than the threshold, determine the virtual machine to be migrated, and migrate it to the migration destination physical machine whose temperature is lower than the source physical machine to avoid the downtime of the migration source physical machine due to excessive temperature. machine.

Benefits of technology

It effectively avoids the downtime of the migration source physical machine due to excessive temperature, ensures that the virtual machine is not interrupted during the migration process, and improves the availability and reliability of the data center.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567780A
    Figure CN118567780A
Patent Text Reader

Abstract

The invention discloses a virtual machine data migration method and device, electronic equipment and a storage medium, and particularly relates to the field of computers.The method comprises the steps that a migration source physical machine with the temperature larger than a threshold value is determined through a digital twin model, and a virtual machine is arranged in the migration source physical machine; determining a to-be-migrated virtual machine from virtual machines arranged in the migration source physical machine; determining a migration target physical machine of the to-be-migrated virtual machine, wherein the temperature of the migration target physical machine is lower than that of the migration source physical machine; and migrating the virtual machine to be migrated from the migration source physical machine to the migration target physical machine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computers, and specifically relates to a virtual machine data migration method, device, electronic device and storage medium. Background Art

[0002] Normally, during the process of data center operation and maintenance, when the temperature of the cabinet where the physical machine is located is too high, in order to protect the physical machine's own hardware equipment and various data in the virtual machines in the physical machine, the power supply is usually automatically cut off, causing the physical machine to crash.

[0003] However, since there is a certain delay in the process of manually handling the physical machine downtime, the virtual machines in the physical machine cannot be used during the period of time when the physical machine downtime is caused by high temperature. Summary of the invention

[0004] The embodiments of the present application provide a virtual machine data migration method, device, electronic device and storage medium disclosed in the present application, which can solve the problem in the related art that various data in the virtual machines included in the physical machine are unavailable during the period of physical machine downtime caused by high temperature.

[0005] In a first aspect, an embodiment of the present application provides a method for virtual machine data migration, the method comprising:

[0006] Determine, by means of a digital twin model, a migration source physical machine whose temperature is greater than a threshold, wherein a virtual machine is provided in the migration source physical machine;

[0007] Determine a virtual machine to be migrated from the virtual machines set in the migration source physical machine;

[0008] Determine a migration destination physical machine of the virtual machine to be migrated, wherein the temperature of the migration destination physical machine is lower than the temperature of the migration source physical machine;

[0009] Migrate the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine.

[0010] In a second aspect, an embodiment of the present application provides a virtual machine data migration device, the device comprising:

[0011] A determination module is used to determine a migration source physical machine whose temperature is greater than a threshold through a digital twin model, wherein a virtual machine is set in the migration source physical machine; determine a virtual machine to be migrated from the virtual machines set in the migration source physical machine; determine a migration destination physical machine for the virtual machine to be migrated, wherein the temperature of the migration destination physical machine is lower than the temperature of the migration source physical machine;

[0012] The migration module is used to migrate the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed, the steps of the method described in the first aspect are implemented.

[0015] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the method described in the first aspect.

[0016] At least one of the above technical solutions provided in the embodiments of the present application can achieve the following technical effects:

[0017] In an embodiment of the present application, a migration source physical machine whose temperature is greater than a threshold is determined by a digital twin model, and a virtual machine is set in the migration source physical machine; a virtual machine to be migrated is determined from the virtual machines set in the migration source physical machine; a migration destination physical machine of the virtual machine to be migrated is determined, and the temperature of the migration destination physical machine is lower than the temperature of the migration source physical machine; and the virtual machine to be migrated is migrated from the migration source physical machine to the migration destination physical machine. In this way, the virtual machine to be migrated is determined from the migration source physical machine whose temperature is greater than the threshold determined by the digital twin model, and the virtual machine to be migrated is migrated from the migration source physical machine to the migration destination physical machine whose temperature is lower than that of the migration source physical machine, so as to avoid the virtual machine to be migrated in the migration source physical machine being unusable after the migration source physical machine goes down due to excessive temperature. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a flow chart of a virtual machine data migration method provided in an embodiment of the present application.

[0019] Figure 2 It is a flow chart of a virtual machine data migration method provided in an embodiment of the present application.

[0020] Figure 3 It is a flow chart of a virtual machine data migration method provided in an embodiment of the present application.

[0021] Figure 4 It is a flow chart of a virtual machine data migration method provided in an embodiment of the present application.

[0022] Figure 5 It is a flow chart of a virtual machine data migration method provided in an embodiment of the present application.

[0023] Figure 6 It is a structural block diagram of a virtual machine data migration device provided in an embodiment of the present application.

[0024] Figure 7 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0026] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0027] In the related art, due to some reasons, such as the lack or failure of the dynamic environment monitoring system in the computer room, the temperature change in the computer room is not monitored in time, which may cause the physical machine equipment in each cabinet in the computer room to fail and data to be lost due to the high temperature of the computer room. In order to protect the hardware equipment of the physical machine itself and the various data in the virtual machine in the physical machine, when the temperature of the cabinet where the physical machine is located is too high, the power supply is usually automatically cut off, which often causes the physical machine to crash. However, due to the certain delay in the process of manually handling the physical machine crash, the virtual machine in the physical machine cannot be used during the period of physical machine crash caused by high temperature.

[0028] In a virtual machine data migration method provided in the present application, a migration source physical machine whose temperature is greater than a threshold is determined through a digital twin model, and a virtual machine is set in the migration source physical machine; a virtual machine to be migrated is determined from the virtual machines set in the migration source physical machine; a migration destination physical machine of the virtual machine to be migrated is determined, and the temperature of the migration destination physical machine is lower than the temperature of the migration source physical machine; and the virtual machine to be migrated is migrated from the migration source physical machine to the migration destination physical machine. In this way, the virtual machine to be migrated is determined from the migration source physical machine whose temperature is greater than the threshold determined by the digital twin model, and the virtual machine to be migrated is migrated from the migration source physical machine to the migration destination physical machine whose temperature is lower than that of the migration source physical machine, so as to avoid the virtual machine to be migrated in the migration source physical machine being unusable after the migration source physical machine is shut down due to excessive temperature.

[0029] Moreover, in a virtual machine data migration method provided in the present application, the digital twin system used may include various characterization data of each physical machine in the computer room, and the digital twin model is used to predict the temperature of the physical machine in the cabinet through a simulation environment. For example, the digital twin model continuously fits and generates a temperature trend curve based on the historical temperature data of the physical machine, and predicts the temperature of the physical machine according to the target temperature value and the temperature trend curve, so as to accurately determine whether the temperature of the physical machine is about to exceed the limit.

[0030] Moreover, in a virtual machine data migration method provided in the present application, for the K virtual machines in the migration source physical machine, the comprehensive migration priority scores of the K virtual machines are calculated based on a multi-factor weighted migration sorting strategy, and according to the comprehensive migration priority scores of the K virtual machines, the virtual machine to be migrated is determined from the K virtual machines to improve the migration efficiency.

[0031] In addition, the digital twin system is used to simulate the target migration strategy and simulate the temperature and resource conditions of the migration destination physical machine for a period of time after the implementation of the migration strategy to ensure that the temperature of the migration destination physical machine and the migration source physical machine has dropped to a safe range after the implementation of the migration strategy, avoiding ping-pong migration and invalid migration.

[0032] It should be understood that all virtual machine data migration methods provided in the embodiments of the present application can be performed by an electronic device. The electronic device may include a server. The server may be a single server or a server cluster. In the case where the server is a server cluster, in the virtual machine data migration method provided in the present application, determining a migration source physical machine whose temperature is greater than a threshold, determining a virtual machine to be migrated, determining a migration destination physical machine for the virtual machine to be migrated, and migrating the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine can be performed by the same server or by different servers. The embodiments of the present application do not limit the specific hardware deployment environment.

[0033] In the following, in conjunction with the accompanying drawings, all virtual machine data migration methods provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.

[0034] See also Figure 1 , Figure 1 A flowchart of a virtual machine data migration method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method comprises the following steps:

[0035] Step 110: Determine, through the digital twin model, a migration source physical machine whose temperature is greater than a threshold, wherein a virtual machine is configured in the migration source physical machine.

[0036] In an embodiment of the present application, the digital twin model is constructed based on various characterization data of various physical entities and logical entities, and the digital twin model is used to predict the temperature of the physical machine in the cabinet through a simulation environment.

[0037] In an embodiment of the present application, the temperatures of M physical machines in a cabinet can be predicted based on the simulation environment of a digital twin model; based on the predicted temperatures of the M physical machines, N physical machines with predicted temperatures greater than a threshold are screened out from the M physical machines; and the N physical machines are determined as migration source physical machines, wherein the number of virtual machines set in the migration source physical machine is K.

[0038] Step 120: Determine the virtual machine to be migrated from the virtual machines set in the migration source physical machine.

[0039] In an embodiment of the present application, a comprehensive migration priority score of each of the K virtual machines can be obtained; the comprehensive migration priority score is obtained based on the load level, migration cost, number of migrations and business importance index of the virtual machine; based on the comprehensive migration priority score of each of the K virtual machines, the virtual machine to be migrated is determined.

[0040] Step 130: determining a migration destination physical machine of the virtual machine to be migrated, wherein the temperature of the migration destination physical machine is lower than the temperature of the migration source physical machine;

[0041] Step 140: Migrate the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine.

[0042] In the embodiments of the present application, the main purpose of virtual machine migration is to migrate the virtual machine from one physical machine to another without interrupting the service, and to restore the operation of the previous virtual machine on the destination physical machine, thereby achieving load balancing, fault tolerance mechanism, fault recovery or maintenance operations of cloud data center resources.

[0043] In an embodiment of the present application, a migration source physical machine whose temperature is greater than a threshold is determined by a digital twin model, and a virtual machine is set in the migration source physical machine; a virtual machine to be migrated is determined from the virtual machines set in the migration source physical machine; a migration destination physical machine of the virtual machine to be migrated is determined, and the temperature of the migration destination physical machine is lower than the temperature of the migration source physical machine; and the virtual machine to be migrated is migrated from the migration source physical machine to the migration destination physical machine. In this way, the virtual machine to be migrated is determined from the migration source physical machine whose temperature is greater than the threshold determined by the digital twin model, and the virtual machine to be migrated is migrated from the migration source physical machine to the migration destination physical machine whose temperature is lower than that of the migration source physical machine, so as to avoid the virtual machine to be migrated in the migration source physical machine being unusable after the migration source physical machine goes down due to excessive temperature.

[0044] In one embodiment of the present application, the digital twin model is constructed based on various characterization data of various physical entities and logical entities, and the digital twin model is used to predict the temperature of the physical machine in the cabinet through a simulation environment. Specifically, various characterization data of various physical entities (such as physical machines) and logical entities in the cloud resource pool are obtained, and various physical entities and logical entities include but are not limited to computer rooms, cabinets, cabinets, air conditioners, monitoring, servers, networks and security equipment. The various characterization data are used to build a digital twin system. The various characterization data in the digital twin system are one-to-one mapping relationships with the various characterization data in the actual cloud resource pool. The data of the digital twin system includes but is not limited to resources, alarms, logs, and performance data. Resource data refers to the location and relationship of computer rooms, cabinets, cabinets, air conditioners, monitoring, servers, networks and security equipment. Based on resource data, 3D models of various physical entities are constructed. The 3D model includes the spatial location of each physical entity and the connection relationship between physical entities, which is equivalent to a visual relationship diagram; performance data can include equipment performance data, business performance data and environmental data of each physical entity; among them, equipment performance data includes indicators such as the central processing unit (CPU) utilization, memory utilization, storage utilization, input / output (I / O) data, and network link bandwidth utilization of physical servers and virtual machines; business performance data includes various key indicators that characterize upper-level business; environmental data includes relevant performance indicators of air conditioners and power systems. In order to ensure that the digital twin model can accurately reflect the real situation of physical machines in the real world and predict and optimize their performance, the digital twin model needs to continuously update and synchronize various data of each physical machine so as to adjust the simulation status in time.

[0045] See also Figure 2 , Figure 2 A flowchart of a virtual machine data migration method provided in an embodiment of the present application is shown in FIG. Figure 2As shown, the method comprises the following steps:

[0046] Step 210: Based on the simulation environment of the digital twin model, the temperatures of the M physical machines in the cabinet are predicted.

[0047] In an embodiment of the present application, the temperature trend curve of each of the M physical machines can be obtained by continuously fitting the historical temperature data of the M physical machines in the cabinet stored in the digital twin model, and the temperature trend curve may include the predicted temperature of the physical machine. The generation of the temperature trend curve can be achieved by a time series prediction algorithm, such as an autoregressive integrated moving average model (ARIMA), a long short-term memory (LSTM) algorithm, a time series prediction algorithm, and the like.

[0048] Step 220: Based on the predicted temperatures of the M physical machines, select N physical machines whose predicted temperatures are greater than a threshold from the M physical machines.

[0049] In the embodiment of the present application, a cabinet high temperature warning value, a physical machine high temperature warning value and a cabinet high temperature warning ratio can be set. When the temperature of the cabinet temperature measurement point is greater than or equal to the cabinet high temperature warning value, or the proportion of physical machines with a physical machine temperature greater than or equal to the physical machine high temperature warning value among the M physical machines in the cabinet is greater than or equal to the cabinet high temperature warning ratio, the cabinet is determined to be a high temperature cabinet C. H , the high temperature cabinet C H All physical machines in the cabinet are determined as N physical machines whose predicted temperatures are greater than the threshold. Based on the cabinet predicted temperature predicted by the temperature trend curve and the physical machine predicted temperatures of the M physical machines in the cabinet, when the cabinet predicted temperature is greater than or equal to the cabinet high temperature warning value, or the proportion of physical machines whose predicted temperatures among the M physical machines in the cabinet are greater than or equal to the physical machine high temperature warning value to the total number of physical machines in the cabinet is greater than or equal to the cabinet high temperature warning ratio, the cabinet is determined as a potential high temperature cabinet C. PH , the potential high temperature cabinet C PH All physical machines in are determined as N physical machines whose predicted temperatures are greater than a threshold.

[0050] In the embodiment of the present application, a cabinet temperature safety value is set. When the temperature of the cabinet temperature measurement point is less than or equal to the cabinet temperature safety value and the server temperatures of all servers in the cabinet are less than the server high temperature warning value, the cabinet is determined as a low temperature cabinet C. L , put the low temperature cabinet C L All physical machines in the are identified as safe physical machines.

[0051] Step 230: Determine the N physical machines as migration source physical machines, where virtual machines are set in the migration source physical machines.

[0052] Step 240: Determine the virtual machine to be migrated from the virtual machines set in the migration source physical machine.

[0053] In an embodiment of the present application, a comprehensive migration priority score of each of the K virtual machines can be obtained; the comprehensive migration priority score is obtained based on the load level, migration cost, number of migrations and business importance index of the virtual machine; based on the comprehensive migration priority score of each of the K virtual machines, the virtual machine to be migrated is determined.

[0054] Step 250: Determine the migration destination physical machine of the virtual machine to be migrated.

[0055] In the embodiment of the present application, the migration destination physical machine is a physical machine whose temperature is lower than that of the migration source physical machine. L and low temperature cabinet C L After the security physical machines in the migration are selected, a performance prediction trend line of the security physical machines is generated according to the current performance data of the security physical machines (such as CPU utilization, memory utilization, etc.). According to the performance prediction trend line, security physical machines with sufficient remaining resource capacity in a long period of time are selected from the security physical machines as the migration destination physical machines; security physical machines in a low power consumption state or with high energy efficiency can also be preferentially selected as the migration destination physical machines.

[0056] Step 260: Migrate the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine.

[0057] In an embodiment of the present application, the temperatures of M physical machines in the cabinet are predicted based on a simulation environment of a digital twin model, so that N physical machines with predicted temperatures greater than a threshold are selected as migration source physical machines based on the predicted temperatures of the M physical machines, so as to more accurately determine the physical machine that is about to exceed the temperature limit as the migration source physical machine.

[0058] See also Figure 3 , Figure 3 A flowchart of a virtual machine data migration method provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the method comprises the following steps:

[0059] Step 310: Determine a migration source physical machine whose temperature is greater than a threshold through a digital twin model, wherein K virtual machines are arranged in the migration source physical machine.

[0060] In an embodiment of the present application, the digital twin model is constructed based on various characterization data of various physical entities and logical entities, and the digital twin model is used to predict the temperature of the physical machine in the cabinet through a simulation environment.

[0061] In an embodiment of the present application, the temperatures of M physical machines in a cabinet can be predicted based on the simulation environment of a digital twin model; based on the predicted temperatures of the M physical machines, N physical machines with predicted temperatures greater than a threshold are screened out from the M physical machines; and the N physical machines are determined as migration source physical machines, wherein the number of virtual machines set in the migration source physical machine is K.

[0062] Step 320: Obtain a comprehensive migration priority score for each of the K virtual machines; the comprehensive migration priority score is obtained based on the load level, migration cost, number of migrations and business importance index of the virtual machine.

[0063] In the embodiment of the present application, the load level P is the ratio of the resources currently used by a physical machine / virtual machine to its configured resources. The higher the load level, the higher the resource utilization of the physical machine / virtual machine. Therefore, in the migration decision, we need to give these physical machines / virtual machines a higher priority; the migration cost Cost refers to the degree of degradation of the business service quality caused by the virtual machine migration. Virtual machines carrying different businesses have different requirements for service quality. The higher the migration cost, the more serious the service quality degradation of the business carried by the virtual machine. The migration cost can be measured by indicators such as the migration time and the amount of virtual machine performance degradation; the number of migrations n, considering that the migration of the virtual machine will affect the stability of the physical host where the virtual machine is located, if a virtual machine migrates frequently, we need to make the number of migrations n show a rapid downward trend; by setting a weight for each priority factor, and then adjusting these weights based on actual conditions to meet the needs of different scenarios.

[0064] In the embodiment of the present application, the comprehensive migration priority score of the i-th virtual machine among the K virtual machines can be calculated by the following formula:

[0065] S i =w p *P(p cpu ,p mem ,p stor )+w c *C(t i ,d i )+w n *f(n i )+w s *g i

[0066] Among them, S irepresents the comprehensive migration priority score of the i-th virtual machine among K virtual machines; P(p cpu , p mem , p stor ) represents a function related to the load level, p cpu is the CPU utilization, p mem is the memory utilization, p stor is the storage utilization rate; C(t i ,d i ) represents a function related to the migration cost, which is determined by the migration time t i , virtual machine performance degradation d i decision; f(n i ) represents the number of migrations n i The related function satisfies the requirement that as the number of migrations increases, the function result shows a rapid downward trend; g i Indicates the business importance indicator associated with the virtual machine; w p is the weight of the load factor, w c is the weight of the migration cost factor, w n is the weight of the migration number factor, w s is the weight of the business importance indicator. The more important the business is, the higher the s The bigger.

[0067] Step 330: Determine the virtual machine to be migrated based on the comprehensive migration priority score of each of the K virtual machines. Specifically, after calculating the comprehensive migration priority score of each of the K virtual machines, a virtual machine sequence to be migrated including the K virtual machines can be generated based on the size of the comprehensive migration priority score of each of the K virtual machines, and the virtual machine to be migrated is determined from the sequence of virtual machines to be migrated based on certain rules, for example, the virtual machine with the highest comprehensive migration priority score in the sequence of virtual machines to be migrated is determined as the virtual machine to be migrated, or the virtual machines ranked in the top three in the sequence of virtual machines to be migrated are determined as the virtual machines to be migrated.

[0068] Step 340: Determine a migration destination physical machine of the virtual machine to be migrated, wherein the temperature of the migration destination physical machine is lower than the temperature of the migration source physical machine;

[0069] Step 350: Migrate the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine.

[0070] In an embodiment of the present application, a migration sorting strategy based on multi-factor weighting is used to calculate the comprehensive migration priority scores of K virtual machines. According to the comprehensive migration priority scores of the K virtual machines, a virtual machine to be migrated is determined from the K virtual machines to improve migration efficiency.

[0071] In one embodiment of the present application, the comprehensive migration priority score of the i-th virtual machine among the K virtual machines may be calculated by the following formula:

[0072] S i =w p *P(p cpu ,p mem ,p stor )+w c *C(t i ,d i )+w n *f(n i )+w s *g i

[0073] Among them, S i represents the comprehensive migration priority score of the i-th virtual machine among K virtual machines; P(p cpu , p mem , p stor ) represents a function related to the load level, p cpu is the CPU utilization, p mem is the memory utilization, p stor is the storage utilization rate; C(t i ,d i ) represents a function related to the migration cost, which is determined by the migration time t i , virtual machine performance degradation d i decision; f(n i ) represents the number of migrations n i The related function satisfies the requirement that as the number of migrations increases, the function result shows a rapid downward trend; g i Indicates the business importance indicator associated with the virtual machine; w p is the weight of the load factor, w c is the weight of the migration cost factor, w n is the weight of the migration number factor, w s is the weight of the business importance indicator. The more important the business is, the higher the s The bigger.

[0074] See also Figure 4 , Figure 4 A flowchart of a virtual machine data migration method provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the method comprises the following steps:

[0075] Step 410: Determine, through the digital twin model, a migration source physical machine whose temperature is greater than a threshold, wherein a virtual machine is configured in the migration source physical machine.

[0076] In an embodiment of the present application, the digital twin model is constructed based on various characterization data of various physical entities and logical entities, and the digital twin model is used to predict the temperature of the physical machine in the cabinet through a simulation environment.

[0077] In an embodiment of the present application, the temperatures of M physical machines in a cabinet can be predicted based on the simulation environment of a digital twin model; based on the predicted temperatures of the M physical machines, N physical machines with predicted temperatures greater than a threshold are screened out from the M physical machines; and the N physical machines are determined as migration source physical machines, wherein the number of virtual machines set in the migration source physical machine is K.

[0078] Step 420: Determine the virtual machine to be migrated from the virtual machines set in the migration source physical machine.

[0079] In an embodiment of the present application, a comprehensive migration priority score of each of the K virtual machines can be obtained; the comprehensive migration priority score is obtained based on the load level, migration cost, number of migrations and business importance index of the virtual machine; based on the comprehensive migration priority score of each of the K virtual machines, the virtual machine to be migrated is determined.

[0080] Step 430: Determine a migration destination physical machine of the virtual machine to be migrated, wherein the temperature of the migration destination physical machine is lower than the temperature of the migration source physical machine;

[0081] Step 440: Determine a target migration strategy for the virtual machine to be migrated, wherein the target migration strategy includes the virtual machine to be migrated and the migration destination physical machine. Optionally, if the number of virtual machines to be migrated is greater than 1, determine a target migration strategy for each of the multiple virtual machines to be migrated, wherein each target migration strategy includes the virtual machine to be migrated and the migration destination physical machine corresponding to the virtual machine to be migrated.

[0082] Step 450: Input the target migration strategy of the virtual machine to be migrated into the digital twin model. Optionally, if the number of virtual machines to be migrated is greater than 1, the target migration strategy determined for each of the multiple virtual machines to be migrated is sequentially input into the digital twin model.

[0083] Step 460: Simulate the target migration strategy through the digital twin model to obtain a simulation result.

[0084] In an embodiment of the present application, after receiving the target migration strategy including the migration virtual machine and the migration destination physical machine, the digital twin model simulates the execution of the target migration strategy based on the current performance data and historical performance data of each physical machine in the digital twin model to obtain a simulation result. The simulation result may include the temperature of the migration source physical machine, the temperature of the migration destination physical machine, and the resource utilization and storage space utilization of the migration destination physical machine after simulating the execution of the target migration strategy.

[0085] Step 470: When the simulation result meets the target condition, the target migration strategy is output through the digital twin model.

[0086] In an embodiment of the present application, the simulation result satisfies the target condition including: the simulation result indicates that the temperature of the migration source physical machine has been reduced to a safe range, and the temperature of the migration destination physical machine is still within a safe range within the target time after the virtual machine migration. For example, in the case where the simulation result includes the temperature of the migration source physical machine and the temperature of the migration destination physical machine after the simulation execution of the target migration strategy, if the temperature of the migration source physical machine and the temperature of the migration destination physical machine are both lower than the high temperature warning value of the physical machine after the simulation execution of the target migration strategy, it is determined that the simulation result satisfies the target condition, and the target migration strategy is output through the digital twin model.

[0087] Step 480: Migrate the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine using the output target migration policy to obtain a migration result.

[0088] In an embodiment of the present application, the temperature of the migration source physical machine can be detected based on a preset time period. If the temperature of the migration source physical machine rises and is greater than a threshold value within the preset period, it is determined to execute the target migration strategy on the migration source physical machine, migrate the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine, obtain the migration result, and feed the migration result back to the digital twin model, which is stored as historical data by the digital twin model for the digital twin model to optimize model parameters. If the migration is unsuccessful, the virtual machine to be migrated is still on the migration source physical machine and will not affect the business.

[0089] In an embodiment of the present application, a digital twin system is used to simulate the target migration strategy to simulate the temperature and resource conditions of the migration destination physical machine for a period of time after the implementation of the migration strategy, to ensure that the temperature of the migration destination physical machine and the migration source physical machine has dropped to a safe range after the implementation of the migration strategy, and to avoid ping-pong migration and invalid migration.

[0090] See also Figure 5 , Figure 5 A flowchart of a virtual machine data migration method provided in an embodiment of the present application is shown in FIG. Figure 5As shown, the method comprises the following steps:

[0091] Step 510: Based on the simulation environment of the digital twin model, the temperatures of the M physical machines in the cabinet are predicted.

[0092] In one embodiment of the present application, the digital twin model is constructed based on various characterization data of various physical entities and logical entities, and the digital twin model is used to predict the temperature of the physical machine in the cabinet through a simulation environment. Specifically, various characterization data of various physical entities (such as physical machines) and logical entities in the cloud resource pool are obtained, and various physical entities and logical entities include but are not limited to computer rooms, cabinets, cabinets, air conditioners, monitoring, servers, networks and security equipment. The various characterization data are used to build a digital twin system. The various characterization data in the digital twin system are one-to-one mapping relationships with the various characterization data in the actual cloud resource pool. The data of the digital twin system includes but is not limited to resources, alarms, logs, and performance data. Resource data refers to the location and relationship of computer rooms, cabinets, cabinets, air conditioners, monitoring, servers, networks and security equipment. Based on resource data, 3D models of various physical entities are constructed. The 3D model includes the spatial location of each physical entity and the connection relationship between physical entities, which is equivalent to a visual relationship diagram; performance data can include equipment performance data, business performance data and environmental data of each physical entity; among them, equipment performance data includes indicators such as the central processing unit (CPU) utilization, memory utilization, storage utilization, input / output (I / O) data, and network link bandwidth utilization of physical servers and virtual machines; business performance data includes various key indicators that characterize upper-level business; environmental data includes relevant performance indicators of air conditioners and power systems. In order to ensure that the digital twin model can accurately reflect the real situation of physical machines in the real world and predict and optimize their performance, the digital twin model needs to continuously update and synchronize various data of each physical machine so as to adjust the simulation status in time.

[0093] In an embodiment of the present application, the temperature trend curve of each of the M physical machines can be obtained by continuously fitting the historical temperature data of the M physical machines in the cabinet stored in the digital twin model, and the temperature trend curve may include the predicted temperature of the physical machine. The generation of the temperature trend curve can be achieved by a time series prediction algorithm, such as an autoregressive integrated moving average model (ARIMA), a long short-term memory (LSTM) algorithm, a time series prediction algorithm, and the like.

[0094] Step 513: Based on the predicted temperatures of the M physical machines, select N physical machines whose predicted temperatures are greater than a threshold from the M physical machines.

[0095] In the embodiment of the present application, a cabinet high temperature warning value, a physical machine high temperature warning value and a cabinet high temperature warning ratio can be set. When the temperature of the cabinet temperature measurement point is greater than or equal to the cabinet high temperature warning value, or the proportion of physical machines with a physical machine temperature greater than or equal to the physical machine high temperature warning value among the M physical machines in the cabinet is greater than or equal to the cabinet high temperature warning ratio, the cabinet is determined to be a high temperature cabinet C. H , the high temperature cabinet C H All physical machines in the cabinet are determined as N physical machines whose predicted temperatures are greater than the threshold. Based on the cabinet predicted temperature predicted by the temperature trend curve and the physical machine predicted temperatures of the M physical machines in the cabinet, when the cabinet predicted temperature is greater than or equal to the cabinet high temperature warning value, or the proportion of physical machines whose predicted temperatures among the M physical machines in the cabinet are greater than or equal to the physical machine high temperature warning value to the total number of physical machines in the cabinet is greater than or equal to the cabinet high temperature warning ratio, the cabinet is determined as a potential high temperature cabinet C. PH , the potential high temperature cabinet C PH All physical machines in are determined as N physical machines whose predicted temperatures are greater than a threshold.

[0096] In the embodiment of the present application, a cabinet temperature safety value is set. When the temperature of the cabinet temperature measurement point is less than or equal to the cabinet temperature safety value and the server temperatures of all servers in the cabinet are less than the server high temperature warning value, the cabinet is determined as a low temperature cabinet C. L , put the low temperature cabinet C L All physical machines in the are identified as safe physical machines.

[0097] Step 516: The N physical machines are determined as migration source physical machines, and K virtual machines are set in the migration source physical machines.

[0098] Step 519: Obtain a comprehensive migration priority score for each of the K virtual machines; the comprehensive migration priority score is obtained based on the load level, migration cost, number of migrations and business importance index of the virtual machine.

[0099] In the embodiment of the present application, the load level P is the ratio of the resources currently used by a physical machine / virtual machine to its configured resources. The higher the load level, the higher the resource utilization of the physical machine / virtual machine. Therefore, in the migration decision, we need to give these physical machines / virtual machines a higher priority; the migration cost Cost refers to the degree of degradation of the business service quality caused by the virtual machine migration. Virtual machines carrying different businesses have different requirements for service quality. The higher the migration cost, the more serious the service quality degradation of the business carried by the virtual machine. The migration cost can be measured by indicators such as the migration time and the amount of virtual machine performance degradation; the number of migrations n, considering that the migration of the virtual machine will affect the stability of the physical host where the virtual machine is located, if a virtual machine migrates frequently, we need to make the number of migrations n show a rapid downward trend; by setting a weight for each priority factor, and then adjusting these weights based on actual conditions to meet the needs of different scenarios.

[0100] In the embodiment of the present application, the comprehensive migration priority score of the i-th virtual machine among the K virtual machines can be calculated by the following formula:

[0101] S i =w p *P(p cpu ,p mem ,p stor )+w c *C(t i ,d i )+w n *f(n i )+w s *g i

[0102] Among them, S i represents the comprehensive migration priority score of the i-th virtual machine among K virtual machines; P(p cpu , p mem , p stor ) represents a function related to the load level, p cpu is the CPU utilization, p mem is the memory utilization, p stor is the storage utilization rate; C(t i ,d i ) represents a function related to the migration cost, which is determined by the migration time t i , virtual machine performance degradation d i decision; f(n i ) represents the number of migrations n i The related function satisfies the requirement that as the number of migrations increases, the function result shows a rapid downward trend; g i Indicates the business importance indicator associated with the virtual machine; w pis the weight of the load factor, w c is the weight of the migration cost factor, w n is the weight of the migration number factor, w s is the weight of the business importance indicator. The more important the business is, the higher the s The bigger.

[0103] Step 522: Determine the virtual machine to be migrated based on the comprehensive migration priority score of each of the K virtual machines. Specifically, after calculating the comprehensive migration priority score of each of the K virtual machines, a virtual machine sequence to be migrated including the K virtual machines can be generated based on the size of the comprehensive migration priority score of each of the K virtual machines, and the virtual machine to be migrated is determined from the sequence of virtual machines to be migrated based on certain rules, for example, the virtual machine with the highest comprehensive migration priority score in the sequence of virtual machines to be migrated is determined as the virtual machine to be migrated, or the virtual machines ranked in the top three in the sequence of virtual machines to be migrated are determined as the virtual machines to be migrated.

[0104] Step 525: Determine the migration destination physical machine of the virtual machine to be migrated.

[0105] In the embodiment of the present application, the migration destination physical machine is a physical machine whose temperature is lower than that of the migration source physical machine. L and low temperature cabinet C L After the security physical machines in the migration are selected, a performance prediction trend line of the security physical machines is generated according to the current performance data of the security physical machines (such as CPU utilization, memory utilization, etc.). According to the performance prediction trend line, security physical machines with sufficient remaining resource capacity in a long period of time are selected from the security physical machines as the migration destination physical machines; security physical machines in a low power consumption state or with high energy efficiency can also be preferentially selected as the migration destination physical machines.

[0106] Step 528: Determine a target migration strategy for the virtual machine to be migrated, wherein the target migration strategy includes the virtual machine to be migrated and the migration destination physical machine. Optionally, if the number of virtual machines to be migrated is greater than 1, a target migration strategy is determined for each of the multiple virtual machines to be migrated, wherein each target migration strategy includes the virtual machine to be migrated and the migration destination physical machine corresponding to the virtual machine to be migrated.

[0107] Step 531: Input the target migration strategy of the virtual machine to be migrated into the digital twin model. Optionally, if the number of virtual machines to be migrated is greater than 1, the target migration strategy determined for each of the multiple virtual machines to be migrated is sequentially input into the digital twin model.

[0108] Step 534: Simulate the target migration strategy through the digital twin model to obtain a simulation result.

[0109] In an embodiment of the present application, after receiving the target migration strategy including the migration virtual machine and the migration destination physical machine, the digital twin model simulates the execution of the target migration strategy based on the current performance data and historical performance data of each physical machine in the digital twin model to obtain a simulation result. The simulation result may include the temperature of the migration source physical machine, the temperature of the migration destination physical machine, and the resource utilization and storage space utilization of the migration destination physical machine after simulating the execution of the target migration strategy.

[0110] Step 537: When the simulation result meets the target condition, the target migration strategy is output through the digital twin model.

[0111] In an embodiment of the present application, the simulation result satisfies the target condition including: the simulation result indicates that the temperature of the migration source physical machine has been reduced to a safe range, and the temperature of the migration destination physical machine is still within a safe range within the target time after the virtual machine migration. For example, in the case where the simulation result includes the temperature of the migration source physical machine and the temperature of the migration destination physical machine after the simulation execution of the target migration strategy, if the temperature of the migration source physical machine and the temperature of the migration destination physical machine are both lower than the high temperature warning value of the physical machine after the simulation execution of the target migration strategy, it is determined that the simulation result satisfies the target condition, and the target migration strategy is output through the digital twin model.

[0112] Step 540: Migrate the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine using the output target migration policy to obtain a migration result.

[0113] In an embodiment of the present application, the temperature of the migration source physical machine can be detected based on a preset time period. If the temperature of the migration source physical machine rises and is greater than a threshold value within the preset period, it is determined to execute the target migration strategy on the migration source physical machine, migrate the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine, obtain the migration result, and feed the migration result back to the digital twin model, which is stored as historical data by the digital twin model for the digital twin model to optimize model parameters. If the migration is unsuccessful, the virtual machine to be migrated is still on the migration source physical machine and will not affect the business.

[0114] In an embodiment of the present application, a migration source physical machine whose temperature is greater than a threshold is determined by a digital twin model, and a virtual machine is set in the migration source physical machine; a virtual machine to be migrated is determined from the virtual machines set in the migration source physical machine; a migration destination physical machine of the virtual machine to be migrated is determined, and the temperature of the migration destination physical machine is lower than the temperature of the migration source physical machine; and the virtual machine to be migrated is migrated from the migration source physical machine to the migration destination physical machine. In this way, the virtual machine to be migrated is determined from the migration source physical machine whose temperature is greater than the threshold determined by the digital twin model, and the virtual machine to be migrated is migrated from the migration source physical machine to the migration destination physical machine whose temperature is lower than that of the migration source physical machine, so as to avoid the virtual machine to be migrated in the migration source physical machine being unusable after the migration source physical machine goes down due to excessive temperature.

[0115] Figure 6 600 is a structural block diagram of a virtual machine data migration device 600 provided in an embodiment of the present application. Figure 6 The virtual machine data migration device 600 provided in the embodiment of the present application includes:

[0116] The determination module 610 is used to determine a migration source physical machine whose temperature is greater than a threshold through a digital twin model, wherein a virtual machine is set in the migration source physical machine; determine a virtual machine to be migrated from the virtual machines set in the migration source physical machine; determine a migration destination physical machine of the virtual machine to be migrated, wherein the temperature of the migration destination physical machine is lower than the temperature of the migration source physical machine;

[0117] The migration module 620 is used to migrate the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine.

[0118] In an embodiment of the present application, a migration source physical machine whose temperature is greater than a threshold is determined by a digital twin model, and a virtual machine is set in the migration source physical machine; a virtual machine to be migrated is determined from the virtual machines set in the migration source physical machine; a migration destination physical machine of the virtual machine to be migrated is determined, and the temperature of the migration destination physical machine is lower than the temperature of the migration source physical machine; and the virtual machine to be migrated is migrated from the migration source physical machine to the migration destination physical machine. In this way, the virtual machine to be migrated is determined from the migration source physical machine whose temperature is greater than the threshold determined by the digital twin model, and the virtual machine to be migrated is migrated from the migration source physical machine to the migration destination physical machine whose temperature is lower than that of the migration source physical machine, so as to avoid the virtual machine to be migrated in the migration source physical machine being unusable after the migration source physical machine goes down due to excessive temperature.

[0119] In an embodiment of the present application, the digital twin model is constructed based on various characterization data of various physical entities and logical entities, and the digital twin model is used to predict the temperature of the physical machine in the cabinet through a simulation environment.

[0120] In the embodiment of the present application, in the process of determining the migration source physical machine whose temperature is greater than the threshold value through the digital twin model, the determination module 610 is specifically used to:

[0121] Based on the simulation environment of the digital twin model, the temperature of M physical machines in the cabinet is predicted;

[0122] Based on the predicted temperatures of the M physical machines, N physical machines having predicted temperatures greater than a threshold are selected from the M physical machines;

[0123] The N physical machines are determined as migration source physical machines.

[0124] In the embodiment of the present application, the number of virtual machines set in the migration source physical machine is K; in the process of determining the virtual machine to be migrated from the virtual machines set in the migration source physical machine, the determination module 610 is specifically used to:

[0125] Obtaining a comprehensive migration priority score for each of the K virtual machines; the comprehensive migration priority score is obtained based on the load level, migration cost, number of migrations, and business importance index of the virtual machine;

[0126] A virtual machine to be migrated is determined based on the comprehensive migration priority score of each of the K virtual machines.

[0127] In the embodiment of the present application, the comprehensive migration priority score of the i-th virtual machine among the K virtual machines is calculated by the following formula:

[0128] Si=wp*P(pcpu,pmem,pstor)+wc*C(ti,di)+wn*f(ni)+ws*gi

[0129] Among them, S i represents the comprehensive migration priority score of the i-th virtual machine among K virtual machines; P(pcpu, pmem, pstor) represents a function related to the load level, pcpu is the CPU utilization, pmem is the memory utilization, and pstor is the storage utilization; C(t i ,d i ) represents a function related to the migration cost, which is determined by the migration duration ti and the performance degradation di of the virtual machine; f(ni) represents a function related to the number of migrations ni, which satisfies the requirement that the function result shows a rapid downward trend as the number of migrations increases; gi represents the business importance index associated with the virtual machine; wp is the weight of the load factor, wc is the weight of the migration cost factor, wn is the weight of the number of migrations factor, and ws is the weight of the business importance index factor. The more important the business is, the larger the ws is.

[0130] In the embodiment of the present application, after determining the migration destination physical machine of the virtual machine to be migrated, the determination module 610 is further used to determine the target migration strategy of the virtual machine to be migrated, and the target migration strategy includes the virtual machine to be migrated and the migration destination physical machine;

[0131] Inputting the target migration strategy of the virtual machine to be migrated into the digital twin model;

[0132] Simulating the target migration strategy through the digital twin model to obtain a simulation result;

[0133] When the simulation result meets the target condition, the target migration strategy is output through the digital twin model; wherein the simulation result meets the target condition includes: the simulation result indicates that the temperature of the migration source physical machine has been reduced to a safe range, and the temperature of the migration destination physical machine is still within the safe range within the target time after the virtual machine migration;

[0134] The migrating the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine includes: using the output target migration strategy to migrate the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine to obtain a migration result; the migration result is used for the digital twin model to optimize model parameters.

[0135] like Figure 7 As shown, the embodiment of the present application also provides an electronic device 700, which can be various types of computers, etc. The electronic device 700 includes: a processor 710 and a memory 720, and the memory 720 stores a program or instruction, and the program or instruction is executed by the processor 710 to implement the steps of any of the methods described above. For example, when the program is executed by the processor 710, the following process is implemented: determining a migration source physical machine with a temperature greater than a threshold through a digital twin model, and a virtual machine is set in the migration source physical machine; determining a virtual machine to be migrated from the virtual machines set in the migration source physical machine; determining a migration destination physical machine for the virtual machine to be migrated, and the temperature of the migration destination physical machine is lower than the temperature of the migration source physical machine; migrating the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine. In this way, the virtual machine to be migrated is determined from the migration source physical machine whose temperature is greater than the threshold determined by the digital twin model, and the virtual machine to be migrated is migrated from the migration source physical machine to the migration destination physical machine whose temperature is lower than that of the migration source physical machine, so as to avoid the virtual machine to be migrated in the migration source physical machine being unusable after the migration source physical machine is shut down due to excessive temperature.

[0136] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the virtual machine data migration method provided in any of the above embodiments are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0137] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0138] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0139] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0140] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0141] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0142] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for virtual machine data migration, characterized in that: include: Determine, by means of a digital twin model, a migration source physical machine whose temperature is greater than a threshold, wherein a virtual machine is provided in the migration source physical machine; Determine a virtual machine to be migrated from the virtual machines set in the migration source physical machine; Determine a migration destination physical machine of the virtual machine to be migrated, wherein the temperature of the migration destination physical machine is lower than the temperature of the migration source physical machine; Migrate the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine.

2. The method according to claim 1, characterized in that The digital twin model is constructed based on various characterization data of various physical entities and logical entities, and the digital twin model is used to predict the temperature of the physical machine in the cabinet through a simulation environment.

3. The method according to claim 1, characterized in that The step of determining the migration source physical machine whose temperature is greater than a threshold value by using the digital twin model includes: Based on the simulation environment of the digital twin model, the temperature of M physical machines in the cabinet is predicted; Based on the predicted temperatures of the M physical machines, N physical machines having predicted temperatures greater than a threshold are selected from the M physical machines; The N physical machines are determined as migration source physical machines.

4. The method according to claim 1, characterized in that: The number of virtual machines set in the migration source physical machine is K; and determining the virtual machine to be migrated from the virtual machines set in the migration source physical machine includes: Obtaining a comprehensive migration priority score for each of the K virtual machines; the comprehensive migration priority score is obtained based on the load level, migration cost, number of migrations, and business importance index of the virtual machine; A virtual machine to be migrated is determined based on the comprehensive migration priority score of each of the K virtual machines.

5. The method according to claim 4, characterized in that The comprehensive migration priority score of the i-th virtual machine among the K virtual machines is calculated using the following formula: S i =w p *P(p cpu ,p mem ,p stor )+w c *C(t i ,d i )+w n *f(n i )+w s *g i Among them, S i represents the comprehensive migration priority score of the i-th virtual machine among K virtual machines; P(p cpu , p mem , p stor ) represents a function related to the load level, p cpu is the CPU utilization, p mem is the memory utilization, p stor is the storage utilization rate; C(t i , d i ) represents a function related to the migration cost, which is determined by the migration time t i , virtual machine performance degradation d i decision; f(n i ) represents the number of migrations n i The related function satisfies the requirement that as the number of migrations increases, the function result shows a rapid downward trend; g i Indicates the business importance indicator associated with the virtual machine; w p is the weight of the load factor, w c is the weight of the migration cost factor, w n is the weight of the migration number factor, w s is the weight of the business importance indicator. The more important the business is, the higher the s The bigger.

6. The method according to any one of claims 1 to 5, characterized in that: After determining the migration destination physical machine of the virtual machine to be migrated, the method further includes: Determine a target migration strategy for the virtual machine to be migrated, wherein the target migration strategy includes the virtual machine to be migrated and a migration destination physical machine; Inputting the target migration strategy of the virtual machine to be migrated into the digital twin model; Simulating the target migration strategy through the digital twin model to obtain a simulation result; When the simulation result meets the target condition, the target migration strategy is output through the digital twin model; wherein the simulation result meets the target condition includes: the simulation result indicates that the temperature of the migration source physical machine has been reduced to a safe range, and the temperature of the migration destination physical machine is still within the safe range within the target time after the virtual machine migration; The migrating the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine includes: using the output target migration strategy to migrate the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine to obtain a migration result; the migration result is used for the digital twin model to optimize model parameters.

7. A virtual machine data migration device, characterized in that: include: A determination module, used to determine a migration source physical machine whose temperature is greater than a threshold through a digital twin model, wherein a virtual machine is provided in the migration source physical machine; Determine a virtual machine to be migrated from the virtual machines set in the migration source physical machine; Determine a migration destination physical machine of the virtual machine to be migrated, wherein the temperature of the migration destination physical machine is lower than the temperature of the migration source physical machine; The migration module is used to migrate the virtual machine to be migrated from the migration source physical machine to the migration destination physical machine.

8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, characterized in that: The medium stores a program or an instruction, and when the program or the instruction is executed, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 6.