CN116521321A - Migration method and device of virtual machine, processor and electronic equipment - Google Patents

Migration method and device of virtual machine, processor and electronic equipment Download PDF

Info

Publication number
CN116521321A
CN116521321A CN202310583096.8A CN202310583096A CN116521321A CN 116521321 A CN116521321 A CN 116521321A CN 202310583096 A CN202310583096 A CN 202310583096A CN 116521321 A CN116521321 A CN 116521321A
Authority
CN
China
Prior art keywords
server
servers
target
virtual machines
virtual machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310583096.8A
Other languages
Chinese (zh)
Inventor
孙浩艺
秦小博
赵堤
周炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310583096.8A priority Critical patent/CN116521321A/en
Publication of CN116521321A publication Critical patent/CN116521321A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques
    • G06F11/203Failover techniques using migration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a migration method and device of a virtual machine, a processor and electronic equipment. Relates to the field of cloud computing, and the method comprises the following steps: under the condition that the server operates, if alarm information is detected, analyzing the alarm information to determine a fault server, and acquiring the type of a server node of the fault server; determining M initial servers from a fault isolation domain according to the type of the server node, wherein the fault isolation domain is formed by servers except for a fault server in a server set; and acquiring performance parameters of each initial server, screening servers with performance parameters meeting preset performance requirements from the M initial servers to obtain N target servers, and migrating the X virtual machines to the servers in the N target servers. According to the method and the device for transferring the virtual machine, the problems that in the related art, the virtual machine needing to be transferred is easy to miss when the virtual machine of the fault server is transferred, and a large amount of manpower resources are wasted when the server capable of being transferred is determined are solved.

Description

Migration method and device of virtual machine, processor and electronic equipment
Technical Field
The present application relates to the field of cloud computing, and in particular, to a migration method and apparatus of a virtual machine, a processor, and an electronic device.
Background
With the rapid development of information technology application innovation industry and cloud platforms, distributed shared cloud service is widely applied to different fields, and high-stability operation service can be provided through a resource pooling mode. The infrastructure cloud is provided with a plurality of physical server nodes for management, calculation, storage and the like, the physical server can obtain a plurality of Virtual machines (Virtual machines) through virtualization, and a Virtual computer system constructed through the Virtual machines can demonstrate various environments and provide Virtual services, so that stable operation of the infrastructure cloud needs to be ensured for normal use of various services.
When a certain physical server in the basic equipment cloud cannot normally run, in order to ensure normal use of the functions of the basic equipment cloud, emergency evacuation needs to be carried out on the virtual machines in the physical server, but the emergency evacuation mode in the prior art is generally configured manually, so that a large amount of labor cost is wasted, a omission phenomenon can exist after configuration, and service faults are caused.
Aiming at the problems that virtual machines needing to be migrated are easy to miss when virtual machines of a fault server are migrated and a large amount of manpower resources are wasted when a migratable server is determined in the related art, no effective solution is proposed at present.
Disclosure of Invention
The main objective of the present application is to provide a migration method, apparatus, processor and electronic device for a virtual machine, so as to solve the problems in the related art that a virtual machine that needs to be migrated is easily omitted when a virtual machine of a failed server is migrated, and a lot of human resources are wasted when a server that can be migrated is determined.
In order to achieve the above object, according to one aspect of the present application, there is provided a migration method of a virtual machine. The method comprises the following steps: under the condition that the server operates, if alarm information is detected, analyzing the alarm information to determine a fault server, and acquiring the type of a server node of the fault server, wherein the fault server comprises X virtual machines; determining M initial servers from a fault isolation domain according to the type of the server node, wherein the fault isolation domain is formed by servers except for a fault server in a server set; and acquiring performance parameters of each initial server, screening servers with performance parameters meeting preset performance requirements from M initial servers to obtain N target servers, and migrating X virtual machines to the servers in the N target servers, wherein M, N, X is a positive integer, and M is greater than or equal to N.
Optionally, the node type includes a computing node and a management node, and determining M initial servers from the fault isolation domain according to the server node type includes: acquiring an associated deployment list of a target service operated by each virtual machine to obtain associated deployment lists of X virtual machines, wherein the associated deployment list contains information of a server where the virtual machine operated by the target service is located, and the target service is operated in at least one virtual machine; determining Y associated servers according to the information of the servers in the associated deployment list of the X virtual machines, wherein Y is a positive integer; under the condition that the node type of the server node is a management node, acquiring servers except Y associated servers in a fault isolation domain to obtain M initial servers; and under the condition that the node type of the server node is a computing node, selecting initial servers from the fault isolation domain to obtain M initial servers.
Optionally, selecting a server whose performance parameter meets a preset performance requirement from the M initial servers, and obtaining N target servers includes: acquiring performance parameters and performance parameter thresholds of each initial server, and comparing each performance parameter with the performance parameter thresholds to obtain a comparison result; and under the condition that the comparison result shows that the initial servers with the performance parameters larger than or equal to the performance parameter threshold value exist, removing the initial servers with the performance parameters larger than or equal to the performance parameter threshold value from the M initial servers to obtain N target servers.
Optionally, migrating the X virtual machines to a server of the N target servers includes: obtaining Z load rates of each target server, and carrying out weighted summation calculation on the Z load rates according to the load rate weights to obtain a performance index value of each target server, wherein Z is a positive integer; and sequencing the N target servers according to the sequence from the big performance index value to the small performance index value to obtain a server sequence, and migrating the X virtual machines to the target servers in the server sequence.
Optionally, in a case that the node type of the server node is a computing node, selecting the initial servers from the fault isolation domain, obtaining M initial servers includes: acquiring performance parameters and performance parameter thresholds of each server in the fault isolation domain, and comparing each performance parameter with the performance parameter thresholds to obtain a comparison result; in the case that the comparison result represents that no server with the performance parameter smaller than the performance parameter threshold exists, determining Y associated servers as M initial servers; and under the condition that the comparison result represents that the server with the performance parameter smaller than the performance parameter threshold value exists, acquiring servers except Y associated servers in the fault isolation domain, and obtaining M initial servers.
Optionally, migrating the X virtual machines to a target server in the server sequence includes: acquiring specification parameters of X virtual machines, and sequencing the X virtual machines according to the sequence of the specification parameters from large to small to obtain a virtual machine sequence; and migrating the X virtual machines to a target server in the server sequence according to the sequence indicated by the virtual machine sequence.
Optionally, migrating the X virtual machines to a target server in the server sequence according to the order indicated by the virtual machine sequence comprises: under the condition that the number of the virtual machines is less than or equal to the number of the target servers, migrating the X virtual machines to the first X target servers in the server sequence; under the condition that the number of the virtual machines is larger than that of the target servers, acquiring the maximum performance parameters of the X virtual machines and the average load parameters of the N target servers, and comparing the average load parameters with the maximum performance parameters;
under the condition that the average load parameter is smaller than or equal to the maximum performance parameter, determining an anchor point virtual machine in a virtual machine sequence according to the average load parameter, sequentially transferring the anchor point virtual machine and the virtual machines before the anchor point virtual machine to N target servers according to a positive sequence, and transferring the virtual machines after the anchor point virtual machine to the N target servers according to a reverse sequence, wherein the positive sequence refers to the arrangement sequence of servers in the server sequence from front to back, and the reverse sequence refers to the arrangement sequence of servers in the server sequence from back to front;
And under the condition that the average load parameter is larger than the maximum performance parameter, sequentially migrating the X virtual machines to the N target servers according to the positive sequence.
In order to achieve the above object, according to another aspect of the present application, there is provided a migration apparatus of a virtual machine. The device comprises: the analysis unit is used for analyzing the alarm information to determine a fault server and acquiring the server node type of the fault server if the alarm information is detected under the condition that the server operates, wherein the fault server comprises X virtual machines; a determining unit, configured to determine M initial servers from a failure isolation domain according to a server node type, where the failure isolation domain is configured by servers other than a failure server in the server set; the system comprises an acquisition unit, a storage unit and a storage unit, wherein the acquisition unit is used for acquiring performance parameters of each initial server, screening servers with performance parameters meeting preset performance requirements from M initial servers to obtain N target servers, and migrating X virtual machines to the servers in the N target servers, wherein M, N, X is a positive integer, and M is greater than or equal to N.
According to another aspect of the embodiment of the present invention, there is further provided a processor, configured to execute a program, where the program controls, when running, a device in which a nonvolatile storage medium is located to execute a migration method of a virtual machine.
According to another aspect of embodiments of the present invention, there is also provided an electronic device including one or more processors and a memory; the memory stores computer readable instructions, and the processor is configured to execute the computer readable instructions, where the computer readable instructions execute a migration method of the virtual machine when executed.
Through the application, the following steps are adopted: under the condition that the server operates, if alarm information is detected, analyzing the alarm information to determine a fault server, and acquiring the type of a server node of the fault server, wherein the fault server comprises X virtual machines; determining M initial servers from a fault isolation domain according to the type of the server node, wherein the fault isolation domain is formed by servers except for a fault server in a server set; the method comprises the steps of obtaining performance parameters of each initial server, screening servers with performance parameters meeting preset performance requirements from M initial servers to obtain N target servers, and migrating X virtual machines to the servers in the N target servers, wherein M is a positive integer or more and N is larger than or equal to M, N, X, so that the problem that virtual machines needing to be migrated are easily omitted when virtual machines of fault servers are migrated in the related art, and a large amount of manpower resources are wasted when the servers capable of being migrated are determined is solved, and the target servers capable of being migrated are obtained by determining the node type of the fault servers and utilizing the node type of the server and the performance parameters of the available servers, so that the effect of accurately migrating the virtual machines in the fault servers is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, illustrate and explain the application and are not to be construed as limiting the application. In the drawings:
FIG. 1 is a flow chart of a migration method of a virtual machine provided according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an alternative virtual machine migration method provided according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a migration apparatus for a virtual machine according to an embodiment of the present application;
fig. 4 is a schematic diagram of an electronic device provided according to an embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, related information (including, but not limited to, user equipment information, user personal information, etc.) and data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present disclosure are information and data authorized by a user or sufficiently authorized by each party.
The present invention is described below in connection with preferred implementation steps, and fig. 1 is a flowchart of a migration method of a virtual machine according to an embodiment of the present application, as shown in fig. 1, where the method includes the following steps:
Step S101, if alarm information is detected under the condition that the server operates, analyzing the alarm information to determine a fault server, and acquiring the server node type of the fault server, wherein the fault server comprises X virtual machines.
Specifically, the alarm information refers to information generated when the server fails, and the failure condition may include abnormal operation of the server, abnormal occurrence of hardware, and the like. The alarm information may include information of a server having a fault in the cloud platform, and may include information of a model of the server having the fault, a server node to which the server having the fault belongs, and the like. A server node represents a physical server, where a physical server includes multiple Virtual machines (Virtual machines) that refer to complete computer systems that are simulated by software and that have complete hardware system functions and run in a server, and a server node refers to a server that provides different resources and different services, and may include a computing node and a management node.
Therefore, when a server fails, in order to smoothly migrate a virtual machine in the failed server to a server capable of operating normally, it is necessary to determine a server available for use according to the server node type of the failed server.
Step S102, determining M initial servers from a fault isolation domain according to the type of the server node, wherein the fault isolation domain is composed of servers except for a fault server in a server set.
Specifically, the fault isolation domain is a logical set of hardware and infrastructure, and is an area of available servers, i.e., a set of servers other than the fault server, obtained when a server node fails and isolates the fault server. An initial server refers to some or all of the servers in the failure isolation domain.
It should be noted that, when the server node type is a computing node, the initial server is a part or all of the servers in the fault isolation domain; in the case where the server node type is a management node, the initial server is a part of the servers in the fault isolation domain.
Step S103, obtaining performance parameters of each initial server, screening servers with performance parameters meeting preset performance requirements from M initial servers to obtain N target servers, and migrating X virtual machines to the servers in the N target servers, wherein M, N, X is a positive integer, and M is greater than or equal to N.
Specifically, the performance parameters of the initial server may be parameters such as the number of available virtual machines and available memory of the available servers in the fault isolation domain, and the target server meeting the performance requirement may be screened from the initial servers according to the acquired performance parameters and a preset performance threshold, where the target server refers to a server capable of migrating the virtual machines.
Since the number of virtual machines and the virtual machine specification which can be accommodated in each target server are different, the target server needs to be selected. Further, after the servers meeting the performance requirements are subjected to priority sequencing, a server sequence can be obtained, and then virtual machines in the fault servers are sequentially migrated to target servers in the server sequence, so that emergency evacuation of the virtual machines in the fault servers is realized.
According to the migration method of the virtual machine, if alarm information is detected under the condition that the server operates, the alarm information is analyzed to determine a fault server, and the server node type of the fault server is obtained, wherein the fault server comprises X virtual machines; determining M initial servers from a fault isolation domain according to the type of the server node, wherein the fault isolation domain is formed by servers except for a fault server in a server set; the method comprises the steps of obtaining performance parameters of each initial server, screening servers with performance parameters meeting preset performance requirements from M initial servers to obtain N target servers, and migrating X virtual machines to the servers in the N target servers, wherein M is a positive integer or more and N is larger than or equal to M, N, X, so that the problem that virtual machines needing to be migrated are easily omitted when virtual machines of fault servers are migrated in the related art, and a large amount of manpower resources are wasted when the servers capable of being migrated are determined is solved, and the target servers capable of being migrated are obtained by determining the node type of the fault servers and utilizing the node type of the server and the performance parameters of the available servers, so that the effect of accurately migrating the virtual machines in the fault servers is achieved.
Optionally, in the migration method of a virtual machine provided by the embodiment of the present application, the node type includes a computing node and a management node, and determining M initial servers from the fault isolation domain according to the server node type includes: acquiring an associated deployment list of a target service operated by each virtual machine to obtain associated deployment lists of X virtual machines, wherein the associated deployment list contains information of a server where the virtual machine operated by the target service is located, and the target service is operated in at least one virtual machine; determining Y associated servers according to the information of the servers in the associated deployment list of the X virtual machines, wherein Y is a positive integer; under the condition that the node type of the server node is a management node, acquiring servers except Y associated servers in a fault isolation domain to obtain M initial servers; and under the condition that the node type of the server node is a computing node, selecting initial servers from the fault isolation domain to obtain M initial servers.
Specifically, the target service refers to a service running in a cloud platform, the service can run in different virtual machines of a plurality of servers, and an associated deployment list can be determined according to the virtual machine running in the target service, for example, when the service running on one virtual machine in a fault server runs on an a virtual machine in an available server and a virtual machine in a available server B simultaneously, the associated deployment list of the virtual machine of the fault server for the service is a-a and B-B.
Further, after the association deployment list of all the virtual machines in the fault server is obtained, information of the servers in the list is obtained, and then the servers in the list are determined to be the association servers, for example, the fault server comprises three virtual machines A, B, C, the association deployment list of the virtual machine a comprises E, F two servers, the association deployment list of the virtual machine B comprises E, H two servers, and the association deployment list of the virtual machine C comprises G, I two servers, and the association server comprises E, F, G, H, I five servers.
Still further, whether the associated server can serve as the initial server is determined based on the server node type of the failed server. If the server node type of the fault server is a management node, the server has the characteristic of anti-affinity, so when the server node type of the fault server is the management node, the associated server of the fault server needs to be removed from the fault isolation domain, and the rest of servers in the fault isolation domain are used as initial servers. If the server node type of the failure server is a computing node, a plurality of servers need to be selected from the failure isolation domain as initial servers by determining the performance of the servers in the failure isolation domain.
It should be noted that, the anti-affinity is a mechanism for preventing dispatch to a specific node, that is, a mechanism based on high reliability and distributed instance deployment, for example, if an application adopts multi-activity deployment, that is, when the application runs on virtual machines of two servers A, B, the influence on the application is 1/2 when the server a has a fault, and if the virtual machine running on the server a is migrated to the server B, the influence on the application is increased to 1 when the server B has a fault, so, in order to ensure sustainable running of the application, enhance high reliability, in the case that the application adopts multi-activity deployment, the characteristics of the anti-affinity can be utilized to make each application instance be distributed on different servers in a distributed manner.
After obtaining a plurality of initial servers, whether the performance parameters in the initial servers meet the performance parameters needs to be judged to obtain target servers, optionally, in the migration method of the virtual machine provided in the embodiment of the application, the server with the performance parameters meeting the preset performance requirements is selected from the M initial servers, and obtaining N target servers includes: acquiring performance parameters and performance parameter thresholds of each initial server, and comparing each performance parameter with the performance parameter thresholds to obtain a comparison result; and under the condition that the comparison result shows that the initial servers with the performance parameters larger than or equal to the performance parameter threshold value exist, removing the initial servers with the performance parameters larger than or equal to the performance parameter threshold value from the M initial servers to obtain N target servers.
Specifically, the performance parameters may include a memory (i.e. vCPU) used by the virtual machine in the server in the fault isolation domain, a memory used by the physical server, a number of virtual machines in the server, and an ST value, where when one or more initial servers with performance parameters greater than or equal to a performance parameter threshold exist in the obtained plurality of initial servers, the initial servers need to be removed, and the remaining initial servers are determined as target servers, where the ST value (steptime) refers to a proportion of CPU Time occupied by other virtual machines in the computing node type server when the system operates in the virtual machine, that is, a proportion of Time occupied by other virtual machines on the same physical server in CPU Time allocated to the current virtual machine.
For example, if 5 initial servers A, B, C, D, E are available according to the server node type, where vCPU and ST values are greater than the performance parameter threshold of vCPU and the performance parameter threshold of ST value, respectively, among the four performance parameters of the a server, the a server needs to be removed, and the B server, the C server, the D server, and the E server are determined as target servers.
Optionally, in the migration method of a virtual machine provided in the embodiment of the present application, when a node type of a server node is a computing node, selecting the initial server from a fault isolation domain, and obtaining M initial servers includes: acquiring performance parameters and performance parameter thresholds of each server in the fault isolation domain, and comparing each performance parameter with the performance parameter thresholds to obtain a comparison result; in the case that the comparison result represents that no server with the performance parameter smaller than the performance parameter threshold exists, determining Y associated servers as M initial servers; and under the condition that the comparison result represents that the server with the performance parameter smaller than the performance parameter threshold value exists, acquiring servers except Y associated servers in the fault isolation domain, and obtaining M initial servers.
When the server node type of the fault server is a computing node, the server node has the characteristic of weak inverse summation, and the initial server can be determined by judging whether the servers in the fault isolation domain meet the performance requirement, and specifically, the performance parameters can include the memory (i.e. vCPU) used by the virtual machines in the servers in the fault isolation domain, the memory used by the physical servers, the number of virtual machines in the servers and the ST value.
After the performance parameters of each server and the performance parameter threshold value of each performance parameter in the fault isolation domain are obtained, each performance parameter of each server is compared with the corresponding performance parameter threshold value. In an alternative embodiment, if the value of one or more performance parameters of each server except the associated server in the fault isolation domain is greater than the performance parameter threshold, that is, if one or more performance parameters of each server except the associated server do not meet the performance requirement of the available server, the associated server in the associated deployment list of the fault server is determined to be the initial server, and then the target server is obtained.
In another alternative embodiment, if each performance parameter of the servers other than the associated server is less than or equal to the performance parameter threshold, determining the server other than the associated server that meets the performance requirement as the initial server, and further obtaining the target server.
It should be noted that weak anti-affinity is a scheduling mechanism based on anti-affinity, and is a mechanism for reducing probability of scheduling to a specific node, that is, when scheduling virtual machines, it is necessary to select servers with anti-affinity as preferentially as possible, if the server cannot be satisfied, that is, all servers do not satisfy anti-affinity, a server currently having weak anti-affinity is selected, for example, there are A, B, C servers in the cloud platform, if an application adopts multi-activity deployment, that is, the application runs on virtual machines of A, B two servers, and when server node types of A, B two servers are computing nodes, in order to ensure sustainable operation of the application, virtual machines in the a server need to be migrated to the C server, but when the server does not satisfy anti-affinity, virtual machines in the a server are migrated to the B server in order to ensure sustainable operation of the a server.
According to the method and the device for determining the performance parameters of the server, the target server which can be migrated when the server node of the fault server is the computing node can be accurately obtained, and therefore migration efficiency is improved.
The order of migrating virtual machines may be determined by using a load rate of a server, and optionally, in the migration method of virtual machines provided in the embodiment of the present application, migrating X virtual machines to a server in N target servers includes: obtaining Z load rates of each target server, and carrying out weighted summation calculation on the Z load rates according to the load rate weights to obtain a performance index value of each target server, wherein Z is a positive integer; and sequencing the N target servers according to the sequence from the big performance index value to the small performance index value to obtain a server sequence, and migrating the X virtual machines to the target servers in the server sequence.
After determining the target servers according to the server node types and the performance parameters of each initial server, in order to smoothly migrate the virtual machines in the fault servers to the target servers, the target servers need to be ordered, specifically, the load rate corresponding to each performance parameter of each target server is obtained, where the load rate may be the utilization rate of the vCPU of the virtual machine in the target server, the proportion of the memory used by the physical server to the total memory, the proportion of the number of virtual machines in the server to the total amount of the virtual machines and the ST value.
Further, based on the requirements of the cloud platform, different normalized weight values are given to each load factor, and the performance index value of each target server is obtained through weighted summation calculation by utilizing the weight value associated with each load factor and each load factor, wherein the performance index value is obtained through the following formula:
performance index value=w 1 * (1-vCPU usage) +w 2 * (1-memory usage) +w 3 * (1-used capacity/total number of accommodations) ×100++w 4 * (1-ST value) ×100%;
wherein w is 1 +w 2 +w 3 +w 4 =1,w 1 、w 2 、w 3 W 4 The method comprises the steps of respectively obtaining the utilization rate of a vCPU of a virtual machine in a target server, the proportion of the memory used by a physical server to the total memory, the proportion of the number of the used containable virtual machines in the server to the total quantity of the containable virtual machines and the weight of ST values.
Still further, according to the calculated performance index value size relation of each target server, sequencing each server in reverse order to obtain a server sequence, and further migrating the virtual machines in the fault servers in sequence by using the server sequence.
Optionally, in the migration method of virtual machines provided in the embodiment of the present application, migrating X virtual machines to a target server in a server sequence includes: acquiring specification parameters of X virtual machines, and sequencing the X virtual machines according to the sequence of the specification parameters from large to small to obtain a virtual machine sequence; and migrating the X virtual machines to a target server in the server sequence according to the sequence indicated by the virtual machine sequence.
Before the virtual machine is migrated by using the server sequence, in order to ensure that the virtual machine can be smoothly migrated to the target server, the specification parameters of the virtual machine need to be ordered, so that the problem that the available space of the target server is too large for the virtual machine is prevented. Specifically, after the specification parameters of each virtual machine in the fault server are obtained, the virtual machines are sorted in a descending order according to the size of the specification parameters, and the virtual machines are sequentially migrated to the server indicated by the order of the server sequence according to the sorting result of the virtual machines, that is, the virtual machine sequence, for example, the fault server comprises A, B, C three virtual machines, 4 migrated target servers D, E, F, G are obtained according to the type of the server node and the performance parameters, the specification parameters of the three virtual machines and the performance index values of the servers are obtained, and then sorted to obtain a virtual machine sequence B, A, C and a server sequence D, F, G, E, and the corresponding virtual machines are migrated to the D server, the F server and the G server respectively according to the virtual machine sequence B, A, C.
Optionally, in the migration method of a virtual machine provided in the embodiment of the present application, migrating X virtual machines to a target server in a server sequence according to an order indicated by the virtual machine sequence includes: under the condition that the number of the virtual machines is less than or equal to the number of the target servers, migrating the X virtual machines to the first X target servers in the server sequence; under the condition that the number of the virtual machines is larger than that of the target servers, acquiring the maximum specification parameters of the X virtual machines and the average load parameters of the N target servers, and comparing the average load parameters with the maximum specification parameters; under the condition that the average load parameter is smaller than or equal to the maximum specification parameter, determining an anchor point virtual machine in a virtual machine sequence according to the average load parameter, sequentially transferring the anchor point virtual machine and the virtual machines before the anchor point virtual machine to N target servers according to a positive sequence, and transferring the virtual machines after the anchor point virtual machine to the N target servers according to a reverse sequence, wherein the positive sequence refers to the arrangement sequence of servers in the server sequence from front to back, and the reverse sequence refers to the arrangement sequence of servers in the server sequence from back to front; and under the condition that the average load parameter is larger than the maximum specification parameter, sequentially migrating the X virtual machines to the N target servers according to the positive sequence.
Specifically, when the virtual machine sequence and the server sequence are utilized to perform migration operation of the virtual machine, the number relation between the virtual machine and the target server needs to be judged, if the number of the virtual machines in the fault server is less than or equal to the number of the target servers, it is indicated that no virtual machine without a migration server exists, and migration operation can be performed according to the virtual machine sequence and the server sequence in a one-to-one correspondence from front to back.
If the number of virtual machines in the fault server is greater than the number of the target servers, the fact that when one virtual machine is stored in each target server, the rest virtual machines have no migratable server is indicated, and at the moment, the virtual machine migration is needed by utilizing the load parameters of the target servers and the specification parameters of the virtual machines.
Specifically, after the specification parameters of all the virtual machines are obtained, the maximum specification parameters are screened out, and the average load parameter added by each target server after the virtual machines are migrated is obtained by calculating all the specification parameters, namely, the specification parameters of all the virtual machines are added and divided by the total number of the target servers.
Further, when the average load parameter is greater than the maximum specification parameter, it indicates that after the virtual machines of the target server number are migrated through the virtual machine sequence, the remaining virtual machines can still be migrated to any one target server, and then the virtual machines are sequentially migrated to the target servers according to the positive sequence of the virtual machine sequence.
When the average load parameter is smaller than or equal to the maximum specification parameter, it indicates that when the virtual machine is migrated through the virtual machine sequence, there may be a virtual machine that cannot be successfully stored because the specification of the virtual machine is larger than the specification of the virtual machine that can be accommodated by the target server, and therefore an anchor virtual machine needs to be determined in the virtual machine sequence according to the average load parameter, where the anchor virtual machine refers to a virtual machine whose specification parameter is approximately equal to the average load parameter. Judging the order of the anchor virtual machine in the virtual machine sequence, sequentially migrating the virtual machines before the order into a target server in the server sequence, and sequentially migrating the virtual machines after the anchor virtual machine into the target server in the reverse order according to the positive order of the virtual machine sequence because the load of the migrated target server exceeds the average load parameter, wherein the positive order of the virtual machine sequence refers to the front-to-back arrangement order of the virtual machines after the anchor virtual machine in the server sequence, the reverse order of the server sequence refers to the back-to-front arrangement order of the servers in the server sequence, for example, the fault server comprises 5 virtual machines, 4 target servers capable of being migrated are obtained according to the type of the server node and the performance parameter, the maximum specification parameter in the 5 virtual machines is larger than the average load parameter of the target server, and at the moment, determining the virtual machines with the same numerical value as the virtual machines according to the average load parameter, namely the anchor virtual machine, and determining the order in the virtual machine sequence according to the name of the anchor virtual machine: and in the third position, migrating the first three virtual machines containing the anchor virtual machine to a server with the positive sequence of the server sequence, and migrating the second two virtual machines to a server with the reverse sequence of the server sequence.
The embodiment of the application also provides a migration method of the virtual machine, and fig. 2 is a schematic diagram of an alternative migration method of the virtual machine, as shown in fig. 2, where the method includes:
under the condition that the server operates, if the alarm information is detected, the information of the server with the fault is obtained according to the alarm information, the fault server and the server node type of the server are further obtained, and the server capable of being migrated is determined according to the server node type.
Firstly, acquiring an association deployment list of all virtual machines in a fault server to obtain information of servers in the list, further determining the servers in the list as association servers, and further judging whether the association servers can be used as initial servers according to the server node types of the fault servers. If the server node type of the fault server is a management node, the associated server of the fault server needs to be removed from the available server set, and the rest servers in the fault isolation domain are used as initial servers; and if the server node type of the fault server is a computing node, selecting a plurality of servers from the available server set as initial servers through the performance parameters of the servers in the available server set.
Further, after determining the initial servers, determining a target server according to the performance parameter of each initial server, and removing the initial servers with performance parameters greater than or equal to the performance parameter threshold from the initial servers under the condition that the performance parameters are greater than or equal to the preset performance parameter threshold, so as to obtain servers with performance parameters smaller than the preset performance parameter threshold, namely the target servers, wherein virtual machines vCPU in the servers in the server cabinet, memory used by the physical servers, the number of virtual machines in the servers and ST values can be used.
Still further, different normalized weight values are given according to the load rate of each target server, the performance index value of each target server is obtained through weighted summation calculation by utilizing the weight value associated with each load rate and each load rate, and each server is ordered in reverse order according to the calculated performance index value size relation of each target server, so that a server sequence is obtained, and then virtual machines in the fault servers are migrated sequentially by utilizing the server sequence.
According to the method and the device, the server nodes of the fault servers are determined, the available servers are determined through the server nodes, the target servers capable of being migrated are obtained by utilizing the performance parameters of the available servers, and the sequence of the servers is determined according to the load rate of each target server, so that virtual machine migration is performed according to the sequence, the accuracy of virtual machine migration in the fault servers is improved, and the labor cost is reduced.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a migration device of the virtual machine, and the migration device of the virtual machine can be used for executing the migration method for the virtual machine. The following describes a migration device of a virtual machine provided in an embodiment of the present application.
Fig. 3 is a schematic diagram of a migration apparatus of a virtual machine according to an embodiment of the present application, as shown in fig. 3, where the apparatus includes: an analysis unit 30, a determination unit 31, and an acquisition unit 32.
The parsing unit 30 is configured to parse the alarm information to determine a failure server and obtain a server node type of the failure server if the alarm information is detected in a case where the server is running, where the failure server includes X virtual machines;
a determining unit 31, configured to determine M initial servers from a failure isolation domain according to a server node type, where the failure isolation domain is configured by servers other than a failure server in the server set;
And the obtaining unit 32 is configured to obtain a performance parameter of each initial server, screen servers whose performance parameters meet a preset performance requirement from M initial servers, obtain N target servers, and migrate X virtual machines to servers in the N target servers, where M, N, X is a positive integer, and M is greater than or equal to N.
Optionally, in the migration apparatus for a virtual machine provided in the embodiment of the present application, the determining unit 31 includes: the first acquisition module is used for acquiring an associated deployment list of a target service operated by each virtual machine to obtain associated deployment lists of X virtual machines, wherein the associated deployment list contains information of a server where the virtual machine operated by the target service is located, and the target service is operated in at least one virtual machine; the first determining module is used for determining Y associated servers according to the information of the servers in the associated deployment list of the X virtual machines, wherein Y is a positive integer; the second acquisition module is used for acquiring servers except Y associated servers in the fault isolation domain to obtain M initial servers under the condition that the node type of the server node is a management node; and the selection module is used for selecting the initial servers from the fault isolation domain to obtain M initial servers under the condition that the node type of the server node is a calculation node.
Optionally, in the migration apparatus for a virtual machine provided in the embodiment of the present application, the node type includes a computing node and a management node, and the determining unit 31 includes: the third acquisition module is used for acquiring the performance parameters and the performance parameter threshold value of each initial server, and comparing each performance parameter with the performance parameter threshold value to obtain a comparison result; and the removing module is used for removing the initial servers with performance parameters larger than or equal to the performance parameter threshold from the M initial servers to obtain N target servers when the comparison result shows that the initial servers with the performance parameters larger than or equal to the performance parameter threshold exist.
Optionally, in the migration apparatus for a virtual machine provided in the embodiment of the present application, the obtaining unit 32 includes: the fourth acquisition module is used for acquiring Z load rates of each target server, and carrying out weighted summation calculation on the Z load rates according to the load rate weights to obtain a performance index value of each target server, wherein Z is a positive integer; the ordering module is used for ordering the N target servers according to the sequence of the performance index values from large to small to obtain a server sequence, and migrating the X virtual machines to the target servers in the server sequence.
Optionally, in the migration apparatus for a virtual machine provided in the embodiment of the present application, in a case where a node type of a server node is a computing node, the determining unit 31 includes: the fifth acquisition module is used for acquiring the performance parameters and the performance parameter threshold value of each server in the fault isolation domain, and comparing each performance parameter with the performance parameter threshold value to obtain a comparison result; the second determining module is used for determining Y associated servers as M initial servers when the comparison result indicates that no server with the performance parameter smaller than the performance parameter threshold exists; and the sixth acquisition module is used for acquiring servers except Y associated servers in the fault isolation domain to obtain M initial servers under the condition that the comparison result represents that the servers with the performance parameters smaller than the performance parameter threshold exist.
The node type includes a calculation node and a management node, and the acquisition unit 32 includes: the sixth acquisition module is used for acquiring specification parameters of the X virtual machines, and sequencing the X virtual machines according to the sequence from large to small of the specification parameters to obtain a virtual machine sequence; and the first migration module is used for migrating the X virtual machines to a target server in the server sequence according to the sequence indicated by the virtual machine sequence.
The node type includes a calculation node and a management node, and the acquisition unit 32 includes: the second migration module is used for migrating the X virtual machines to the first X target servers in the server sequence under the condition that the number of the virtual machines is less than or equal to the number of the target servers; the seventh obtaining module is used for obtaining the maximum performance parameters of the X virtual machines and the average load parameters of the N target servers under the condition that the number of the virtual machines is larger than the number of the target servers, and comparing the average load parameters with the maximum performance parameters; the third determining module is used for determining an anchor point virtual machine in the virtual machine sequence according to the average load parameter under the condition that the average load parameter is smaller than or equal to the maximum performance parameter, sequentially migrating the anchor point virtual machine and the virtual machines before the anchor point virtual machine to N target servers according to a positive sequence, and migrating the virtual machines after the anchor point virtual machine to the N target servers according to a reverse sequence, wherein the positive sequence refers to the arrangement sequence of servers in the server sequence from front to back, and the reverse sequence refers to the arrangement sequence of servers in the server sequence from back to front; and the third migration module is used for migrating the X virtual machines to the N target servers in sequence according to the positive sequence under the condition that the average load parameter is larger than the maximum performance parameter.
The migration device of the virtual machine provided by the embodiment of the application is configured to, through the parsing unit 30, parse the alarm information to determine a fault server and obtain a server node type of the fault server if the alarm information is detected in a case that the server is running, where the fault server includes X virtual machines; a determining unit 31, configured to determine M initial servers from a failure isolation domain according to a server node type, where the failure isolation domain is configured by servers other than a failure server in the server set; the obtaining unit 32 is configured to obtain performance parameters of each initial server, screen servers whose performance parameters meet preset performance requirements from M initial servers, obtain N target servers, and migrate X virtual machines to servers in the N target servers, where M, N, X is a positive integer, M is greater than or equal to N, so as to solve the problem in the related art that virtual machines that need to be migrated are easily omitted when virtual machines of a failed server are migrated, and waste a large amount of human resources when determining a server that can migrate.
The migration device of the virtual machine includes a processor and a memory, and the parsing unit 30, the determining unit 31, the acquiring unit 32, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the problem that virtual machines needing to be migrated are easy to miss when virtual machines of a fault server are migrated and a large amount of manpower resources are wasted when a server capable of being migrated is determined in the related art is solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, on which a program is stored, which when executed by a processor, implements a migration method of a virtual machine.
The embodiment of the invention provides a processor which is used for running a program, wherein the migration method of the virtual machine is executed when the program runs.
Fig. 4 is a schematic diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 4, an embodiment of the present invention provides an electronic device, where an electronic device 40 includes a processor, a memory, and a program stored on the memory and executable on the processor, and the processor is configured to execute computer readable instructions, where the computer readable instructions execute a migration method of a virtual machine when executed. The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform a migration method of a virtual machine when executed on a data processing apparatus.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A method for migrating a virtual machine, comprising:
under the condition that a server operates, if alarm information is detected, analyzing the alarm information to determine a fault server, and acquiring a server node type of the fault server, wherein the fault server comprises X virtual machines;
determining M initial servers from a fault isolation domain according to the server node type, wherein the fault isolation domain is composed of servers except the fault server in a server set;
and acquiring performance parameters of each initial server, screening servers with performance parameters meeting preset performance requirements from the M initial servers to obtain N target servers, and migrating the X virtual machines to the servers in the N target servers, wherein M, N, X is a positive integer, and M is greater than or equal to N.
2. The method of claim 1, wherein the node type comprises a compute node and a management node, and wherein determining M initial servers from a failure isolation domain based on the server node type comprises:
acquiring an associated deployment list of a target service operated by each virtual machine to obtain associated deployment lists of X virtual machines, wherein the associated deployment list contains information of a server where the virtual machine operated by the target service is located, and the target service is operated in at least one virtual machine;
Determining Y associated servers according to the information of the servers in the associated deployment list of the X virtual machines, wherein Y is a positive integer;
under the condition that the node type of the server node is the management node, acquiring servers except the Y associated servers in the fault isolation domain to obtain M initial servers;
and under the condition that the node type of the server node is the computing node, selecting initial servers from the fault isolation domain to obtain the M initial servers.
3. The method of claim 1, wherein selecting, from the M initial servers, a server whose performance parameter meets a preset performance requirement, to obtain N target servers includes:
acquiring performance parameters and performance parameter thresholds of each initial server, and comparing each performance parameter with the performance parameter thresholds to obtain a comparison result;
and under the condition that the comparison result shows that the initial servers with the performance parameters larger than or equal to the performance parameter threshold value exist, removing the initial servers with the performance parameters larger than or equal to the performance parameter threshold value from the M initial servers to obtain the N target servers.
4. The method of claim 1, wherein migrating the X virtual machines to a server of the N target servers comprises:
obtaining Z load rates of each target server, and carrying out weighted summation calculation on the Z load rates according to load rate weights to obtain performance index values of each target server, wherein Z is a positive integer;
and sequencing the N target servers according to the sequence from the big performance index value to the small performance index value to obtain a server sequence, and migrating the X virtual machines to the target servers in the server sequence.
5. The method of claim 2, wherein, in the case where the node type of the server node is the computing node, selecting initial servers from the fault isolation domain, obtaining the M initial servers includes:
acquiring performance parameters and performance parameter thresholds of each server in the fault isolation domain, and comparing each performance parameter with the performance parameter thresholds to obtain a comparison result;
determining the Y associated servers as the M initial servers under the condition that the comparison result indicates that no server with the performance parameter smaller than the performance parameter threshold exists;
And under the condition that the comparison result represents that the server with the performance parameter smaller than the performance parameter threshold value exists, acquiring servers except the Y associated servers in the fault isolation domain, and obtaining the M initial servers.
6. The method of claim 4, wherein migrating the X virtual machines into a target server in the server sequence comprises:
acquiring specification parameters of X virtual machines, and sequencing the X virtual machines according to the sequence of the specification parameters from large to small to obtain a virtual machine sequence;
and migrating the X virtual machines to a target server in the server sequence according to the sequence indicated by the virtual machine sequence.
7. The method of claim 6, wherein migrating the X virtual machines into a target server in the server sequence according to the order indicated by the virtual machine sequence comprises:
migrating the X virtual machines to the first X target servers in the server sequence under the condition that the number of the virtual machines is less than or equal to the number of the target servers;
under the condition that the number of virtual machines is larger than the number of target servers, acquiring the maximum performance parameters of the X virtual machines and the average load parameters of the N target servers, and comparing the average load parameters with the maximum performance parameters;
Determining an anchor point virtual machine in the virtual machine sequence according to the average load parameter when the average load parameter is smaller than or equal to the maximum performance parameter, sequentially migrating the anchor point virtual machine and the virtual machines before the anchor point virtual machine to the N target servers according to a positive sequence, and migrating the virtual machines after the anchor point virtual machine to the N target servers according to a reverse sequence, wherein the positive sequence refers to the arrangement sequence of servers in the server sequence from front to back, and the reverse sequence refers to the arrangement sequence of servers in the server sequence from back to front;
and under the condition that the average load parameter is larger than the maximum performance parameter, sequentially migrating the X virtual machines to the N target servers according to the positive sequence.
8. A migration apparatus for a virtual machine, comprising:
the analysis unit is used for analyzing the alarm information to determine a fault server and acquiring the server node type of the fault server if the alarm information is detected under the condition that the server operates, wherein the fault server comprises X virtual machines;
a determining unit, configured to determine M initial servers from a fault isolation domain according to the server node type, where the fault isolation domain is configured by servers other than the fault server in a server set;
The system comprises an acquisition unit, a storage unit and a storage unit, wherein the acquisition unit is used for acquiring performance parameters of each initial server, screening servers with performance parameters meeting preset performance requirements from M initial servers to obtain N target servers, and migrating the X virtual machines to the servers in the N target servers, wherein M, N, X is a positive integer, and M is greater than or equal to N.
9. A processor, characterized in that the processor is configured to run a program, wherein the program runs to perform the migration method of a virtual machine according to any one of claims 1 to 7.
10. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of migration of a virtual machine of any of claims 1-7.
CN202310583096.8A 2023-05-22 2023-05-22 Migration method and device of virtual machine, processor and electronic equipment Pending CN116521321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310583096.8A CN116521321A (en) 2023-05-22 2023-05-22 Migration method and device of virtual machine, processor and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310583096.8A CN116521321A (en) 2023-05-22 2023-05-22 Migration method and device of virtual machine, processor and electronic equipment

Publications (1)

Publication Number Publication Date
CN116521321A true CN116521321A (en) 2023-08-01

Family

ID=87403004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310583096.8A Pending CN116521321A (en) 2023-05-22 2023-05-22 Migration method and device of virtual machine, processor and electronic equipment

Country Status (1)

Country Link
CN (1) CN116521321A (en)

Similar Documents

Publication Publication Date Title
Yao et al. Fog resource provisioning in reliability-aware IoT networks
CN108009016B (en) Resource load balancing control method and cluster scheduler
US20220078036A1 (en) Asset management with respect to a shared pool of configurable computing resources
US20200218579A1 (en) Selecting a cloud service provider
CN109710376A (en) The dynamic dispatching method and device of container cluster management system
US11755385B2 (en) Cross-cluster load balancer
Pongsakorn et al. Container rebalancing: Towards proactive linux containers placement optimization in a data center
CN106980571A (en) The construction method and equipment of a kind of test use cases
CN109739627B (en) Task scheduling method, electronic device and medium
CN109343931B (en) Load balancing oriented application perception virtual machine scheduling method in IaaS environment
CN103713935A (en) Method and device for managing Hadoop cluster resources in online manner
CN112256430A (en) Container deployment method, device, equipment and storage medium
US20220129294A1 (en) Virtualization platform and virtualization platform scaling management method
CN110543462A (en) Microservice reliability prediction method, prediction device, electronic device, and storage medium
CN114003345A (en) Cloud-native-based Kubernetes platform health degree determination method and device
US11561824B2 (en) Embedded persistent queue
CN112567687B (en) Availability towards network slicing
CN115543577B (en) Covariate-based Kubernetes resource scheduling optimization method, storage medium and device
CN110120978B (en) Safety protection method for elastic user cloud computing resources
US10387578B1 (en) Utilization limiting for nested object queries
CN106571935B (en) Resource scheduling method and equipment
CN115442262B (en) Resource evaluation method and device, electronic equipment and storage medium
US9641384B1 (en) Automated management of computing instance launch times
CN116521321A (en) Migration method and device of virtual machine, processor and electronic equipment
CN112000657A (en) Data management method, device, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination