WO2015081717A1 - 一种虚拟机迁移管理方法、装置及系统 - Google Patents

一种虚拟机迁移管理方法、装置及系统 Download PDF

Info

Publication number
WO2015081717A1
WO2015081717A1 PCT/CN2014/083869 CN2014083869W WO2015081717A1 WO 2015081717 A1 WO2015081717 A1 WO 2015081717A1 CN 2014083869 W CN2014083869 W CN 2014083869W WO 2015081717 A1 WO2015081717 A1 WO 2015081717A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual machine
migration
computing node
migrated
migration time
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.)
Ceased
Application number
PCT/CN2014/083869
Other languages
English (en)
French (fr)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to KR1020167008845A priority Critical patent/KR101814560B1/ko
Priority to JP2016519928A priority patent/JP6168576B2/ja
Priority to EP14795536.3A priority patent/EP2894827B1/en
Priority to US14/557,994 priority patent/US9720728B2/en
Publication of WO2015081717A1 publication Critical patent/WO2015081717A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Definitions

  • the invention relates to a method, device and system for managing virtual machine migration.
  • the patent application claims that the Chinese patent application number is 201310656235.1 submitted on December 6, 2013, and the invention name is "a virtual machine migration management method, device and system" priority. The entire content of this application is hereby incorporated by reference.
  • the present invention relates to the field of computer technologies, and in particular, to a virtual machine migration management method, apparatus, and system. Background technique
  • Virtual machine hot migration is a key technology in the field of virtualization. It is an important means to realize dynamic resource scheduling of virtualized clusters, without interrupting service replacement and maintaining hosts.
  • the basic principle of virtual machine hot migration is to migrate the running virtual machine from the source physical machine to the target physical machine without affecting the user's business or the user is not aware of it. In order to quickly solve resource hotspots and power integration, it may be necessary to determine the average value of multiple migrations at a time to calculate the maximum number of virtual machine migrations per host. The difference in virtual machine specifications and services leads to large deviations in migration time. The evaluation of migration time is inaccurate and it is impossible to make a reasonable virtual machine hot migration decision. Summary of the invention
  • the embodiment of the present invention provides a virtual machine migration management method, device, and system, which can improve the virtual machine migration decision degree by dynamically calculating the virtual machine migration time.
  • a first aspect of the embodiments of the present invention provides a virtual machine migration management method, where the method includes:
  • the migration parameter includes an allocated memory size, a memory change rate, and a migration of the virtual machine to be migrated Network bandwidth
  • the migration time of the source computing node and the current computing node are currently available - - the migration time is not less than the migration time, then it is determined that the virtual machine to be migrated is migrated from the source computing node to the destination computing node.
  • the method further includes:
  • the migration time is subtracted from the current available migration time of the source computing node, and the current available migration of the destination computing node The migration time is subtracted from time.
  • N is the smallest integer value that satisfies aox ⁇ -1 being less than the default memory dirty page threshold.
  • MV is the allocation of the virtual machine to be migrated
  • MCR is the memory change rate of the virtual machine to be migrated
  • migrated network bandwidth allocated for the virtual machine to be migrated N.
  • N is the smallest integer value that satisfies aox ⁇ -1 is less than the default memory dirty page threshold
  • CV is the memory compression ratio of the virtual machine to be migrated.
  • the method further includes:
  • the fifth possible implementation in the first aspect In the middle, if it is detected at the beginning of each round of resource scheduling that the computing node is performing virtual machine migration, the migration time MT of the computing node is initialized; two NiXT-MTVi; where the migration is being performed in the computing node The migration time of the virtual machine.
  • the second aspect of the embodiments of the present invention provides a virtual machine migration management apparatus, including: a migration time calculation module, configured to calculate, according to a migration parameter of a virtual machine to be migrated, the migration of the virtual machine to be migrated from a source computing node to The purpose is to calculate a migration time of the node, where the migration parameter includes an allocated memory size, a memory change rate, and a migration network bandwidth of the virtual machine to be migrated;
  • a migrating time management module configured to separately obtain a current available migration time of the source computing node and a current available migration time of the destination computing node;
  • the migration judging module is configured to: if the current available migration time of the source computing node and the current available migration time of the destination computing node are not less than the migration time, determine to migrate the virtual machine to be migrated from the source computing node To the destination compute node.
  • the migratable time management module is further configured to: after starting to migrate the to-be-migrated virtual machine from a source computing node to a destination computing node, at the source computing node The migration time is subtracted from the current available migration time, and the migration time is subtracted from the current available migration time of the destination compute node.
  • the calculating, by the migration time calculation module, the migration time includes:
  • the migration network bandwidth, N. is the preset maximum number of transmissions, and N is the smallest integer value that satisfies ⁇ -1 being less than the preset memory dirty page threshold.
  • the calculating, by the migration time calculation module, the migration time includes:
  • the migratable time management module is further configured to:
  • ⁇ ] ⁇ ⁇ , where is the number of concurrently migrated virtual machines supported by the compute node, and is the resource scheduling period.
  • the migratable time management module is further configured to:
  • the migration time MH xT -MTVij of the computing node is initialized, where ⁇ ⁇ ⁇ is the migration of the virtual machine being migrated in the computing node time.
  • the third aspect of the embodiments of the present invention further provides a virtual machine migration management system, including at least two computing node devices that carry virtual machines, and any one of the virtual machine migrations according to the second aspect of the embodiments of the present invention.
  • Management device including at least two computing node devices that carry virtual machines, and any one of the virtual machine migrations according to the second aspect of the embodiments of the present invention.
  • a fourth aspect of the embodiments of the present invention provides a virtual machine migration management system, including a source computing node, a destination computing node, and a virtual machine migration management device that carries at least one virtual machine to be migrated.
  • the virtual machine migration management device is configured to calculate, according to the migration parameter of the virtual machine to be migrated, a migration time of the virtual machine to be migrated from the source computing node to the destination computing node, where network bandwidth is acquired separately Determining the current available migration time of the source computing node and the current available migration time of the destination computing node; if the current available migration time of the source computing node and the current available migration time of the destination computing node are not less than the migration time And determining to migrate the virtual machine to be migrated from the source computing node to the destination computing node.
  • the migration time may be calculated by using any one of the following two implementation manners: - - Migration time of the virtual machine to be migrated from source compute node i to destination compute node j
  • q MCRV x ( MV-. I BWV ) ⁇ 1, MV-.
  • the allocated memory size of the virtual machine to be migrated the MCRVa is the memory change rate of the virtual machine to be migrated, and the migrated network bandwidth allocated for the virtual machine to be migrated, N.
  • N is the smallest integer value that satisfies aox ⁇ -1 being less than the default memory dirty page threshold, and
  • the memory change rate, the migrated network bandwidth allocated for the virtual machine to be migrated, N. is the preset maximum number of transmissions, and N is the smallest integer value that satisfies the aox ⁇ -1 being smaller than the preset memory dirty page threshold, CV The memory compression ratio of the virtual machine to be migrated.
  • the embodiment of the present invention dynamically calculates the migration time by using the migration parameters of the virtual machine to be migrated, and compares the calculated migration time with the current available migration time of the source computing node and the destination computing node to improve the accuracy of the virtual machine migration decision. . DRAWINGS
  • FIG. 1 is a schematic flowchart of a virtual machine migration management method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a virtual machine migration management method according to another embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a virtual machine migration management apparatus according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a virtual machine migration management apparatus according to another embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a virtual machine migration management system according to an embodiment of the present invention
  • - Figure 7 is a block diagram showing the structure of the distributed resource management system mentioned in the embodiment of the present invention.
  • the virtual machine migration management device may be implemented in a separate node device, or in a management node device of the distributed resource management system as shown in FIG. 7, and the distributed resource management system shown in FIG. 7 includes management.
  • FIG. 1 is a schematic flowchart of a virtual machine migration management method according to an embodiment of the present invention.
  • the migration of the virtual machine to be migrated from the source computing node to the destination computing node is calculated according to the migration parameter of the virtual machine to be migrated.
  • the migration time where the migration parameter includes an allocated memory size of the virtual machine to be migrated, a memory change rate, and a migration network bandwidth.
  • the virtual machine migration management device can determine the virtual machine that needs to be migrated from the computing node i to the computing node j according to factors such as load balancing, that is, the virtual machine to be migrated, and then the virtual machine to be migrated is obtained.
  • the upper-layer service QoS Quality of Service
  • MCRV memory change rate
  • network QoS defined by the lower layer
  • the memory allocated by the source computing node to the virtual machine ⁇ is M,., which is referred to as allocated memory in this embodiment.
  • Transfer the virtual machine 1 ⁇ 's allocated memory ⁇ , from the source compute node i to the destination compute node j, the time consumption is:
  • ⁇ 0 ⁇ ⁇ / ⁇ ⁇ ;
  • Exemplary ⁇ units can Mb, BWT ⁇ units can Mb / s..) of two copies, the first copy time round.
  • the allocated memory of the virtual machine ⁇ has / n x V,. ⁇ ., ⁇ is changed, and this part of memory needs to be transferred from the source computing node i to the destination.
  • the third round, in the second round of copying time, the virtual machine ⁇ allocated memory has ⁇ xM ⁇ xMO ⁇ ⁇ is changed, this part of memory needs to be transferred from the source compute node i to the destination compute node j, the time consumption is: M tJ X MCRV tJ I BWV tJ (MCRV tJ x (MV tJ I BWV tJ ;
  • the final migration time should be:
  • n is the total number of transmissions (rounds)
  • " min ⁇ N. , N ⁇ , where N.
  • N the smallest integer value that satisfies ⁇ - 1 less than the preset memory dirty page threshold X.
  • the memory dirty page is the memory page that changes during each round of copy transmission, and the memory dirty page threshold X It is the value of the number of dirty pages in the memory, which can be set by the administrator in advance. That is to say, when the number of dirty pages of a certain round of copying is smaller than the dirty value of the memory, the copy can be stopped.
  • the virtual machine migration may be performed by compressing and copying the virtual machine memory first, and the memory compression ratio ⁇ . may be determined according to the compression algorithm used, and then the formula (1) may be adjusted to :
  • an available migration time can be set for each computing node, that is, the time that the computing node can be used for virtual machine migration in each scheduling period.
  • the initial migration time of each computing node is initialized when the resource scheduling is triggered every certain period or when there are typical events (such as adding/deleting a computing node to a virtual resource cluster, starting/closing a virtual machine, etc.), and thus Typical events that affect the available migration time (such as migrating a virtual machine that was originally running on its own compute node to another compute node, or migrating a virtual machine that was originally running on another compute node to its own compute node, etc.)
  • the available migration time on the compute node is updated, and the virtual machine migration management device can obtain the current available migration time and destination calculation of the source compute node, ie, the compute node i, after the decision needs to be migrated from the compute node i to the virtual machine of the compute node j.
  • the node is the current available migration time of node j.
  • the migration time of the virtual machine to be migrated from the source computing node to the destination computing node calculated in S101 is compared with the current available migration time of the source computing node and the current available migration time of the destination computing node, respectively. Determining that the virtual machine to be migrated may be migrated from the source computing node to the destination computing node, if the current available migration time of the computing node and the current available migration time of the destination computing node are not less than the migration time; If the current available migration time of the computing node is less than the migration time or the current available migration time of the destination computing node is less than the migration time, it is determined that the virtual machine to be migrated cannot be migrated from the source computing node to the destination computing node.
  • the virtual machine migration management device may separately perform the The current available migration time of the source computing node and the current available migration time of the destination computing node are respectively subtracted from the migration time, so that the next time the virtual machine migration needs to be performed, - -
  • Plan to migrate for decision making Virtual machine migration to achieve accurate management of the available migration time for the corresponding compute nodes.
  • the virtual machine migration management device may further wait for the current available migration time of the source computing node and the current available migration time of the destination computing node after the migration of the virtual machine to be migrated is completed. Accurate management.
  • the virtual machine migration management method described in FIG. 1 can dynamically calculate the migration time according to the migration parameters of the virtual machine to be migrated, and calculate the obtained migration time and the current available migration time of the source computing node and the The purpose is to calculate the current available migration time of the node to determine whether the virtual machine migration can be performed.
  • the number of concurrent migrations of the virtual machine of the computing node can be dynamically managed, and the virtual machine migration decision can be made more accurately.
  • 2 is a schematic flowchart of a virtual machine migration management method according to another embodiment of the present invention.
  • the virtual machine migration management method in this embodiment may include:
  • S201 Initialize the available migration time of all computing nodes at the beginning of each round of resource scheduling.
  • each computing node when initializing the available migration time of each computing node, it may be detected whether each computing node is currently performing virtual machine migration. If the current computing node i is performing migration to the virtual machine of the computing node j, The available migration time of the computing node i can be initialized to MT ⁇ N ⁇ T-MTV-., and the migration time of the virtual machine to be migrated from the source computing node to the destination computing node is calculated according to the migration parameter of the virtual machine to be migrated.
  • the migration parameter includes the allocated memory size, the memory change rate, and the migration network bandwidth of the to-be-migrated virtual machine.
  • the manner of calculating the migration time is specifically exemplified in the foregoing embodiment, and is not described in this embodiment.
  • the migration time of the virtual machine to be migrated from the source computing node to the destination computing node is calculated according to the migration parameter of the virtual machine to be migrated, where the migration parameter includes the allocated memory size and the memory change rate of the virtual machine to be migrated. And migrating network bandwidth.
  • the virtual machine migration management device can decide from the calculation section according to factors such as load balancing.
  • the point i migrates to the virtual machine of the compute node j, that is, the virtual machine to be migrated, and then obtains the service change rate ⁇ defined by the service QoS (Quality of Service) of the upper layer of the virtual machine to be migrated? and the lower network QoS for defining migration network bandwidth BT, in turn, can calculate the virtual machine ⁇ J migrate from the computing node i to the computing node j J migration time MTV i;.
  • QoS Quality of Service
  • the migration time of the migration of the virtual machine to be migrated from the source computing node to the destination computing node calculated in S202 is compared with the current available migration time of the source computing node and the current available migration time of the destination computing node, respectively. Determining that the virtual machine to be migrated may be migrated from the source computing node to the destination computing node, if the current available migration time of the computing node and the current available migration time of the destination computing node are not less than the migration time; If the current available migration time of the computing node is less than the migration time or the current available migration time of the destination computing node is less than the migration time, it is determined that the virtual machine to be migrated cannot be migrated from the source computing node to the destination computing node.
  • the virtual machine migration management device may respectively provide the source computing node and the destination computing node with the following current computing nodes.
  • the migration time and the current available migration time of the destination compute node are respectively subtracted from the migration time.
  • the virtual machine migration management device may also be configured to view the current available migration time of the source computing node after the migration of the virtual machine to be migrated is completed, and the present embodiment is described in conjunction with FIG. 2 .
  • the virtual machine migration management method can be based on the virtual to be migrated - -
  • the migration parameters of the virtual machine dynamically calculate the migration time, and compare the calculated migration time with the current available migration time of the source computing node and the current available migration time of the destination computing node to determine whether virtual machine migration is possible. It can dynamically manage the number of concurrent migrations of virtual machines on the compute nodes, and achieve more accurate decision-making on virtual machine migration.
  • 3 is a schematic structural diagram of a virtual machine migration management apparatus according to an embodiment of the present invention.
  • the virtual machine migration management apparatus of the present invention may be implemented in a management node device of a distributed resource management system, or may be implemented in other independent nodes. In the device.
  • the virtual machine migration apparatus in this embodiment may include:
  • the migration time calculation module 310 is configured to calculate, according to the migration parameter of the virtual machine to be migrated, a migration time of the virtual machine to be migrated from the source computing node to the destination computing node, where the migration parameter includes the allocation of the virtual machine to be migrated Memory size, memory change rate, and migration network bandwidth.
  • the virtual machine migration management device can perform the virtual machine migration in a pre-copy manner, and the virtual machine migration management device can determine the virtual machine that needs to be migrated from the computing node i to the computing node j according to factors such as load balancing, that is, the virtual machine to be migrated, and then obtain the The service QoS (Quality of Service) of the upper layer of the virtual machine to be migrated is the memory change rate MO? ⁇ ; and the network QoS of the lower layer is defined as the migration network bandwidth ⁇ , and the migration time calculation module 310 calculates
  • the migration time can be calculated according to formula (1):
  • N MCRV ij (MV ij IB WV ⁇ ) ⁇ 1 , is the allocated memory size of the virtual machine to be migrated, N.
  • N is the smallest integer value that satisfies ⁇ -1 being less than the default memory dirty page threshold.
  • the virtual machine migration may be performed by first compressing and copying the virtual machine memory, and the memory compression ratio may be determined according to the compression algorithm used, and then the formula (1) may be adjusted to:
  • the method of determination is the same as before.
  • the migrating time management module 320 is configured to separately obtain the current available migration time of the source computing node and the current available migration time of the destination computing node.
  • the migratable time management module 320 can set an available migration time for each computing node, for example, at regular intervals or with typical events (such as adding/deleting a computing node to a virtual resource cluster, starting/closing a virtual machine, etc.) Initialize the available migration time for each compute node when triggering resource scheduling.
  • it may first detect whether each computing node is currently performing virtual machine migration. If the current computing node i is performing migration to the virtual machine of the computing node j, the calculation may be performed.
  • the available migration time of the node i is initialized to the MT ⁇ N ⁇ T-MTV-., and the migration time calculation module 310 calculates, according to the migration parameter of the virtual machine to be migrated, the migration of the virtual machine to be migrated from the source computing node to the destination computing node. Migrate network bandwidth during migration.
  • the node, etc. can update the available migration time on the computing node, and the virtual machine migration management device can obtain the source computing node, ie, the computing node i, after the decision needs to be migrated from the computing node i to the virtual machine 1 of the computing node j.
  • the current available migration time and destination compute node is the current available migration time for compute node j.
  • the virtual machine migration management device may respectively deliver the virtual machine migration instruction to the source computing node and the destination computing node. So that the virtual machine migration of the virtual machine to be migrated is started, and the current available migration time of the source computing node and the current available migration time of the destination computing node are respectively subtracted by the migratable time management module 320. time.
  • the migrating time management module 320 may also be configured to use the current available migration time migration determining module 330 of the source computing node after the migration of the virtual machine to be migrated is completed. The current available migration time of the source computing node and the current available migration time of the destination computing node are not less than the migration time, and then the migration of the virtual machine to be migrated from the source computing node to the destination computing node is determined.
  • the source to be migrated from the source computing node calculated by the migration time calculation module 310 - - the migration time of the migration to the destination compute node is compared with the current available migration time of the source compute node and the current available migration time of the destination compute node, respectively, if the current available migration time of the source compute node and the current compute node are currently If the available migration time is not less than the migration time, the migration determination module 330 determines that the virtual machine to be migrated can be migrated from the source computing node to the destination computing node; if the current available migration time of the source computing node is less than the If the migration time or the current available migration time of the destination computing node is less than the migration time, the migration determining module 330 determines that the virtual machine to be migrated cannot be migrated from the source computing node to the destination computing node.
  • the migration determining module 330 may respectively deliver the virtual machine migration instruction to the source computing node and the destination computing node. So that the virtual machine migration of the virtual machine to be migrated is started, and at the same time, the migration judging module 330 can notify the migratable time management module 320 that the current available migration time of the source computing node and the current computing node are currently available. The migration time is subtracted from the migration time.
  • the virtual machine migration management apparatus described in this embodiment, in conjunction with FIG. 3 can dynamically calculate the migration time according to the migration parameters of the virtual machine to be migrated, and calculate the obtained migration time and the current available migration time of the source computing node and the The purpose is to calculate the current available migration time of the node to determine whether the virtual machine migration can be performed.
  • the number of concurrent migrations of the virtual machine of the computing node can be dynamically managed, and the virtual machine migration decision can be made more accurately.
  • 4 is a schematic structural diagram of a virtual machine migration management apparatus according to another embodiment of the present invention. As shown in FIG.
  • the virtual machine migration management apparatus 400 may include: at least one processor 401, such as a CPU, at least A network interface 403, a memory 404, and at least one communication bus 402.
  • the communication bus 402 is used to implement connection communication between these components.
  • the network interface 403 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
  • an antenna device is included for signaling or data communication with other node devices.
  • the memory 404 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 404 can optionally also be at least one storage device located remotely from the aforementioned processor 401.
  • a set of program codes is stored in the memory 404, and the processor 401 is configured to call the program code stored in the memory 404 for performing the following operations: - calculating a migration time of the virtual machine to be migrated from the source computing node to the destination computing node according to the migration parameter of the virtual machine to be migrated, where the migration parameter includes an allocated memory size and a memory change rate of the virtual machine to be migrated And migrating network bandwidth;
  • the virtual machine to be migrated is migrated from the source computing node to the destination computing node.
  • the calculating, according to the migration parameter of the virtual machine to be migrated, the migration time of the virtual machine to be migrated from the source computing node to the destination computing node includes:
  • q MCRVij x [MV ⁇ I BWV ⁇ ) ⁇ 1
  • MV ⁇ j is the allocated memory size of the virtual machine to be migrated
  • MCRVij is the virtual machine to be migrated
  • the memory change rate, BWT ⁇ allocates the migrated network bandwidth to the VM to be migrated, N.
  • N is the smallest integer value that satisfies aox ⁇ -1 being less than the default memory dirty page threshold.
  • the virtual machine migration may be performed by first compressing and copying the virtual machine memory, and the memory compression ratio may be determined according to the compression algorithm used, and then the formula (1) may be adjusted to:
  • n is the same as before.
  • the processor 401 can also execute the following steps by calling the program code stored in the memory 404:
  • the migration time is subtracted from the current available migration time of the source computing node, and the current available migration of the destination computing node The migration time is subtracted from time. So that the next time you need to perform a virtual machine
  • the virtual machine migration management device may further wait for the current available migration time of the source computing node and the current available migration time of the destination computing node after the migration of the virtual machine to be migrated is completed. Accurate management.
  • the processor 401 can also execute the following steps by calling the program code stored in the memory 404:
  • the virtual machine migration management apparatus described in this embodiment may dynamically calculate the migration time according to the migration parameter of the virtual machine to be migrated, and calculate the obtained migration time and the current available migration time of the source computing node and the The purpose is to calculate the current available migration time of the node to determine whether the virtual machine migration can be performed.
  • the number of concurrent migrations of the virtual machine of the computing node can be dynamically managed, and the virtual machine migration decision can be made more accurately.
  • 5 is a schematic structural diagram of a virtual machine migration management system according to an embodiment of the present invention. As shown in the figure, the virtual machine migration management system in this embodiment may include at least two computing node devices 510 that carry virtual machines, and calculate The node device 520 is a computer node device 5n0 and a virtual machine migration management device 500, wherein:
  • the virtual machine migration management device 500 may be configured to migrate the virtual machine to be migrated from the source computing node to the destination computing node according to the migration parameter of the virtual machine to be migrated.
  • a migration time where the migration parameter includes an allocated memory size of the virtual machine to be migrated, a memory change rate, and a migration network bandwidth; respectively acquiring the source calculation section - - the current available migration time and the current available migration time of the destination computing node; if the current available migration time of the source computing node and the current available migration time of the destination computing node are not less than the migration time, Then, it is determined that the virtual machine to be migrated is migrated from the source computing node to the destination computing node.
  • the computing node device is configured to perform a migration operation of the virtual machine to be migrated when the virtual machine migration management device determines to migrate the virtual machine to be migrated from the source computing node to the destination computing node.
  • FIG. 6 is a virtual machine migration management system according to another embodiment of the present invention, which includes a source computing node i620 carrying at least one virtual machine to be migrated, a destination computing node j630, and a virtual machine migration management device 610. ,
  • the virtual machine migration management device 610 is configured to calculate, according to the migration parameter of the virtual machine to be migrated, a variable rate of the migration of the virtual machine to be migrated from the source computing node i620 to the destination computing node j630 and a migration network bandwidth; Obtaining the current available migration time of the source computing node i620 and the current available migration time of the destination computing node j630 respectively; if the current available migration time of the source computing node i620 and the current available migration time of the destination computing node j630 If the migration time is not less than the migration time, it is determined that the virtual machine to be migrated is migrated from the source computing node i620 to the destination computing node j630.
  • the migration time may be calculated by using any one of the following two implementations:
  • N is the preset maximum number of transmissions
  • N is the smallest integer value that satisfies ⁇ ⁇ ⁇ - 1 less than the preset memory dirty page threshold.
  • the virtual machine migration management system introduced in this embodiment may be used to implement all or part of the virtual machine migration management method flow in any of the foregoing method embodiments.
  • the embodiment of the present invention dynamically calculates the migration time according to the migration parameter of the virtual machine to be migrated, and compares the calculated migration time with the current available migration time of the source computing node and the destination calculation section.
  • Dynamic management of concurrent virtual machine migrations of compute nodes enables more accurate decision making on virtual machine migration.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例公开了一种虚拟机迁移管理方法,所述方法包括:根据待迁移虚拟机的迁移参数计算所述待迁移虚拟机从源计算节点迁移至目的计算节点的迁移时间,其中所述迁移参数包括所述待迁移虚拟机的分配内存大小、内存改变速率以及迁移网络带宽;分别获取所述源计算节点当前的可用迁移时间和所述目的计算节点当前的可用迁移时间;若所述源计算节点当前的可用迁移时间和所述目的计算节点当前的可用迁移时间均不小于所述迁移时间,则确定将所述待迁移虚拟机从源计算节点迁移至目的计算节点。本发明实施例还公开了一种虚拟机迁移管理装置和系统。釆用本发明,能够一定程度上提高虚拟机迁移决策的准确性。

Description

一 一
一种虚拟机迁移管理方法、 装置及系统 本专利申请要求 2013 年 12 月 06 日提交的中国专利申请号为 201310656235.1 , 发明名称为 "一种虚拟机迁移管理方法、 装置及系统" 的优 先权, 该申请的全文以引用的方式并入本申请中。 技术领域
本发明涉及计算机技术领域, 尤其涉及一种虚拟机迁移管理方法、装置及 系统。 背景技术
虚拟机热迁移是虚拟化领域的一项关键技术,是实现虚拟化集群动态资源 调度、 不中断业务更换和维护主机的重要手段。 虚拟机热迁移的基本原理是: 在不影响用户业务或用户不感知的情况下,将运行的虚拟机从源物理机迁移到 目标物理机。 为了快速解决资源热点以及电源整合,每次可能需要决定迁移多 时间的平均值进行计算每台主机最多容纳虚拟机迁移数目,而虚拟机的规格和 业务的不同导致迁移时间的偏差较大, 因此对迁移时间的评估不准确, 无法做 出合理的虚拟机热迁移决策。 发明内容
有鉴于此, 本发明实施例提供一种虚拟机迁移管理方法、 装置及系统, 可 通过动态计算虚拟机迁移时间, 一定程度上提高虚拟机迁移决策的准确性。
为了解决上述技术问题,本发明实施例第一方面提供了一种虚拟机迁移管 理方法, 所述方法包括:
根据待迁移虚拟机的迁移参数计算所述待迁移虚拟机从源计算节点迁移 至目的计算节点的迁移时间,其中所述迁移参数包括所述待迁移虚拟机的分配 内存大小、 内存改变速率以及迁移网络带宽;
分别获取所述源计算节点当前的可用迁移时间和所述目的计算节点当前 的可用迁移时间;
若所述源计算节点当前的可用迁移时间和所述目的计算节点当前的可用 - - 迁移时间均不小于所述迁移时间,则确定将所述待迁移虚拟机从源计算节点迁 移至目的计算节点。
在第一方面的第一种可能实现方式中, 所述方法还包括:
在开始将所述待迁移虚拟机从源计算节点迁移至目的计算节点后,在所述 源计算节点当前的可用迁移时间中减去所述迁移时间,以及在所述目的计算节 点当前的可用迁移时间中减去所述迁移时间。
在第一方面的第二种可能实现方式中,所述根据待迁移虚拟机的迁移参数 计算所述待迁移虚拟机从源计算节点迁移至目的计算节点的迁移时间包括: 待迁移虚拟机从源计算节点 i 至目 的计算节点 j 的迁移时间 M 1¾="0(li")/(l ), 传输次数"=1^11{ }, 其中 "0=Μ /β^ q = MCRV x ( MV-. I BWV )<\, MV-.为所述待迁移虚拟机的分配内存大小, MCRVa为所述待迁移虚拟机的内存改变速率, 为所述待迁移虚拟机分 配得到的迁移网络带宽, N。为预设的最大传输次数, N为满足 aox^-1小于预 设内存脏页阔值的最小整数值。
在第一方面的第三种可能实现方式中,所述根据待迁移虚拟机的迁移参数 计算所述待迁移虚拟机从源计算节点迁移至目的计算节点的迁移时间包括: 待迁移虚拟机从源计算节点 i 至目 的计算节点 j 的迁移时间 M 1¾="0(li")/(l ) , 传 输 次 数 w = min{N。,N} , 其 中 a0 = ((MViJ CViJ)/BWViJ) , q = MCRVtj x {{MVtj x CVtj)l BWVtj) < 1 , MV 为 所述待迁移虚拟机的分配内存大小, MCR 为所述待迁移虚拟机的内存改变 速率, 为所述待迁移虚拟机分配得到的迁移网络带宽, N。为预设的最 大传输次数, N为满足 aox^-1小于预设内存脏页阔值的最小整数值, CV 为 待迁移虚拟机的内存压缩比。
结合第一方面以及第一方面的第一至第三种可能实现方式,在第一方面的 第四种可能实现方式中, 所述方法还包括:
在每轮资源调度开始时初始化所有计算节点的可用迁移时间 ΜΊ]二 Ν^Τ , 其中 为对应计算节点支持的并发迁移虚拟机数目, T为资源 调度周期。
结合第一方面的第四种可能实现方式,在第一方面的第五种可能实现方式 - - 中, 若在每轮资源调度开始时检测到计算节点正在进行虚拟机迁移, 则初始化 所述计算节点的可迁移时间 MT;二 NiXT-MTVi;, 其中 为该计算节点中 正在进行迁移的虚拟机的迁移时间。
相应的, 本发明实施例第二方面提供了一种虚拟机迁移管理装置, 包括: 迁移时间计算模块,用于根据待迁移虚拟机的迁移参数计算所述待迁移虚 拟机从源计算节点迁移至目的计算节点的迁移时间,其中所述迁移参数包括所 述待迁移虚拟机的分配内存大小、 内存改变速率以及迁移网络带宽;
可迁移时间管理模块,用于分别获取所述源计算节点当前的可用迁移时间 和所述目的计算节点当前的可用迁移时间;
迁移判断模块,用于若所述源计算节点当前的可用迁移时间和所述目的计 算节点当前的可用迁移时间均不小于所述迁移时间,则确定将所述待迁移虚拟 机从源计算节点迁移至目的计算节点。
在第二方面的第一种可能实现方式中, 所述可迁移时间管理模块还用于: 在开始将所述待迁移虚拟机从源计算节点迁移至目的计算节点后,在所述 源计算节点当前的可用迁移时间中减去所述迁移时间,以及在所述目的计算节 点当前的可用迁移时间中减去所述迁移时间。
在第二方面的第二种可能实现方式中,所述迁移时间计算模块计算迁移时 间包括:
待迁移虚拟机从源计算节点 i 至目 的计算节点 j 的迁移时间 M 1¾="0(li")/(l— ), 传输次数《 = 1^11{ }, 其中 "。 =M /B ^ q = MCRV x f MV-. I BWV )<1, MV-.为所述待迁移虚拟机的分配内存大小, MCRVa为所述待迁移虚拟机的内存改变速率, 为所述待迁移虚拟机分 配得到的迁移网络带宽, N。为预设的最大传输次数, N为满足 βοχ^-1小于预 设内存脏页阔值的最小整数值。
在第一方面的第三种可能实现方式中,所述迁移时间计算模块计算迁移时 间包括:
待迁移虚拟机从源计算节点 i 至目 的计算节点 j 的迁移时间 ΜΤνϋ0 ΐ-ρη)/ ΐ-ρ) , 传 输 次 数 《 = min{N。,N} , 其 中 aQ = {{MVi} x CV ) I BWVi} ) , q = MCRVU x ((MV x CV ) I BWVi} ) < 1, MVi}为 - - 所述待迁移虚拟机的分配内存大小, MCR 为所述待迁移虚拟机的内存改变 速率, 为所述待迁移虚拟机分配得到的迁移网络带宽, N。为预设的最 大传输次数, N为满足 ao x^-1小于预设内存脏页阔值的最小整数值, CV 为 待迁移虚拟机的内存压缩比。
结合第二方面以及第二方面的第一至第三种可能实现方式,所述可迁移时 间管理模块还用于:
在每轮资源调度开始时初始化所有计算节点的可用迁移时间
ΜΊ] = Ν Τ , 其中 为对应计算节点支持的并发迁移虚拟机数目, Τ为资源 调度周期。
结合第二方面的第四种可能实现方式,在第二方面的第五种可能实现方式 中, 所述可迁移时间管理模块还用于:
若在每轮资源调度开始时检测到计算节点正在进行虚拟机迁移,则初始化 所述计算节点的可迁移时间 MH xT -MTVij, 其中 Μ Ί^为该计算节点中 正在进行迁移的虚拟机的迁移时间。
相应的, 本发明实施例第三方面还提供了一种虚拟机迁移管理系统, 包括 至少两个承载虚拟机的计算节点设备和如本发明实施例第二方面所述的任意 一种虚拟机迁移管理装置。
相应的, 本发明实施例第四方面还提供了一种虚拟机迁移管理系统, 包括 承载有至少一个待迁移虚拟机的源计算节点、 目的计算节点, 以及虚拟机迁移 管理装置,
所述虚拟机迁移管理装置用于根据所述待迁移虚拟机的迁移参数计算所 述待迁移虚拟机从所述源计算节点迁移至所述目的计算节点的迁移时间,其中 网络带宽;分别获取所述源计算节点当前的可用迁移时间和所述目的计算节点 当前的可用迁移时间;若所述源计算节点当前的可用迁移时间和所述目的计算 节点当前的可用迁移时间均不小于所述迁移时间,则确定将所述待迁移虚拟机 从源计算节点迁移至目的计算节点。
在本发明实施例第四方面第一种可能的实现方式中,所述迁移时间可以通 过以下两种中的任意一种实现方式计算获得: - - 待迁移虚拟机从源计算节点 i 至目 的计算节点 j 的迁移时间
M 1¾="0(li")/(l— ), 传输次数《 = 1^11{ }, 其中 β0=Μ /β^)., q = MCRV x ( MV-. I BWV )<1, MV-.为所述待迁移虚拟机的分配内存大小, MCRVa为所述待迁移虚拟机的内存改变速率, 为所述待迁移虚拟机分 配得到的迁移网络带宽, N。为预设的最大传输次数, N为满足 aox^-1小于预 设内存脏页阔值的最小整数值, 以及
待迁移虚拟机从源计算节点 i 至目 的计算节点 j 的迁移时间 MTV(/= 0(l-qn)/(l-q) , 传 输 次 数 《 = min{N。,N} , 其 中 aQ = {{MVij CVij)l BWV^) , q = MCRV^ x ((MV^ x CV^I BWV^) < 1 , M ^为 所述待迁移虚拟机的分配内存大小, MCRV为所述待迁移虚拟机的内存改变 速率, 为所述待迁移虚拟机分配得到的迁移网络带宽, N。为预设的最 大传输次数, N为满足 aox^-1小于预设内存脏页阔值的最小整数值, CV 为 待迁移虚拟机的内存压缩比。
本发明实施例通过待迁移虚拟机的迁移参数动态地计算迁移时间,并将计 算得到的迁移时间与源计算节点当前的可用迁移时间和所述目的计算节点当 高了虚拟机迁移决策的准确性。 附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所 需要使用的附图作简单地介绍,显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例中一种虚拟机迁移管理方法的流程示意图;
图 2是本发明另一实施例中的虚拟机迁移管理方法的流程示意图; 图 3是本发明实施例中的虚拟机迁移管理装置的结构示意图;
图 4是本发明另一实施例中的虚拟机迁移管理装置的结构示意图; 图 5是本发明实施例中的一种虚拟机迁移管理系统的结构示意图; 图 6是本发明另一实施例中的虚拟机迁移管理系统的结构示意图; - - 图 7是本发明实施例中提及的分布式资源管理系统的结构示意图。 具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。 所述虚拟机迁移管理装置可以实现在独立的节点设备中, 也可以实现在如图 7 所示的分布式资源管理系统的管理节点设备中,图 7所示的分布式资源管理系 统中包括管理节点设备和多个计算节点, 其中多个计算节点可以汇聚成节点 簇, 在节点簇中还可以设定主节点 Master和从属节点 Slave。
图 1是本发明实施例中的一种虚拟机迁移管理方法的流程示意图,如图所 S101,根据待迁移虚拟机的迁移参数计算所述待迁移虚拟机从源计算节点 迁移至目的计算节点的迁移时间,其中所述迁移参数包括所述待迁移虚拟机的 分配内存大小、 内存改变速率以及迁移网络带宽。
以预拷贝方式进行虚拟机迁移为例,虚拟机迁移管理装置可以根据负载均 衡等因素决策需要从计算节点 i迁移至计算节点 j的虚拟机 , 即待迁移虚拟 机, 进而获取该待迁移虚拟机的上层的业务 QoS ( Quality of Service, 服务质 量保证)为其限定的内存改变速率 MCRV以及下层的网络 QoS为其限定的迁 移网络带宽 , 进而迁移时间的推导过程可以如下:
第 1轮拷贝, 设源计算节点分配给虚拟机 ^的内存为 M ,., 在本实施例 中称之为分配内存。将虚拟机1^的分配内存 Μ ,.从源计算节点 i传输到目的计 算节点 j, 时间消耗为:
ί0 =Μνϋ /ΒΨνϋ ; (示例性的 Μ .单位可以为 Mb, BWT^.单位可以为 Mb/s ) 第 2 轮拷贝, 在第 1 轮拷贝的时间 。内, 虚拟机^的分配内存有 /n x V,. χΜΟ^.,·被改变掉, 需要把这部分内存再从源计算节点 i传输到目的 计算节点 j, 时间消耗为 MVtJ x MCRVtJ I BWVtJ = MCRVtJ x (MVtJ I BWVtJ ; 第 3 轮, 在第 2 轮拷贝的时间 内, 虚拟机^的分配内存有 ^xM^xMO? ^被改变掉, 需要把这部分内存再从源计算节点 i传输到目的 计算节点 j, 时间消耗为: M tJ X MCRVtJ I BWVtJ = (MCRVtJ x (MVtJ I BWVtJ ; 以此类推, 最终迁移时间应该为:
Γ^=/0 + /1 + /2 +…… d
Figure imgf000008_0001
设" 0=Μ /β^)., q = MCRV^ x (MV^ I BWV^ ) , 通常情况下, 通过设置 MO? ^和 可以保证 q是小于 1的, 所以上式是收敛的, 则上述等式进一 步化简为:
+ ...... + aQ qn~l = aQ i- qn) I i- q)
Figure imgf000008_0002
公式
( 1 )
其中 n为传输总次(轮)数, 《 = min{N。,N}, 其中 N。为预设的最大传输 次数, N为满足 βοχ^-1小于预设内存脏页阔值 X的最小整数值, 内存脏页即 每轮拷贝传输过程中发生变化的内存页, 内存脏页阈值 X是一个内存脏页的 数量值, 可以预先由管理员设定, 也就是说当某一轮拷贝的内存脏页数量小于 该内存脏页阔值时, 可以停止拷贝。
而在可选实施例中,可以釆用先对虚拟机内存进行压缩再拷贝的方式进行 虚拟机迁移, 根据釆用的压缩算法可以确定内存压缩比 <^., 进而公式(1 ) 可以调整为:
迁移时间 Μ 1¾=β。(1 卞 , 传输次数 w = min{N。,N}, 其中 aQ = {{MVij CVij)l BWVi}) , q = MCRVi} x {{MVi} x CVi} ) / BWV ) < 1 , n的确定 - - 方式与前文相同。
S 102,分别获取所述源计算节点当前的可用迁移时间和所述目的计算节点 当前的可用迁移时间。
具体的, 可以为每个计算节点设置一个可用迁移时间, 即在每个调度周期 该计算节点可以用以虚拟机迁移的时间。例如在每隔一定周期或者有典型事件 (例如添加 /删除计算节点到虚拟资源集群中、 启动 /关闭虚拟机等)触发资源 调度时初始化每个计算节点的可用迁移时间,进而随着计算节点上发生的影响 该可用迁移时间的典型事件(例如将原先运行在自身计算节点的虚拟机迁移至 别的计算节点, 或将原本运行在其他计算节点的虚拟机迁移至自身计算节点 等)可以对该计算节点上的可用迁移时间进行更新,虚拟机迁移管理装置可以 在决策需要从计算节点 i迁移至计算节点 j的虚拟机 后, 分别获取源计算节 点即计算节点 i当前的可用迁移时间和目的计算节点即计算节点 j当前的可用 迁移时间。
S103,若所述源计算节点当前的可用迁移时间和所述目的计算节点当前的 可用迁移时间均不小于所述迁移时间,则确定将所述待迁移虚拟机从源计算节 点迁移至目的计算节点。
即将 S101中计算得到的所述待迁移虚拟机从源计算节点迁移至目的计算 节点的迁移时间分别与源计算节点当前的可用迁移时间以及目的计算节点当 前的可用迁移时间进行比较,若所述源计算节点当前的可用迁移时间和所述目 的计算节点当前的可用迁移时间均不小于所述迁移时间,则确定可以将所述待 迁移虚拟机从源计算节点迁移至目的计算节点;若所述源计算节点当前的可用 迁移时间小于所述迁移时间或所述目的计算节点当前的可用迁移时间均小于 所述迁移时间,则确定所述待迁移虚拟机不可以从源计算节点迁移至目的计算 节点。
在可选实施例中,在确定可以将所述待迁移虚拟机从源计算节点迁移至目 的计算节点后,虚拟机迁移管理装置可以向所述源计算节点和目的计算节点分 此同时将所述源计算节点当前的可用迁移时间以及目的计算节点当前的可用 迁移时间分别减去所述迁移时间,使得下一次需要进行虚拟机迁移时可以根据 - -
拟机迁移进行决策。对虚拟机迁移以实现对对应计算节点的可用迁移时间的准 确管理,。
而在其他可选实施例中,虚拟机迁移管理装置也可以待所述待迁移虚拟机 的迁移完成后,在所述源计算节点当前的可用迁移时间以及目的计算节点当前 的可用迁移时间更为准确的管理。
可见,本实施例结合图 1所描述的虚拟机迁移管理方法可以根据待迁移虚 拟机的迁移参数动态地计算迁移时间,并将计算得到的迁移时间与源计算节点 当前的可用迁移时间和所述目的计算节点当前的可用迁移时间进行比较从而 确定是否可以进行虚拟机迁移,可以对于计算节点的虚拟机并发迁移数量进行 动态管理, 实现了更为准确的对虚拟机迁移进行决策。 图 2是本发明另一实施例中的虚拟机迁移管理方法的流程示意图,如图所 示本实施例中的虚拟机迁移管理方法可以包括:
S201 , 在每轮资源调度开始时初始化所有计算节点的可用迁移时间。
具体实现中, 所述计算节点 i的可用迁移时间可以初始化为 M7] = N{ xT, 其中 为计算节点 i允许的并发迁移虚拟机数目, Γ为资源调度周期。
在可选实施例中,在初始化各计算节点的可用迁移时间时, 可以检测各计 算节点当前是否正在进行虚拟机迁移, 若当前计算节点 i正在进行向计算节点 j 的虚拟机^的迁移, 则可以将计算节点 i 的可用迁移时间初始化为 MT^ N^T-MTV-., 为根据待迁移虚拟机 ^的迁移参数计算所述待迁 移虚拟机从源计算节点迁移至目的计算节点的迁移时间,所述迁移参数包括所 述待迁移虚拟机的分配内存大小、 内存改变速率以及迁移网络带宽, 具体计算 迁移时间的方式前文实施例中已详细举例, 本实施例中不再赞述。
S202,根据待迁移虚拟机的迁移参数计算所述待迁移虚拟机从源计算节点 迁移至目的计算节点的迁移时间,其中所述迁移参数包括所述待迁移虚拟机的 分配内存大小、 内存改变速率以及迁移网络带宽。
具体的,虚拟机迁移管理装置可以根据负载均衡等因素决策需要从计算节 - - 点 i迁移至计算节点 j的虚拟机^, 即待迁移虚拟机, 进而获取该待迁移虚拟 机的上层的业务 QoS ( Quality of Service, 服务质量保证) 为其限定的内存改 变速率 Μα? 以及下层的网络 QoS为其限定的迁移网络带宽 B T ., 进而可 以计算虚拟机 ^ J从计算节点 i迁移至计算节点 j J的迁移时间 MTVi;, 具体的计 算方法可以参考前文实施例中的步骤 S101, 本实施例中不再赘述。
S203,分别获取所述源计算节点当前的可用迁移时间和所述目的计算节点 当前的可用迁移时间。
S204,若所述源计算节点当前的可用迁移时间和所述目的计算节点当前的 可用迁移时间均不小于所述迁移时间,则确定将所述待迁移虚拟机从源计算节 点迁移至目的计算节点。
即将 S202中计算得到的所述待迁移虚拟机从源计算节点迁移至目的计算 节点的迁移时间分别与源计算节点当前的可用迁移时间以及目的计算节点当 前的可用迁移时间进行比较,若所述源计算节点当前的可用迁移时间和所述目 的计算节点当前的可用迁移时间均不小于所述迁移时间,则确定可以将所述待 迁移虚拟机从源计算节点迁移至目的计算节点;若所述源计算节点当前的可用 迁移时间小于所述迁移时间或所述目的计算节点当前的可用迁移时间均小于 所述迁移时间,则确定所述待迁移虚拟机不可以从源计算节点迁移至目的计算 节点。
S205 , 在开始将所述待迁移虚拟机从源计算节点迁移至目的计算节点后, 在所述源计算节点当前的可用迁移时间中减去所述迁移时间,以及在所述目的 计算节点当前的可用迁移时间中减去所述迁移时间。
具体实现中,在确定可以将所述待迁移虚拟机从源计算节点迁移至目的计 算节点后,虚拟机迁移管理装置可以向所述源计算节点和目的计算节点分别下 述源计算节点当前的可用迁移时间以及目的计算节点当前的可用迁移时间分 别减去所述迁移时间。 而在其他可选实施例中,虚拟机迁移管理装置也可以待 所述待迁移虚拟机的迁移完成后,在所述源计算节点当前的可用迁移时间以及 可见,本实施例结合图 2所描述的虚拟机迁移管理方法可以根据待迁移虚 - - 拟机的迁移参数动态地计算迁移时间,并将计算得到的迁移时间与源计算节点 当前的可用迁移时间和所述目的计算节点当前的可用迁移时间进行比较从而 确定是否可以进行虚拟机迁移,可以对于计算节点的虚拟机并发迁移数量进行 动态管理, 实现了更为准确的对虚拟机迁移进行决策。 图 3是本发明实施例提供的一种虚拟机迁移管理装置的结构示意图,本发 明的虚拟机迁移管理装置可以实现在分布式资源管理系统的管理节点设备中, 也可以实现在其他独立的节点设备中。如图所示本实施例中的虚拟机迁移装置 可以包括:
迁移时间计算模块 310, 用于根据待迁移虚拟机的迁移参数计算所述待迁 移虚拟机从源计算节点迁移至目的计算节点的迁移时间,其中所述迁移参数包 括所述待迁移虚拟机的分配内存大小、 内存改变速率以及迁移网络带宽。
具体实现中, 以预拷贝方式进行虚拟机迁移为例,虚拟机迁移管理装置可 以根据负载均衡等因素决策需要从计算节点 i迁移至计算节点 j的虚拟机 , 即待迁移虚拟机, 进而获取该待迁移虚拟机的上层的业务 QoS ( Quality of Service,服务质量保证)为其限定的内存改变速率 MO?^;以及下层的网络 QoS 为其限定的迁移网络带宽 β ,进而迁移时间计算模块 310计算可以根据公 式(1 )计算迁移时间:
MTV^a^l-q^/^-q) , 传 输 次 数 w = min{N。,N} , 其 中 aQ=MVijIBWVij, q = MCRVij (MVij I B WV^ ) < 1 , 为所述待迁移虚拟机 的分配内存大小, N。为预设的最大传输次数, N为满足 βοχ^-1小于预设内存 脏页阔值的最小整数值。具体迁移时间的计算推导过程前文实施例中已详细阐 述, 本实施例中不再赘述。
而在可选实施例中,可以釆用先对虚拟机内存进行压缩再拷贝的方式进行 虚拟机迁移, 根据釆用的压缩算法可以确定内存压缩比 , 进而公式(1 ) 可以调整为:
迁移时间 Μ 1¾=β。(1 卞 , 传输次数 w = min{N。,N}, 其中 aQ = n
Figure imgf000012_0001
的确定 方式与前文相同。 - - 可迁移时间管理模块 320, 用于分别获取所述源计算节点当前的可用迁移 时间和所述目的计算节点当前的可用迁移时间。
具体的,可迁移时间管理模块 320可以为每个计算节点设置一个可用迁移 时间, 例如在每隔一定周期或者有典型事件 (例如添加 /删除计算节点到虚拟 资源集群中、 启动 /关闭虚拟机等)触发资源调度时初始化每个计算节点的可 用迁移时间。 可选的, 在初始化各计算节点的可用迁移时间时, 可以先检测各 计算节点当前是否正在进行虚拟机迁移, 若当前计算节点 i正在进行向计算节 点 j 的虚拟机 的迁移, 则可以将计算节点 i 的可用迁移时间初始化为 MT^ N^T-MTV-., 为迁移时间计算模块 310根据待迁移虚拟机 ^的 迁移参数计算所述待迁移虚拟机从源计算节点迁移至目的计算节点的迁移时 迁移网络带宽。
进而随着计算节点上发生的影响该可用迁移时间的典型事件(例如将原先 运行在自身计算节点的虚拟机迁移至别的计算节点,或将原本运行在其他计算 节点的虚拟机迁移至自身计算节点等)可以对该计算节点上的可用迁移时间进 行更新, 虚拟机迁移管理装置可以在决策需要从计算节点 i迁移至计算节点 j 的虚拟机1^后,分别获取源计算节点即计算节点 i当前的可用迁移时间和目的 计算节点即计算节点 j当前的可用迁移时间。 例如在迁移判断模块 330确定可 以将所述待迁移虚拟机从源计算节点迁移至目的计算节点后,虚拟机迁移管理 装置可以向所述源计算节点和目的计算节点分别下发虚拟机迁移指令,以使其 开始进行所述待迁移虚拟机的虚拟机迁移,并由可迁移时间管理模块 320将所 述源计算节点当前的可用迁移时间以及目的计算节点当前的可用迁移时间分 别减去所述迁移时间。 而在其他可选实施例中, 可迁移时间管理模块 320也可 以待所述待迁移虚拟机的迁移完成后,在所述源计算节点当前的可用迁移时间 迁移判断模块 330, 用于若所述源计算节点当前的可用迁移时间和所述目 的计算节点当前的可用迁移时间均不小于所述迁移时间,则确定将所述待迁移 虚拟机从源计算节点迁移至目的计算节点。
即将迁移时间计算模块 310计算得到的所述待迁移虚拟机从源计算节点 - - 迁移至目的计算节点的迁移时间分别与源计算节点当前的可用迁移时间以及 目的计算节点当前的可用迁移时间进行比较,若所述源计算节点当前的可用迁 移时间和所述目的计算节点当前的可用迁移时间均不小于所述迁移时间,则迁 移判断模块 330确定可以将所述待迁移虚拟机从源计算节点迁移至目的计算 节点;若所述源计算节点当前的可用迁移时间小于所述迁移时间或所述目的计 算节点当前的可用迁移时间均小于所述迁移时间,则迁移判断模块 330确定所 述待迁移虚拟机不可以从源计算节点迁移至目的计算节点。
在可选实施例中,在确定可以将所述待迁移虚拟机从源计算节点迁移至目 的计算节点后,迁移判断模块 330可以向所述源计算节点和目的计算节点分别 下发虚拟机迁移指令, 以使其开始进行所述待迁移虚拟机的虚拟机迁移, 与此 同时迁移判断模块 330可以通知可迁移时间管理模块 320将所述源计算节点当 前的可用迁移时间以及目的计算节点当前的可用迁移时间分别减去所述迁移 时间。
可见,本实施例结合图 3所描述的虚拟机迁移管理装置可以根据待迁移虚 拟机的迁移参数动态地计算迁移时间,并将计算得到的迁移时间与源计算节点 当前的可用迁移时间和所述目的计算节点当前的可用迁移时间进行比较从而 确定是否可以进行虚拟机迁移,可以对于计算节点的虚拟机并发迁移数量进行 动态管理, 实现了更为准确的对虚拟机迁移进行决策。 图 4是本发明另一实施例中的虚拟机迁移管理装置的结构示意图,如图所 示如图 3所示, 该虚拟机迁移管理装置 400可以包括: 至少一个处理器 401, 例如 CPU, 至少一个网络接口 403, 存储器 404, 至少一个通信总线 402。 其 中,通信总线 402用于实现这些组件之间的连接通信。 网络接口 403可选的可 以包括标准的有线接口、 无线接口 (如 WI-FI接口)。 例如包括天线装置, 用 于与其他节点设备进行信令或数据的通信。存储器 404可以是高速 RAM存储 器, 也可以是非不稳定的存储器(non-volatile memory ), 例如至少一个磁盘存 储器。存储器 404可选的还可以是至少一个位于远离前述处理器 401的存储装 置。存储器 404中存储一组程序代码,且处理器 401用于调用存储器 404中存 储的程序代码, 用于执行以下操作: - - 根据待迁移虚拟机的迁移参数计算所述待迁移虚拟机从源计算节点迁移 至目的计算节点的迁移时间,其中所述迁移参数包括所述待迁移虚拟机的分配 内存大小、 内存改变速率以及迁移网络带宽;
分别获取所述源计算节点当前的可用迁移时间和所述目的计算节点当前 的可用迁移时间;
若所述源计算节点当前的可用迁移时间和所述目的计算节点当前的可用 迁移时间均不小于所述迁移时间,则确定将所述待迁移虚拟机从源计算节点迁 移至目的计算节点。
进而在可选实施例中,所述根据待迁移虚拟机的迁移参数计算所述待迁移 虚拟机从源计算节点迁移至目的计算节点的迁移时间包括:
待迁移虚拟机从源计算节点 i 至目 的计算节点 j 的迁移时间
M 1¾="0(li")/(l ), 传输次数《 = 1^11{ 。 }, 其中 β0=Μ /β ^)., q = MCRVij x [MV^ I BWV^ )<1, MV{j为所述待迁移虚拟机的分配内存大小, MCRVij为所述待迁移虚拟机的内存改变速率, BWT^为所述待迁移虚拟机分 配得到的迁移网络带宽, N。为预设的最大传输次数, N为满足 aox^-1小于预 设内存脏页阔值的最小整数值。
进而在可选实施例中,可以釆用先对虚拟机内存进行压缩再拷贝的方式进 行虚拟机迁移, 根据釆用的压缩算法可以确定内存压缩比 , 进而公式(1) 可以调整为:
迁移时间 M 1^="0(l ")/(l— ), 传输次数 w = min{N。,N}, 其中 aQ =
Figure imgf000015_0001
n的确定 方式与前文相同。
进而在可选实施例中,处理器 401调用存储器 404中存储的程序代码还可 以执行以下步骤:
在开始将所述待迁移虚拟机从源计算节点迁移至目的计算节点后,在所述 源计算节点当前的可用迁移时间中减去所述迁移时间,以及在所述目的计算节 点当前的可用迁移时间中减去所述迁移时间。从而使得下一次需要进行虚拟机
Figure imgf000015_0002
现了动态的对虚拟机迁移进行决策。对虚拟机迁移以实现对对应计算节点的可 - - 用迁移时间的准确管理,。
而在其他可选实施例中,虚拟机迁移管理装置也可以待所述待迁移虚拟机 的迁移完成后,在所述源计算节点当前的可用迁移时间以及目的计算节点当前 的可用迁移时间更为准确的管理。
进而在可选实施例中,处理器 401调用存储器 404中存储的程序代码还可 以执行以下步骤:
在每轮资源调度开始时初始化所有计算节点的可用迁移时间 ΜΊ] = Ν Τ , 其中 为对应计算节点支持的并发迁移虚拟机数目, Τ为资源 调度周期。
进而在可选实施例中,在初始化各计算节点的可用迁移时间时, 可以检测 各计算节点当前是否正在进行虚拟机迁移, 若当前计算节点 i正在进行向计算 节点 j 的虚拟机 的迁移, 则可以将计算节点 i 的可用迁移时间初始化为 Τ· = χ Γ - Γν,., 为根据待迁移虚拟机 ^的迁移参数计算所述待迁 移虚拟机从源计算节点迁移至目的计算节点的迁移时间。
可见,本实施例结合图 4所描述的虚拟机迁移管理装置可以根据待迁移虚 拟机的迁移参数动态地计算迁移时间,并将计算得到的迁移时间与源计算节点 当前的可用迁移时间和所述目的计算节点当前的可用迁移时间进行比较从而 确定是否可以进行虚拟机迁移,可以对于计算节点的虚拟机并发迁移数量进行 动态管理, 实现了更为准确的对虚拟机迁移进行决策。 图 5是本发明实施例提出的一种虚拟机迁移管理系统的结构示意图,如图 所示本实施例中的虚拟机迁移管理系统至少可以包括至少两个承载虚拟机的 计算节点设备 510、 计算节点设备 520... ...计算机节点设备 5n0以及虚拟机迁 移管理装置 500, 其中:
所述虚拟机迁移管理装置 500可以如前文任一实施例描述的虚拟机迁移 管理装置,用于根据待迁移虚拟机的迁移参数计算所述待迁移虚拟机从源计算 节点迁移至目的计算节点的迁移时间,其中所述迁移参数包括所述待迁移虚拟 机的分配内存大小、 内存改变速率以及迁移网络带宽; 分别获取所述源计算节 - - 点当前的可用迁移时间和所述目的计算节点当前的可用迁移时间;若所述源计 算节点当前的可用迁移时间和所述目的计算节点当前的可用迁移时间均不小 于所述迁移时间,则确定将所述待迁移虚拟机从源计算节点迁移至目的计算节 点。
所述计算节点设备用于在所述虚拟机迁移管理装置确定将所述待迁移虚 拟机从源计算节点迁移至目的计算节点时, 负责将待迁移虚拟机进行迁移操 作。
进而本实施例介绍的虚拟机迁移管理系统可以用以实现前文任一方法实 施例中的全部或部分虚拟机迁移管理方法流程。 图 6是本发明另一实施例中的一种虚拟机迁移管理系统, 其特征在于, 包 括承载有至少一个待迁移虚拟机的源计算节点 i620、 目的计算节点 j630, 以及 虚拟机迁移管理装置 610,
所述虚拟机迁移管理装置 610用于根据所述待迁移虚拟机的迁移参数计 算所述待迁移虚拟机从所述源计算节点 i620迁移至所述目的计算节点 j630的 变速率以及迁移网络带宽; 分别获取所述源计算节点 i620 当前的可用迁移时 间和所述目的计算节点 j630当前的可用迁移时间; 若所述源计算节点 i620当 前的可用迁移时间和所述目的计算节点 j630 当前的可用迁移时间均不小于所 述迁移时间, 则确定将所述待迁移虚拟机从源计算节点 i620迁移至目的计算 节点 j630。
在可选实施例中,所述迁移时间可以通过以下两种中的任意一种实现方式 计算获得:
待迁移虚拟机从源计算节点 i620 至目的计算节点 j630 的迁移时间 M 1¾ = "0 (li")/(l— ), 传输次数《 = 1^11 { }, 其中 "。 = M /B ^ q = MCRVij x ((MV^ x CVi ) I BWV{j ) < 1, MVi为所述待迁移虚拟机的分配内存 大小, Μα? ,.为所述待迁移虚拟机的内存改变速率, β ^.,.为所述待迁移虚 拟机分配得到的迁移网络带宽, N。为预设的最大传输次数, N为满足 βο Χ ^-1 小于预设内存脏页阔值的最小整数值, 以及 - - 待迁移虚拟机从源计算节点 i620 至目的计算节点 j630 的迁移时间 ΜΤνϋ = α0 ΐ- ρη)/ ΐ- ρ) , 传 输 次 数 《 = min{N。,N} , 其 中 aQ = {{MVij CVij)l BWV^) , q = MCRV^ x ((MV^ x CV^I BWV^) < 1 , M ^为 所述待迁移虚拟机的分配内存大小, MCR 为所述待迁移虚拟机的内存改变 速率, 为所述待迁移虚拟机分配得到的迁移网络带宽, N。为预设的最 大传输次数, N为满足 ao x^-1小于预设内存脏页阔值的最小整数值, CV 为 待迁移虚拟机的内存压缩比。
进而本实施例介绍的虚拟机迁移管理系统可以用以实现前文任一方法实 施例中的全部或部分虚拟机迁移管理方法流程。 本发明实施例通过根据待迁移虚拟机的迁移参数动态地计算迁移时间,并 将计算得到的迁移时间与源计算节点当前的可用迁移时间和所述目的计算节
计算节点的虚拟机并发迁移数量进行动态管理,实现了更为准确的对虚拟机迁 移进行决策。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算 机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM )或随机存储记忆体(Random Access Memory, RAM )等。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之 权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。

Claims

权 利 要 求
1、 一种虚拟机迁移管理方法, 其特征在于, 所述方法包括:
根据待迁移虚拟机的迁移参数计算所述待迁移虚拟机从源计算节点迁移 至目的计算节点的迁移时间,其中所述迁移参数包括所述待迁移虚拟机的分配 内存大小、 内存改变速率以及迁移网络带宽;
分别获取所述源计算节点当前的可用迁移时间和所述目的计算节点当前 的可用迁移时间;
若所述源计算节点当前的可用迁移时间和所述目的计算节点当前的可用 迁移时间均不小于所述迁移时间,则确定将所述待迁移虚拟机从源计算节点迁 移至目的计算节点。
2、 如权利要求 1所述的虚拟机迁移管理方法, 其特征在于, 所述根据待 迁移虚拟机的迁移参数计算所述待迁移虚拟机从源计算节点迁移至目的计算 节点的迁移时间包括:
待迁移虚拟机从源计算节点 i 至目 的计算节点 j 的迁移时间
M 1¾="0(li")/(l— ), 传输次数《 = 1^11{ }, 其中 β0=Μ /β^)., q = MCRV x MV-. I BWV^ < 1, MV-.为所述待迁移虚拟机的分配内存大小, MCRVa为所述待迁移虚拟机的内存改变速率, 为所述待迁移虚拟机分 配得到的迁移网络带宽, N。为预设的最大传输次数, N为满足 aox^-1小于预 设内存脏页阔值的最小整数值。
3、 如权利要求 1所述的虚拟机迁移管理方法, 其特征在于, 所述根据待 迁移虚拟机的迁移参数计算所述待迁移虚拟机从源计算节点迁移至目的计算 节点的迁移时间包括:
待迁移虚拟机从源计算节点 i 至目 的计算节点 j 的迁移时间
M 1¾="0(li")/(l ) , 传 输 次 数 w = min{N。,N} , 其 中 a0 = ((MViJxCViJ)/BWViJ) , q = MCRVtj x {{MVtj x CVtj)l BWVtj) < 1 , MV 为 所述待迁移虚拟机的分配内存大小, MCRVa为所述待迁移虚拟机的内存改变 速率, 为所述待迁移虚拟机分配得到的迁移网络带宽, N。为预设的最 大传输次数, N为满足 ao x ^-1小于预设内存脏页阔值的最小整数值, CV 为 待迁移虚拟机的内存压缩比。
4、 如权利要求 1~3中任一项所述的虚拟机迁移管理方法, 其特征在于, 所述方法还包括:
在开始将所述待迁移虚拟机从源计算节点迁移至目的计算节点后,在所述 源计算节点当前的可用迁移时间中减去所述迁移时间,以及在所述目的计算节 点当前的可用迁移时间中减去所述迁移时间。
5、 如权利要求 1~4中任一项所述的虚拟机迁移管理方法, 其特征在于, 所述方法还包括:
在每轮资源调度开始时初始化所有计算节点的可用迁移时间 ΜΊ] = Ν Τ , 其中 为对应计算节点支持的并发迁移虚拟机数目, Τ为资源 调度周期。
6、 如权利要求 5所述的虚拟机迁移管理方法, 其特征在于, 若在每轮资 源调度开始时检测到计算节点正在进行虚拟机迁移,则初始化所述计算节点的 可迁移时间 Μ7] = Nt xT - MTVij, 其中 MTVij为该计算节点中正在进行迁移的 虚拟机的迁移时间。
7、 一种虚拟机迁移管理装置, 其特征在于, 包括:
迁移时间计算模块,用于根据待迁移虚拟机的迁移参数计算所述待迁移虚 拟机从源计算节点迁移至目的计算节点的迁移时间,其中所述迁移参数包括所 述待迁移虚拟机的分配内存大小、 内存改变速率以及迁移网络带宽;
可迁移时间管理模块,用于分别获取所述源计算节点当前的可用迁移时间 和所述目的计算节点当前的可用迁移时间;
迁移判断模块,用于若所述源计算节点当前的可用迁移时间和所述目的计 算节点当前的可用迁移时间均不小于所述迁移时间,则确定将所述待迁移虚拟 机从源计算节点迁移至目的计算节点。
8、 如权利要求 7所述的虚拟机迁移管理装置, 其特征在于, 所述可迁移 时间管理模块还用于:
在开始将所述待迁移虚拟机从源计算节点迁移至目的计算节点后,在所述 源计算节点当前的可用迁移时间中减去所述迁移时间,以及在所述目的计算节 点当前的可用迁移时间中减去所述迁移时间。
9、 如权利要求 7所述的虚拟机迁移管理装置, 其特征在于, 所述迁移时 间计算模块计算迁移时间包括:
待迁移虚拟机从源计算节点 i 至目 的计算节点 j 的迁移时间 M 1¾="0(li")/(l ), 传输次数《 = 1^11{ 。 }, 其中 β0=Μ /β^)., q = MCRVij x [MV^ I BWVtj )<1, MVtj为所述待迁移虚拟机的分配内存大小, MCRVij为所述待迁移虚拟机的内存改变速率, BWT^为所述待迁移虚拟机分 配得到的迁移网络带宽, N。为预设的最大传输次数, N为满足 aox^-1小于预 设内存脏页阔值的最小整数值。
10、 如权利要求 7所述的虚拟机迁移管理装置, 其特征在于, 所述迁移时 间计算模块计算迁移时间包括:
待迁移虚拟机从源计算节点 i 至目 的计算节点 j 的迁移时间
ΜΤνϋ0 ΐ-ρη)/ ΐ-ρ) , 传 输 次 数 《 = min{N。,N} , 其 中 an = (( V,. X C . ) I BWV^ ) , q = MCRV x (( V,. x CV,. ) I BWV^ ) < 1, MV 为 所述待迁移虚拟机的分配内存大小, MCRV为所述待迁移虚拟机的内存改变 速率, 为所述待迁移虚拟机分配得到的迁移网络带宽, N。为预设的最 大传输次数, N为满足 aox^-1小于预设内存脏页阔值的最小整数值, CV 为 待迁移虚拟机的内存压缩比。
11、如权利要求 7~10中任一项所述的虚拟机迁移管理装置, 其特征在于, 所述可迁移时间管理模块还用于: 在每轮资源调度开始时初始化所有计算节点的可用迁移时间
ΜΊ]二 Ν^Τ , 其中 为对应计算节点支持的并发迁移虚拟机数目, T为资源 调度周期。
12、 如权利要求 11所述的虚拟机迁移管理装置, 其特征在于, 所述可迁 移时间管理模块还用于:
若在每轮资源调度开始时检测到计算节点正在进行虚拟机迁移,则初始化 所述计算节点的可迁移时间 MT^NiXT— MTVi;, 其中 为该计算节点中 正在进行迁移的虚拟机的迁移时间。
13、 一种虚拟机迁移管理系统, 其特征在于, 包括至少两个承载虚拟机的 计算节点设备和如权利要求 7~12中任一项所述的虚拟机迁移管理装置。
14、 一种虚拟机迁移管理系统, 其特征在于, 包括承载有至少一个待迁移 虚拟机的源计算节点、 目的计算节点, 以及虚拟机迁移管理装置,
所述虚拟机迁移管理装置用于根据所述待迁移虚拟机的迁移参数计算所 述待迁移虚拟机从所述源计算节点迁移至所述目的计算节点的迁移时间,其中 网络带宽;分别获取所述源计算节点当前的可用迁移时间和所述目的计算节点 当前的可用迁移时间;若所述源计算节点当前的可用迁移时间和所述目的计算 节点当前的可用迁移时间均不小于所述迁移时间,则确定将所述待迁移虚拟机 从源计算节点迁移至目的计算节点。
15、 如权利要求 14所述的虚拟机迁移管理系统, 其特征在于, 所述迁移 时间可以通过以下两种中的任意一种实现方式计算获得:
待迁移虚拟机从源计算节点 i 至目 的计算节点 j 的迁移时间 M 1¾="0(li")/(l— ), 传输次数《 = 1^11{ }, 其中 β0=Μ /β^)., q = MCRV x ( MV-. I BWV )<1, MV-.为所述待迁移虚拟机的分配内存大小, MCRVa为所述待迁移虚拟机的内存改变速率, β 为所述待迁移虚拟机分 配得到的迁移网络带宽, N。为预设的最大传输次数, N为满足 βοχ^-1小于预 设内存脏页阔值的最小整数值, 以及
待迁移虚拟机从源计算节点 i 至目 的计算节点 j 的迁移时间
M 1¾="0(li")/(l ) , 传 输 次 数 w = min{N。,N} , 其 中 a^dMV^xCV^/BWV^) , q = MCRV^ x {{MV^ x CV^I BWV^) < 1 , 为 所述待迁移虚拟机的分配内存大小, MCR 为所述待迁移虚拟机的内存改变 速率, 为所述待迁移虚拟机分配得到的迁移网络带宽, N。为预设的最 大传输次数, N为满足 aox^-1小于预设内存脏页阔值的最小整数值, 为 待迁移虚拟机的内存压缩比。
PCT/CN2014/083869 2013-12-06 2014-08-07 一种虚拟机迁移管理方法、装置及系统 Ceased WO2015081717A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
KR1020167008845A KR101814560B1 (ko) 2013-12-06 2014-08-07 가상 머신 마이그레이션 관리 방법, 장치, 및 시스템
JP2016519928A JP6168576B2 (ja) 2013-12-06 2014-08-07 仮想マシンマイグレーション管理の方法、装置およびシステム
EP14795536.3A EP2894827B1 (en) 2013-12-06 2014-08-07 Method, apparatus, and system for managing migration of virtual machine
US14/557,994 US9720728B2 (en) 2013-12-06 2014-12-02 Migrating a VM when the available migration duration times of a source and destination node are greater than the VM's migration duration time

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310656235.1A CN103685256B (zh) 2013-12-06 2013-12-06 一种虚拟机迁移管理方法、装置及系统
CN201310656235.1 2013-12-06

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/557,994 Continuation US9720728B2 (en) 2013-12-06 2014-12-02 Migrating a VM when the available migration duration times of a source and destination node are greater than the VM's migration duration time

Publications (1)

Publication Number Publication Date
WO2015081717A1 true WO2015081717A1 (zh) 2015-06-11

Family

ID=50321571

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/083869 Ceased WO2015081717A1 (zh) 2013-12-06 2014-08-07 一种虚拟机迁移管理方法、装置及系统

Country Status (6)

Country Link
US (1) US9720728B2 (zh)
EP (1) EP2894827B1 (zh)
JP (1) JP6168576B2 (zh)
KR (1) KR101814560B1 (zh)
CN (1) CN103685256B (zh)
WO (1) WO2015081717A1 (zh)

Families Citing this family (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685256B (zh) * 2013-12-06 2017-08-04 华为技术有限公司 一种虚拟机迁移管理方法、装置及系统
US9558005B2 (en) 2014-05-19 2017-01-31 Intel Corporation Reliable and deterministic live migration of virtual machines
CN107430518A (zh) * 2015-03-27 2017-12-01 英特尔公司 用于虚拟机迁移的技术
EP3314424A4 (en) * 2015-06-26 2019-02-06 Intel Corporation METHOD FOR MIGRATING A VIRTUAL MACHINE
US9733970B2 (en) * 2015-08-21 2017-08-15 International Business Machines Corporation Placement of virtual machines on preferred physical hosts
US9959138B1 (en) 2015-09-11 2018-05-01 Cohesity, Inc. Adaptive self-maintenance scheduler
US9336042B1 (en) * 2015-11-19 2016-05-10 International Business Machines Corporation Performing virtual machine live migration within a threshold time by adding available network path in multipath network
CN107566319B (zh) * 2016-06-30 2021-01-26 中央大学 虚拟机器即时转移方法
CN106227580A (zh) * 2016-07-18 2016-12-14 浪潮(北京)电子信息产业有限公司 一种虚拟机的动态迁移方法及系统
CN107977264B (zh) * 2016-10-24 2022-06-10 阿里巴巴集团控股有限公司 一种虚拟机内存资源的调度方法以及装置
US10545777B2 (en) * 2016-11-08 2020-01-28 International Business Machines Corporation Generating a virtual machines relocation protocol
CN106874066B (zh) * 2017-01-20 2021-01-26 中兴通讯股份有限公司 一种虚拟机迁移方法及装置、电子设备
US10997132B2 (en) * 2017-02-07 2021-05-04 Oracle International Corporation Systems and methods for live data migration with automatic redirection
CN106970824B (zh) * 2017-03-07 2019-12-17 华中科技大学 一种基于带宽感知的虚拟机迁移压缩方法及系统
CN108804198A (zh) * 2017-04-26 2018-11-13 北京邮电大学 一种基于利用率变化趋势预测的虚拟机迁移时机确定方法
US10375169B1 (en) * 2017-05-24 2019-08-06 United States Of America As Represented By The Secretary Of The Navy System and method for automatically triggering the live migration of cloud services and automatically performing the triggered migration
CN107368349B (zh) * 2017-07-17 2020-09-08 郑州云海信息技术有限公司 一种资源管理方法及装置
JP6901683B2 (ja) * 2017-09-22 2021-07-14 富士通株式会社 調整プログラム、調整装置および調整方法
US10445129B2 (en) * 2017-10-31 2019-10-15 Vmware, Inc. Virtual computing instance transfer path selection
CN108037980B (zh) * 2018-01-02 2023-03-14 腾讯科技(深圳)有限公司 控制执行虚拟机热迁移的方法、装置和可读存储介质
CN109408195B (zh) * 2018-09-05 2022-04-22 华为云计算技术有限公司 虚拟机热迁移方法及装置
CN109246229B (zh) * 2018-09-28 2021-08-27 网宿科技股份有限公司 一种分发资源获取请求的方法和装置
JP7198102B2 (ja) * 2019-02-01 2022-12-28 日本電信電話株式会社 処理装置及び移動方法
JP7177349B2 (ja) * 2019-02-08 2022-11-24 富士通株式会社 スケジュールプログラム、スケジュール装置およびスケジュール方法
FR3094812A1 (fr) * 2019-04-08 2020-10-09 Orange Procédé et dispositif de migration d’une fonction virtualisée en cas de défaillance de l’environnement technique de serveurs
US11301307B2 (en) * 2019-07-24 2022-04-12 Red Hat, Inc. Predictive analysis for migration schedulers
US11409619B2 (en) 2020-04-29 2022-08-09 The Research Foundation For The State University Of New York Recovering a virtual machine after failure of post-copy live migration
US11875169B2 (en) * 2020-07-21 2024-01-16 Google Llc Optimizing replication-based migration of virtual machines
US11620156B2 (en) * 2020-12-04 2023-04-04 Red Hat, Inc. Live migration with guaranteed maximum migration downtimes
KR102262645B1 (ko) 2020-12-31 2021-06-09 박용정 클라우드 컴퓨팅 환경에서의 리소스관리를 위한 모니터링 시스템 및 방법
CN113254161B (zh) * 2021-06-29 2021-10-26 飞腾信息技术有限公司 一种基于cpu的快速虚拟机热迁移方法
CN115543530A (zh) * 2021-06-30 2022-12-30 华为技术有限公司 一种虚拟机迁移方法以及相关装置
KR102403625B1 (ko) * 2021-10-15 2022-05-30 오케스트로 주식회사 물리 서버 성능 저하를 고려하여 가상 머신 예측 관리를 구현한 가상 머신 배치 시스템 및 가상 머신 배치 방법
CN115587222B (zh) * 2022-12-12 2023-03-17 阿里巴巴(中国)有限公司 分布式图计算方法、系统及设备
CN117806776B (zh) * 2024-02-29 2024-05-10 山东海量信息技术研究院 一种数据迁移方法、装置及电子设备和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7484208B1 (en) * 2002-12-12 2009-01-27 Michael Nelson Virtual machine migration
JP4438807B2 (ja) * 2007-03-02 2010-03-24 日本電気株式会社 仮想マシンシステム、管理サーバ、仮想マシン移行方法及びプログラム
CN102866915A (zh) * 2012-08-21 2013-01-09 华为技术有限公司 虚拟化集群整合方法、装置及虚拟化集群系统
CN103685256A (zh) * 2013-12-06 2014-03-26 华为技术有限公司 一种虚拟机迁移管理方法、装置及系统

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8095929B1 (en) * 2007-04-16 2012-01-10 Vmware, Inc. Method and system for determining a cost-benefit metric for potential virtual machine migrations
US9110702B2 (en) 2010-06-02 2015-08-18 Microsoft Technology Licensing, Llc Virtual machine migration techniques
JP5763961B2 (ja) * 2011-04-14 2015-08-12 キヤノン株式会社 通信装置、通信システム、通信装置の制御方法およびプログラム
CN103064733A (zh) * 2011-10-20 2013-04-24 电子科技大学 云计算虚拟机热迁移技术
KR101586598B1 (ko) 2012-01-10 2016-01-18 후지쯔 가부시끼가이샤 가상 머신 관리 기록 매체, 방법 및 장치
US20130226645A1 (en) * 2012-02-24 2013-08-29 Certain, Inc. Method and apparatus for appointment matching and scheduling in event management
JP2013200615A (ja) * 2012-03-23 2013-10-03 Nec Corp 仮想マシン移動制御システム、仮想マシン移動方法およびプログラム
US10282196B2 (en) * 2012-04-06 2019-05-07 Oracle International Corporation System and method for moving enterprise software application components across environments
CN102662763B (zh) * 2012-04-11 2014-03-26 华中科技大学 基于服务质量的虚拟机资源调度方法
US9172587B2 (en) * 2012-10-22 2015-10-27 International Business Machines Corporation Providing automated quality-of-service (‘QoS’) for virtual machine migration across a shared data center network
US9083724B2 (en) * 2013-05-30 2015-07-14 Netapp, Inc. System iteratively reducing I/O requests during migration of virtual storage system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7484208B1 (en) * 2002-12-12 2009-01-27 Michael Nelson Virtual machine migration
JP4438807B2 (ja) * 2007-03-02 2010-03-24 日本電気株式会社 仮想マシンシステム、管理サーバ、仮想マシン移行方法及びプログラム
CN102866915A (zh) * 2012-08-21 2013-01-09 华为技术有限公司 虚拟化集群整合方法、装置及虚拟化集群系统
CN103685256A (zh) * 2013-12-06 2014-03-26 华为技术有限公司 一种虚拟机迁移管理方法、装置及系统

Also Published As

Publication number Publication date
JP2016537705A (ja) 2016-12-01
EP2894827A1 (en) 2015-07-15
CN103685256A (zh) 2014-03-26
KR20160049006A (ko) 2016-05-04
US9720728B2 (en) 2017-08-01
EP2894827A4 (en) 2015-09-02
US20150160972A1 (en) 2015-06-11
CN103685256B (zh) 2017-08-04
EP2894827B1 (en) 2016-10-26
JP6168576B2 (ja) 2017-07-26
KR101814560B1 (ko) 2018-01-04

Similar Documents

Publication Publication Date Title
WO2015081717A1 (zh) 一种虚拟机迁移管理方法、装置及系统
US10263911B2 (en) System and method for resource management
CN105183561B (zh) 一种资源分配方法和系统
US20170195282A1 (en) Address Processing Method, Related Device, and System
CN108475207A (zh) 云应用的联合自动缩放
WO2014032287A1 (zh) 中央处理器资源分配方法和计算节点
WO2016058415A1 (zh) 一种应用伸缩管理方法及装置
WO2018059029A1 (zh) 一种资源分配方法、相关设备及系统
EP3506575B1 (en) Method and device for data transmission
CN105391797A (zh) 基于sdn的云服务器负载均衡方法及装置
WO2012100544A1 (zh) 基于网络数据流向的虚拟机迁移方法、设备和集群系统
WO2015027771A1 (zh) 一种虚拟机的资源配置方法和通信设备
CN106664259B (zh) 虚拟网络功能扩容的方法和装置
CN105607950A (zh) 一种虚拟机资源配置方法和装置
CN106713375A (zh) 云资源的调配方法及装置
US10223219B2 (en) Managing network failure using back-up networks
CN106034153A (zh) 带宽资源分配方法、数据传输方法、装置及系统
CN106059940B (zh) 一种流量控制方法及装置
CN106534227B (zh) 用于扩展分布式一致性服务的方法和设备
CN104991822A (zh) 一种管理内存的方法和装置
CN109981412B (zh) 集群中数据迁移方法、装置及存储介质
CN110290228A (zh) 一种互联网协议ip地址分配方法及装置
WO2016192011A1 (zh) 一种拥塞控制的方法及网元设备
CN107534678A (zh) 建立vnfm与vim之间的连接的方法、装置及系统
JP6600250B2 (ja) マルチコアcpuを有するパケット転送装置の制御装置及びプログラム

Legal Events

Date Code Title Description
REEP Request for entry into the european phase

Ref document number: 2014795536

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014795536

Country of ref document: EP

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14795536

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2016519928

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20167008845

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE