WO2014082442A1 - Virtual machine scheduling method and device - Google Patents

Virtual machine scheduling method and device Download PDF

Info

Publication number
WO2014082442A1
WO2014082442A1 PCT/CN2013/077775 CN2013077775W WO2014082442A1 WO 2014082442 A1 WO2014082442 A1 WO 2014082442A1 CN 2013077775 W CN2013077775 W CN 2013077775W WO 2014082442 A1 WO2014082442 A1 WO 2014082442A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource pool
target
source
virtual machine
computing node
Prior art date
Application number
PCT/CN2013/077775
Other languages
French (fr)
Chinese (zh)
Inventor
陈岩
单卫华
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2014082442A1 publication Critical patent/WO2014082442A1/en

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
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5011Pool

Definitions

  • the present invention relates to communications technologies, and in particular, to a virtual machine scheduling method and device.
  • the physical computing nodes in the cloud computing resource pool are unevenly loaded, resulting in reduced service efficiency and waste of resources.
  • the load of each physical computing node needs to be balanced through load balancing scheduling.
  • the most commonly used load balancing technology is load balancing scheduling of the central processing unit (CPU) occupancy of physical computing nodes.
  • the resource management system periodically collects the CPU usage of each physical computing node, and determines whether the physical computing node is overloaded by comparing the CPU usage of each physical computing node with a preset overloaded threshold. Virtual machine scheduling.
  • the system When scheduling, the system first selects the light load computing node, and determines whether the physical computing node is lightly loaded by comparing the CPU usage of the physical computing node with a preset light load threshold. The system uses the light-loaded physical computing node as the target node and the overloaded physical computing node as the source node.
  • the scheduling is triggered, the virtual machine is migrated from the source node to the target node.
  • the CPU usage of the target node reaches a balanced threshold.
  • the target node is reselected to continue to migrate the virtual machine.
  • the virtual machine migration is stopped after the source node CPU usage is lower than the reload threshold.
  • the scheduling scheme only pays attention to the CPU usage of the physical computing node, and cannot guarantee the CPU quality of the virtual machine after scheduling.
  • an embodiment of the present invention provides a virtual machine scheduling method and device, which are used to solve the problem that an existing load balancing scheduling solution cannot guarantee CPU service quality.
  • a virtual machine scheduling method including:
  • the source resource pool is a reload resource pool on the source physical computing node, where the multiplexing ratio is a ratio of the number of VCPUs to the number of physical cores;
  • Target resource pool is a resource pool on the target physical computing node, and
  • the reuse ratio of the target resource pool is the same as the reuse ratio of the source resource pool, and the target resource pool has sufficient resources set;
  • the virtual machine on the source resource pool is migrated to the target resource pool.
  • the target resource pool is configured with sufficient resources, including:
  • the target resource pool has sufficient resources set, where X is the number of VCPUs of the source resource pool, and Y is the original VCPU of the target resource pool.
  • the number is the reuse ratio of the source resource pool and the target resource pool, M is the number of physical cores of the target resource pool, and K is the number of physical cores that the target resource pool can acquire from another resource pool.
  • the determining a multiplexing ratio of the source resource pool includes:
  • the multiplexing ratio is determined according to the number of the VCPUs and the number of the physical cores.
  • the method further includes: acquiring a CPU usage of a CPU of each virtual machine in each resource pool, and obtaining all the CPU usage according to each virtual machine The sum of the CPU usage of the virtual machine and the number of physical cores that get each resource pool;
  • the migrating the virtual machine on the source resource pool to the target resource pool includes: the sum of the CPU usage of the virtual machine to be migrated and the original CPU usage of the target resource pool is less than or equal to When the heavy load value is described, the virtual machine on the source resource pool is migrated to the target resource pool.
  • the method further includes: interacting with each physical computing node, acquiring resource information of each resource pool, the resource information packet Includes a list of virtual machines and updates the list of virtual machines for each resource pool when the virtual machine is started, created, migrated, stopped, or deleted.
  • the selecting the target resource pool includes:
  • the resource pool of the source resource pool When the resource pool of the source resource pool has the same multiplexing ratio as the source resource pool and has the set sufficient resources, the resource pool is selected as the target resource pool; or
  • the The resources in the resource pool of redundant resources allocate the reduced resources to the target resource pool.
  • a virtual machine scheduling device including:
  • a determining module configured to determine a multiplexing ratio of the source resource pool, where the source resource pool is a reloading resource pool on the source physical computing node, where the multiplexing ratio is a ratio of the number of VCPUs to the number of physical cores;
  • a selection module configured to select a target resource pool, where the target resource pool is a resource pool on the target physical computing node, and the multiplexing ratio of the target resource pool is the same as the multiplexing ratio of the source resource pool, and the The target resource pool has sufficient resources set;
  • a migration module configured to migrate a virtual machine on the source resource pool to the target resource pool.
  • the target resource pool selected by the selecting module is configured to have sufficient resources, including:
  • the target resource pool has sufficient resources set, where X is the number of VCPUs of the source resource pool, and ⁇ is the original VCPU of the target resource pool.
  • the quantity, the reuse ratio of the source resource pool and the target resource pool, the number of physical cores of the target resource pool, and the number of physical cores that the target resource pool can acquire from another resource pool.
  • the determining module is specifically configured to:
  • the multiplexing ratio is determined according to the number of the VCPUs and the number of the physical cores.
  • the method further includes: a processing module, configured to acquire a central processor CPU usage of each virtual machine in each resource pool, according to each virtual machine
  • the CPU usage is obtained as the sum of the CPU usage of all the virtual machines, and the number of physical cores of each resource pool; and the ratio of the sum of the CPU usage of the virtual machine to the number of the physical cores is determined as the resource.
  • the CPU usage of the pool is determined as the resource pool of the resource pool whose CPU usage exceeds the set overload threshold;
  • the migrating module is configured to: when the sum of the CPU usage of the virtual machine to be migrated and the original CPU usage of the target resource pool is less than or equal to the heavy load threshold, the source resource pool is used. The virtual machine is migrated to the target resource pool.
  • the method further includes: an update module, configured to interact with each physical computing node to obtain resource information of each resource pool, where the resource information includes a virtual A list of machines and a list of virtual machines for each resource pool when the virtual machine is started, created, migrated, stopped, or deleted.
  • an update module configured to interact with each physical computing node to obtain resource information of each resource pool, where the resource information includes a virtual A list of machines and a list of virtual machines for each resource pool when the virtual machine is started, created, migrated, stopped, or deleted.
  • the selecting module is specifically configured to:
  • the resource pool of the source resource pool When the resource pool of the source resource pool has the same multiplexing ratio as the source resource pool and has the set sufficient resources, the resource pool is selected as the target resource pool; or
  • a resource pool having the same multiplexing ratio as the source resource pool is not present on the target physical computing node, or there is a resource pool having the same multiplexing ratio as the source resource pool, but the resource pool does not have a set.
  • the resource pool having the same multiplexing ratio is used as the target resource pool of the migration virtual machine. Since the resource pools of the same multiplexing ratio have the same CPU service quality, after the virtual machine is scheduled, Can guarantee the quality of CPU service.
  • FIG. 1 is a schematic flowchart of an embodiment of a virtual machine scheduling method according to the present invention
  • FIG. 2 is a schematic diagram of dividing a resource pool by a physical computing node according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an update situation of a resource pool in an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another update of a resource pool in an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of scheduling a virtual machine in an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of another embodiment of a virtual machine scheduling method according to the present invention.
  • FIG. 7 is another schematic diagram of scheduling a virtual machine in an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of an embodiment of a virtual machine scheduling device according to the present invention.
  • FIG. 9 is a schematic structural diagram of another embodiment of a virtual machine scheduling device according to the present invention.
  • FIG. 1 is a schematic flowchart of a virtual machine scheduling method according to an embodiment of the present invention, including:
  • the scheduling node determines a multiplexing ratio of the source resource pool, where the source resource pool is a reloading resource pool on the source physical computing node, where the multiplexing ratio is a ratio of the number of VCPUs to the number of physical cores;
  • the scheduling node selects a target resource pool, where the target resource pool is a resource pool on the target physical computing node, and the multiplexing ratio of the target resource pool is the same as the multiplexing ratio of the source resource pool, and the target The resource pool has sufficient resources for the virtual machine hosting the source resource pool;
  • the scheduling node migrates the virtual machine on the source resource pool to the target resource pool.
  • Each physical compute node's CPU has multiple physical cores.
  • the underlying operating system process and kernel binding technology can control the virtual machine's virtual CPU (VCPU) process to run on different physical cores, thereby isolating different virtual machines. Machine conflicts on CPU resource usage.
  • VCPU virtual machine's virtual CPU
  • the CPU of the physical computing node can be divided into multiple resource pools, and different resource pools have different CPU Quality of Service (QoS).
  • QoS CPU Quality of Service
  • resources can be divided according to the multiplexing ratio Pool, reuse ratio refers to the ratio of the number of VCPUs in a resource pool to the number of physical cores in the resource pool.
  • VM virtual machine
  • the CPU resources that each virtual machine can acquire are related to the number of VCPUs in the resource pool and the number of physical cores. When all virtual machines in the resource pool are busy, the physical CPU resources that each VCPU can acquire are physical cores. Number / VCPU total.
  • the CPU service quality of the virtual machine can be guaranteed by controlling the number of physical cores and the number of VCPUs in the resource pool.
  • resource pools may be divided according to a multiplexing ratio, and each resource pool has a respective multiplexing ratio.
  • physical compute node A can be divided into a high-performance resource pool, a normal resource pool, and a default resource pool.
  • the reuse ratio of the high-performance resource pool is 1:1
  • the reuse ratio of the common resource pool is 2:1
  • the reuse ratio of the default resource pool is 4:1. That is to say, each VCPU in the high-performance resource pool can monopolize one physical core, and each VCPU can obtain 100% computing power when it is the busiest; one VCPU in the common resource pool can co-locate one physical core with another VCPU.
  • Each VCPU can get 50% of computing power when it is the busiest; the VCPU in the default resource pool can run 4 VCPUs on a physical core. When each VCPU is busy, each VCPU can get 25%. The guarantee of computing power.
  • the scheduling node may collect resource information of a resource pool of each physical computing node, and the resource information includes the number of physical cores in each resource pool and a list of virtual machines. For example, the scheduling node can know that the number of physical cores in the high performance resource pool is 6 through signaling interaction, and the virtual machine list includes VM1-1, VM1-2, VM2-1, VM2-2, VM2-3, and VM2-4.
  • the resource information can be used to determine the reuse ratio of the resource pools so as to migrate to the resource pool of the same multiplexing ratio when overloaded.
  • each resource pool can expand or shrink as virtual machines are started, created, migrated, stopped, or deleted.
  • the default resource pool can be compressed and the common resource pool can be expanded. For example, add a VM to a normal resource pool.
  • the normal resource pool when a virtual machine is stopped, deleted, or migrated in a normal resource pool, the normal resource pool can be contracted and the default resource pool can be expanded. For example, one VM is reduced in a normal resource pool.
  • the virtual machine when the virtual machine is migrated, not only the CPU usage rate but also the resource pool having the same multiplexing ratio is migrated.
  • there are two physical computing nodes namely physical computing node A and physical computing node B, and the left part is the VM of the first two physical computing nodes.
  • the right part is the case of the VMs of the two physical compute nodes after migration.
  • Each physical computing node is divided into three resource pools, and the two resource pools in the same plane have the same multiplexing ratio, that is, the resource pools at the top of the two physical computing nodes have the same multiplexing ratio, and the resource pool in the middle With the same multiplexing ratio, the resource pool at the bottom has the same multiplexing ratio.
  • the virtual machine migrates in a resource pool with the same multiplexing ratio. For example, one VM of the top resource pool of physical computing node A migrates to the top resource pool of physical computing node B, and the central resource of physical computing node A One VM of the pool migrates to the central resource pool of the physical computing node B, and one VM of the bottom resource pool of the physical computing node B migrates to the local resource pool of the physical computing node A.
  • CPU QoS can be guaranteed due to migration within a resource pool of the same multiplexing ratio.
  • the virtual machine scheduling in this embodiment can implement load balancing. Guarantee the quality of CPU service.
  • FIG. 6 is a schematic flowchart of another embodiment of a virtual machine scheduling method according to the present invention, including:
  • the scheduling node determines whether there is an overloaded resource pool, and if so, executes 62, otherwise executes 67.
  • the scheduling node may obtain information about each resource pool by interacting with the physical computing node, where the information may include the CPU usage of each virtual machine in each resource pool and the number of physical cores included in each resource pool.
  • CPU usage per resource pool CPU usage of all VMs in the resource pool / Number of physical cores included in the resource pool.
  • the scheduling node can set the overloaded threshold.
  • the resource pool is the overloaded resource pool.
  • the scheduling node determines the reuse ratio of the reloaded resource pool.
  • the information exchanged between the foregoing scheduling node and the resource pool may further include virtual machine information, and the number of VCPUs included in one resource pool may be determined according to the virtual machine information, and then the multiplexing ratio of one resource pool may be calculated: the resource pool includes The number of VCPUs / the number of physical cores included in the resource pool.
  • the scheduling node determines whether the virtual machine to be migrated is selected in the reload resource pool, and if so, executes 64, otherwise executes 67.
  • the selected candidate is A migrated virtual machine is a virtual machine that can be migrated to another resource pool.
  • the scheduling node determines whether the target resource pool is selected, and if so, executes 65, otherwise executes 67.
  • the target resource pool satisfies the following conditions:
  • Sufficient resources means: Suppose the number of VCPUs of the virtual machine to be migrated is X, the number of existing VCPUs in the target resource pool is Y, and the number of physical cores in the target resource pool is M, which can be obtained by squeezing the low-level resource pool.
  • the number of physical cores that can be obtained refers to the number of physical cores of the resource pool that can be squeezed.
  • the default default resource pool exists on each physical compute node, and the remaining resource pools, such as common resource pools and high-performance resources.
  • the pool is squeezed on the basis of the default resource pool, that is, the physical core of the default resource pool is allocated to the rest of the resource pool.
  • the number of physical cores in the squeezable resource pool is then the number of physical cores included in the current default resource pool.
  • the target resource pool may be the original physical computing node, that is, the original resource pool with the same multiplexing ratio as the source resource pool and sufficient resources, or the target resource pool may also be the target physical computing node. Squeezed from the remaining resource pools.
  • the original resource pool on the target resource pool is only the default resource pool, and the source resource pool is the normal resource pool. When there are redundant resources in the default resource pool, you can use the default resource pool.
  • these part of the resources constitute a common resource pool, used as a target resource pool; or, the source resource pool is a common resource pool, and the resources of the original common resource pool on the target physical compute node are not enough, and the default When the resources of the resource pool are redundant, some resources may be squeezed out from the default resource pool, and the resources are added to the original common resource pool to form a target resource pool together with the original resources.
  • the scheduling node migrates the virtual machine to be migrated to the target resource pool.
  • the load of the target resource pool may be determined before the migration.
  • the virtual machine is not overloaded, that is, the CPU of the virtual machine to be migrated.
  • the virtual machine on the source resource pool is migrated to the target resource pool when the sum of the usage and the original CPU usage of the target resource pool is less than or equal to the set heavy load threshold of the target resource pool.
  • the scheduling node determines whether the overloaded resource pool migrated out of the virtual machine is still overloaded. If yes, repeat step 63 and subsequent steps, otherwise execute 67. 67: End.
  • the physical computing node A has a multiplexing ratio of 1:1 resource pool reload, and the physical computing node B is reused.
  • the resource pools of 2:1 and 4:1 are overloaded.
  • the multiplexing ratio of the physical computing node A to the virtual pool of the 1:1 resource pool can be migrated to the physical computing node B.
  • the physical computing node B is more multiplexed than the 2:1 resource pool virtual machine to the physical computing node A reuse ratio 2:1 resource pool, the physical computing node B multiplexing ratio
  • the virtual machine of the 4:1 resource pool is migrated to the physical computing node A with a reuse ratio of 4:1.
  • the load balancing scheduling between the physical computing node A and the physical computing node B is taken as an example, or the heavy load of the physical computing node A is migrated to the physical computing node B, and the physical computing node B is physically
  • the virtual machine that reuses the resource pool of 2:1 is migrated to the resource pool of the physical computing node C with a multiplexing ratio of 2:1.
  • the service quality of the virtual machine CPU can be ensured, and the user experience can be ensured without being affected, and the server load balancing effect can be achieved at the same time.
  • FIG. 8 is a schematic structural diagram of an embodiment of a virtual machine scheduling device according to the present invention.
  • the device includes a determining module 81, a selecting module 82, and a migration module 83.
  • the determining module 81 is configured to determine a multiplexing ratio of a source resource pool, and the source resource pool.
  • the reuse ratio is the ratio of the number of VCPUs to the number of physical cores
  • the selection module 82 is configured to select a target resource pool, where the target resource pool is the target physical computing node. Resource pool, and the reuse ratio of the target resource pool is the same as the reuse ratio of the source resource pool, and the target resource pool has sufficient resources set;
  • the migration module 83 is configured to use the source resource pool The virtual machine is migrated to the target resource pool.
  • the determining module is specifically configured to:
  • the device further includes:
  • the processing module is configured to obtain the CPU usage of each virtual machine, obtain the sum of the CPU usage of all the virtual machines in each resource pool according to the CPU usage of each virtual machine, and obtain the number of physical cores of each resource pool; The ratio of the sum of the CPU usage of the virtual machine to the number of the physical cores is determined as the CPU usage of the resource pool; and the CPU usage of the resource pool exceeds the set heavy load threshold.
  • the pool is determined to be the source resource pool; the migration module is specifically configured to: the sum of the CPU usage of the virtual machine to be migrated and the original CPU usage of the target resource pool is less than or equal to the heavy load When the value is, the virtual machine on the source resource pool is migrated to the target resource pool.
  • the device further includes:
  • An update module configured to interact with each physical computing node, obtain resource information of each resource pool, where the resource information includes a virtual machine list, and update each resource when the virtual machine is started, created, migrated, stopped, or deleted. A list of virtual machines in the pool.
  • the selecting module is specifically configured to:
  • the resource pool of the source resource pool When the resource pool of the source resource pool has the same multiplexing ratio as the source resource pool and has the set sufficient resources, the resource pool is selected as the target resource pool; or
  • a resource pool having the same multiplexing ratio as the source resource pool is not present on the target physical computing node, or there is a resource pool having the same multiplexing ratio as the source resource pool, but the resource pool does not have a set.
  • the resource pool does not have a set.
  • the embodiment of the present invention further provides a communication device, which may be a virtual machine scheduling server, where the communication device 90 includes a transmitting circuit 902, a receiving circuit 903, a power controller 904, and a processor 905. , memory 906 and antenna 901.
  • the processor 905 controls the operation of the device 90, which may also be referred to as a CPU.
  • Memory 906 can include read only memory and random access memory and provides instructions and data to processor 905.
  • a portion of the memory 906 may also include non-volatile line random access memory (NVRAM).
  • the transmitting circuit 902 and the receiving circuit 903 may be coupled to the antenna 901, and the antenna may be in a wireless form, or may be a wired network cable, an optical fiber, or the like.
  • bus system 9100 Each of the devices 90 The components are coupled together by a bus system 9100, wherein the bus system 9100 includes a power bus, a control bus, and a status signal bus in addition to the data bus.
  • bus system 9100 includes a power bus, a control bus, and a status signal bus in addition to the data bus.
  • various buses are labeled as bus system 9100 in the figure.
  • Processor 905 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 905 or an instruction in the form of software.
  • the processor 905 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic. Device, discrete gate or transistor logic and logic block diagram.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor, decoder or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as hardware processor execution completion, or performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in memory 906, and processor 905 reads the information in memory 906 and, in conjunction with its hardware, performs the steps of the above method.
  • the message in the above method can be transmitted or received through the transmitting circuit 902 and the receiving circuit 903.
  • the device may include a processor, where the processor is specifically configured to: determine a multiplexing ratio of the source resource pool, where the source resource pool is a reload resource pool on the source physical computing node, and the multiplexing ratio is a VCPU Ratio of the number of physical cores to the number of physical cores; selecting a target resource pool, the target resource pool being a resource pool on the target physical computing node, and multiplexing ratio of the target resource pool to the source resource pool The same, and the target resource pool has sufficient resources set; the virtual machine on the source resource pool is migrated to the target resource pool.
  • the processor is specifically configured to: determine a multiplexing ratio of the source resource pool, where the source resource pool is a reload resource pool on the source physical computing node, and the multiplexing ratio is a VCPU Ratio of the number of physical cores to the number of physical cores; selecting a target resource pool, the target resource pool being a resource pool on the target physical computing node, and multiplexing ratio of the target
  • the target resource pool has sufficient resources set, including:
  • the target resource pool has sufficient resources set, where X is the number of VCPUs of the source resource pool, and Y is the original VCPU of the target resource pool.
  • the number N is the reuse ratio of the source resource pool and the target resource pool, M is the number of physical cores of the target resource pool, and K is the number of physical cores that the target resource pool can acquire from another resource pool.
  • the processor is specifically configured to: perform signaling interaction with the source physical computing node, and acquire The resource information of the source resource pool, the resource information includes a number of physical cores included in the source resource pool, and a virtual machine list included in the source resource pool; determining, according to the virtual machine list, the source resource pool The number of VCPUs; the multiplexing ratio is determined according to the number of VCPUs and the number of physical cores.
  • the processor is configured to obtain the CPU usage of each virtual machine in each resource pool, obtain the sum of the CPU usage of all the virtual machines according to the CPU usage of each virtual machine, and obtain the physical of each resource pool.
  • the number of cores; the ratio of the sum of the CPU usage of the virtual machine to the number of the physical cores is determined as the CPU usage of the resource pool; the CPU usage of the resource pool exceeds the set overload
  • the resource pool of the source resource pool is determined to be the source resource pool; and the virtual machine on the source resource pool is migrated to the target resource pool when the virtual load reload threshold is to be migrated.
  • the processor is further configured to interact with each physical computing node to obtain resource information of each resource pool, where the resource information includes a virtual machine list, and when the virtual machine is started, created, migrated, stopped, or deleted, Update the list of virtual machines for each resource pool.
  • the processor is specifically configured to: when there is a resource pool with the same multiplexing ratio as the source resource pool and having sufficient resources set, the resource pool is selected as the resource pool. Or a resource pool having the same multiplexing ratio as the source resource pool, or a resource pool having the same multiplexing ratio as the source resource pool but having the same resource pool If the resource pool does not have enough resources to be set, if there is another resource redundancy resource pool on the target physical computing node, the resources in the resource pool of the additional resource redundancy are reduced, and the resource allocation is reduced. Give the target resource pool.
  • the service quality of the virtual machine CPU can be ensured, and the user experience can be ensured without being affected, and the server load balancing effect can be achieved at the same time.
  • the disclosed system, device and square The law can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combined or can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the components displayed by the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the instructions include a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like. The medium of the code.

Abstract

Provided is a virtual machine scheduling method and device. The method comprises the steps of: determining a reuse ratio of a source resource pool, the source resource pool being a heavy-load resource pool of a source physical calculation node, and the reuse ratio being a specific value of the quantity of VCPUs and the quantity of physical kernels; selecting a target resource pool, the target resource pool being a resource pool of a target physical calculation node, having the same reuse ratio as the source resource pool, and having enough set resources; and migrating a virtual machine of the source resource pool to the target resource pool. According to the embodiments of the present invention, the quality of service of the CPU during virtual machine scheduling can be guaranteed.

Description

虛拟机调度方法和设备 本申请要求于 2012 年 11 月 28 日提交中国专利局、 申请号为 201210494726.6、 发明名称为 "虚拟机调度方法和设备" 的中国专利申请的优 先权, 其全部内容通过引用结合在本申请中。  The present invention claims the priority of a Chinese patent application filed on November 28, 2012 by the Chinese Patent Office, Application No. 201210494726.6, entitled "Virtual Machine Scheduling Method and Apparatus", the entire contents of which are incorporated by reference. Combined in this application.
技术领域 本发明涉及通信技术, 尤其涉及一种虚拟机调度方法和设备。 TECHNICAL FIELD The present invention relates to communications technologies, and in particular, to a virtual machine scheduling method and device.
背景技术 网络中各类业务长时间运行后会造成云计算资源池内各物理计算节点负 载不均, 从而导致业务效率降低, 资源浪费, 需要通过负载均衡调度平衡各物 理计算节点的负载。目前最常用的负载均衡技术^^于物理计算节点的中央处 理器( Central Process Unit, CPU ) 占用率的负载均衡调度。 这种调度方式下 资源管理系统定期釆集各物理计算节点的 CPU占用率, 通过比对各物理计算 节点的 CPU占用率和预先设定的重载阔值来判定物理计算节点是否重载从而 触发虚拟机调度。 调度时系统先选出轻载计算节点, 通过比对物理计算节点 CPU 占用率和预先设定的轻载阔值来判定物理计算节点是否轻载。 系统将轻 载的物理计算节点作为目标节点,将重载的物理计算节点作为源节点, 当触发 调度时开始从源节点向目标节点迁移虚拟机, 当目标节点的 CPU占用率达到 均衡阔值且源节点的 CPU占用率还高于重载阔值时重新选择目标节点继续迁 移虚拟机。 源节点 CPU占用率低于重载阔值后停止虚拟机迁移。 但是, 该调度方案只关注物理计算节点的 CPU占用率, 不能保证调度后 虚拟机的 CPU服务质量。 After the long-term operation of various services in the network, the physical computing nodes in the cloud computing resource pool are unevenly loaded, resulting in reduced service efficiency and waste of resources. The load of each physical computing node needs to be balanced through load balancing scheduling. At present, the most commonly used load balancing technology is load balancing scheduling of the central processing unit (CPU) occupancy of physical computing nodes. In this scheduling mode, the resource management system periodically collects the CPU usage of each physical computing node, and determines whether the physical computing node is overloaded by comparing the CPU usage of each physical computing node with a preset overloaded threshold. Virtual machine scheduling. When scheduling, the system first selects the light load computing node, and determines whether the physical computing node is lightly loaded by comparing the CPU usage of the physical computing node with a preset light load threshold. The system uses the light-loaded physical computing node as the target node and the overloaded physical computing node as the source node. When the scheduling is triggered, the virtual machine is migrated from the source node to the target node. When the CPU usage of the target node reaches a balanced threshold. When the CPU usage of the source node is higher than the reload threshold, the target node is reselected to continue to migrate the virtual machine. The virtual machine migration is stopped after the source node CPU usage is lower than the reload threshold. However, the scheduling scheme only pays attention to the CPU usage of the physical computing node, and cannot guarantee the CPU quality of the virtual machine after scheduling.
发明内容 有鉴于此, 本发明实施例提供了一种虚拟机调度方法和设备, 用以解决现 有的负载均衡调度方案不能保证 CPU服务质量的问题。 SUMMARY OF THE INVENTION In view of this, an embodiment of the present invention provides a virtual machine scheduling method and device, which are used to solve the problem that an existing load balancing scheduling solution cannot guarantee CPU service quality.
第一方面, 提供了一种虚拟机调度方法, 包括:  In a first aspect, a virtual machine scheduling method is provided, including:
确定源资源池的复用比, 所述源资源池为源物理计算节点上的重载资源 池, 所述复用比为 VCPU的数量与物理内核的数量的比值;  Determining a multiplexing ratio of the source resource pool, where the source resource pool is a reload resource pool on the source physical computing node, where the multiplexing ratio is a ratio of the number of VCPUs to the number of physical cores;
选取目标资源池, 所述目标资源池为目标物理计算节点上的资源池,且所 述目标资源池的复用比与所述源资源池的复用比相同,以及所述目标资源池具 备设定的足够资源; Selecting a target resource pool, where the target resource pool is a resource pool on the target physical computing node, and The reuse ratio of the target resource pool is the same as the reuse ratio of the source resource pool, and the target resource pool has sufficient resources set;
将所述源资源池上的虚拟机迁移到所述目标资源池上。  The virtual machine on the source resource pool is migrated to the target resource pool.
结合第一方面,在第一方面的第一种可能的实现方式中, 所述目标资源池 具备设定的足够资源, 包括:  In conjunction with the first aspect, in a first possible implementation manner of the first aspect, the target resource pool is configured with sufficient resources, including:
当 (X+Y ) <=N x ( M+K )时, 所述目标资源池具备设定的足够资源, 其 中, X为源资源池的 VCPU的数量, Y为目标资源池原有的 VCPU的数量, N为 源资源池和目标资源池的复用比, M为目标资源池的物理内核的数量, K为目 标资源池能够从另外资源池获取的物理内核的数量。  When (X+Y) <=N x ( M+K ), the target resource pool has sufficient resources set, where X is the number of VCPUs of the source resource pool, and Y is the original VCPU of the target resource pool. The number, N is the reuse ratio of the source resource pool and the target resource pool, M is the number of physical cores of the target resource pool, and K is the number of physical cores that the target resource pool can acquire from another resource pool.
结合第一方面,在第一方面的第二种可能的实现方式中, 所述确定源资源 池的复用比, 包括:  With reference to the first aspect, in a second possible implementation manner of the first aspect, the determining a multiplexing ratio of the source resource pool includes:
与所述源物理计算节点进行信令交互, 获取所述源资源池的资源信息, 所 述资源信息包括所述源资源池包括的物理内核的数量以及所述源资源池包括 的虚拟机列表; 根据所述 VCPU的数量和所述物理内核的数量, 确定所述复用比。  Performing signaling interaction with the source physical computing node to obtain resource information of the source resource pool, where the resource information includes a quantity of physical cores included in the source resource pool and a virtual machine list included in the source resource pool; The multiplexing ratio is determined according to the number of the VCPUs and the number of the physical cores.
结合第一方面, 在第一方面的第三种可能的实现方式中, 还包括: 获取每个资源池内每个虚拟机的中央处理器 CPU占用率,根据每个虚拟机 的 CPU占用率得到所有虚拟机的 CPU占用率总和,以及获取每个资源池的物理 内核的数量;  With reference to the first aspect, in a third possible implementation manner of the first aspect, the method further includes: acquiring a CPU usage of a CPU of each virtual machine in each resource pool, and obtaining all the CPU usage according to each virtual machine The sum of the CPU usage of the virtual machine and the number of physical cores that get each resource pool;
将所述虚拟机的 CPU占用率总和与所述物理内核的数量的比值,确定为所 述资源池的 CPU占用率;  Determining, by the ratio of the sum of the CPU usage of the virtual machine and the number of the physical cores, the CPU usage of the resource pool;
将所述资源池的 CPU占用率超过设定的重载阔值的资源池确定为所述源 资源池;  Determining, by the source resource pool, a resource pool in which the CPU usage of the resource pool exceeds a set overload threshold;
所述将所述源资源池上的虚拟机迁移到所述目标资源池上, 包括: 在待迁移的虚拟机的 CPU占用率与所述目标资源池的原有的 CPU占用率 之和小于或等于所述重载阔值时,将所述源资源池上的虚拟机迁移到所述目标 资源池上。  The migrating the virtual machine on the source resource pool to the target resource pool includes: the sum of the CPU usage of the virtual machine to be migrated and the original CPU usage of the target resource pool is less than or equal to When the heavy load value is described, the virtual machine on the source resource pool is migrated to the target resource pool.
结合第一方面, 在第一方面的第四种可能的实现方式中, 还包括: 与每个物理计算节点交互, 获取每个资源池的资源信息, 所述资源信息包 括虚拟机列表, 并在虚拟机启动、 创建、 迁移、 停止或删除时, 更新每个资源 池的虚拟机列表。 With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the method further includes: interacting with each physical computing node, acquiring resource information of each resource pool, the resource information packet Includes a list of virtual machines and updates the list of virtual machines for each resource pool when the virtual machine is started, created, migrated, stopped, or deleted.
结合第一方面或第一方面的第一种至第四种任一种可能的实现方式,在第 一方面的第五种可能的实现方式中, 所述选取目标资源池, 包括:  With reference to the first aspect, or any one of the first to fourth possible implementation manners of the first aspect, in the fifth possible implementation manner of the first aspect, the selecting the target resource pool includes:
在所述目标物理计算节点上存在与所述源资源池复用比相同,且具备设定 的足够资源的资源池时, 将所述资源池选取为所述目标资源池; 或者,  When the resource pool of the source resource pool has the same multiplexing ratio as the source resource pool and has the set sufficient resources, the resource pool is selected as the target resource pool; or
在所述目标物理计算节点上不存在与所述源资源池复用比相同的资源池, 够资源时, 如果所述目标物理计算节点上存在另外的资源冗余的资源池, 则降 低所述另外的资源冗余的资源池中的资源,将降低的资源分配给所述目标资源 池。  If there is no resource pool with the same resource resource reuse ratio on the target physical computing node, if there is another resource pool with resource redundancy on the target physical computing node, the The resources in the resource pool of redundant resources allocate the reduced resources to the target resource pool.
第二方面, 提供了一种虚拟机调度设备, 包括:  In a second aspect, a virtual machine scheduling device is provided, including:
确定模块, 用于确定源资源池的复用比, 所述源资源池为源物理计算节点 上的重载资源池, 所述复用比为 VCPU的数量与物理内核的数量的比值;  a determining module, configured to determine a multiplexing ratio of the source resource pool, where the source resource pool is a reloading resource pool on the source physical computing node, where the multiplexing ratio is a ratio of the number of VCPUs to the number of physical cores;
选取模块, 用于选取目标资源池, 所述目标资源池为目标物理计算节点上 的资源池, 且所述目标资源池的复用比与所述源资源池的复用比相同, 以及所 述目标资源池具备设定的足够资源;  a selection module, configured to select a target resource pool, where the target resource pool is a resource pool on the target physical computing node, and the multiplexing ratio of the target resource pool is the same as the multiplexing ratio of the source resource pool, and the The target resource pool has sufficient resources set;
迁移模块, 用于将所述源资源池上的虚拟机迁移到所述目标资源池上。 结合第二方面,在第二方面的第一种可能的实现方式中, 所述选取模块选 取的目标资源池具备设定的足够资源包括:  a migration module, configured to migrate a virtual machine on the source resource pool to the target resource pool. With reference to the second aspect, in a first possible implementation manner of the second aspect, the target resource pool selected by the selecting module is configured to have sufficient resources, including:
当 (X+Y ) <=N x ( Μ+Κ )时, 所述目标资源池具备设定的足够资源, 其 中, X为源资源池的 VCPU的数量, Υ为目标资源池原有的 VCPU的数量, Ν为 源资源池和目标资源池的复用比, Μ为目标资源池的物理内核的数量, Κ为目 标资源池能够从另外资源池获取的物理内核的数量。  When (X+Y) <=N x ( Μ+Κ ), the target resource pool has sufficient resources set, where X is the number of VCPUs of the source resource pool, and Υ is the original VCPU of the target resource pool. The quantity, the reuse ratio of the source resource pool and the target resource pool, the number of physical cores of the target resource pool, and the number of physical cores that the target resource pool can acquire from another resource pool.
结合第二方面,在第二方面的第二种可能的实现方式中, 所述确定模块具 体用于:  With reference to the second aspect, in a second possible implementation manner of the second aspect, the determining module is specifically configured to:
与所述源物理计算节点进行信令交互, 获取所述源资源池的资源信息, 所 述资源信息包括所述源资源池包括的物理内核的数量以及所述源资源池包括 的虚拟机列表; 根据所述 VCPU的数量和所述物理内核的数量, 确定所述复用比。 Performing signaling interaction with the source physical computing node to obtain resource information of the source resource pool, where the resource information includes a quantity of physical cores included in the source resource pool and a virtual machine list included in the source resource pool; The multiplexing ratio is determined according to the number of the VCPUs and the number of the physical cores.
结合第二方面, 在第二方面的第三种可能的实现方式中, 还包括: 处理模块, 用于获取每个资源池内每个虚拟机的中央处理器 CPU占用率, 根据每个虚拟机的 CPU占用率得到所有虚拟机的 CPU占用率总和,以及获取每 个资源池的物理内核的数量;将所述虚拟机的 CPU占用率总和与所述物理内核 的数量的比值, 确定为所述资源池的 CPU占用率; 将所述资源池的 CPU占用率 超过设定的重载阔值的资源池确定为所述源资源池;  With reference to the second aspect, in a third possible implementation manner of the second aspect, the method further includes: a processing module, configured to acquire a central processor CPU usage of each virtual machine in each resource pool, according to each virtual machine The CPU usage is obtained as the sum of the CPU usage of all the virtual machines, and the number of physical cores of each resource pool; and the ratio of the sum of the CPU usage of the virtual machine to the number of the physical cores is determined as the resource. The CPU usage of the pool is determined as the resource pool of the resource pool whose CPU usage exceeds the set overload threshold;
所述迁移模块具体用于:在待迁移的虚拟机的 CPU占用率与所述目标资源 池的原有的 CPU占用率之和小于或等于所述重载阔值时,将所述源资源池上的 虚拟机迁移到所述目标资源池上。  The migrating module is configured to: when the sum of the CPU usage of the virtual machine to be migrated and the original CPU usage of the target resource pool is less than or equal to the heavy load threshold, the source resource pool is used. The virtual machine is migrated to the target resource pool.
结合第二方面, 在第二方面的第四种可能的实现方式中, 还包括: 更新模块, 用于与每个物理计算节点交互, 获取每个资源池的资源信息, 所述资源信息包括虚拟机列表,并在虚拟机启动、创建、迁移、停止或删除时, 更新每个资源池的虚拟机列表。  With reference to the second aspect, in a fourth possible implementation of the second aspect, the method further includes: an update module, configured to interact with each physical computing node to obtain resource information of each resource pool, where the resource information includes a virtual A list of machines and a list of virtual machines for each resource pool when the virtual machine is started, created, migrated, stopped, or deleted.
结合第二方面或第二方面的第一种至第四种任一种可能的实现方式,在第 二方面的第五种可能的实现方式中, 所述选取模块具体用于:  In conjunction with the second aspect or the first to fourth possible implementation manners of the second aspect, in a fifth possible implementation manner of the second aspect, the selecting module is specifically configured to:
在所述目标物理计算节点上存在与所述源资源池复用比相同,且具备设定 的足够资源的资源池时, 将所述资源池选取为所述目标资源池; 或者,  When the resource pool of the source resource pool has the same multiplexing ratio as the source resource pool and has the set sufficient resources, the resource pool is selected as the target resource pool; or
在所述目标物理计算节点上不存在与所述源资源池复用比相同的资源池, 或者,存在与所述源资源池复用比相同的资源池但所述资源池不具备设定的足 够资源时, 如果所述目标物理计算节点上存在另外的资源冗余的资源池, 则降 低所述另外的资源冗余的资源池中的资源,将降低的资源分配给所述目标资源 池。 通过上述技术方案,在虚拟机调度时, 将具有相同复用比的资源池作为迁 移虚拟机的目标资源池,由于相同复用比的资源池具有相同的 CPU服务质量, 因此经过虚拟机调度后可以保证 CPU服务质量。  A resource pool having the same multiplexing ratio as the source resource pool is not present on the target physical computing node, or there is a resource pool having the same multiplexing ratio as the source resource pool, but the resource pool does not have a set. When there are sufficient resources, if there is another resource redundant resource pool on the target physical computing node, the resources in the resource pool of the additional resource redundancy are reduced, and the reduced resources are allocated to the target resource pool. Through the above technical solution, when the virtual machine is scheduled, the resource pool having the same multiplexing ratio is used as the target resource pool of the migration virtual machine. Since the resource pools of the same multiplexing ratio have the same CPU service quality, after the virtual machine is scheduled, Can guarantee the quality of CPU service.
附图说明 为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所 需要使用的附图作一简单地介绍,显而易见地, 下面描述中的附图是本发明的 一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are the present invention. For some embodiments, other drawings may be obtained from those skilled in the art without departing from the drawings.
图 1为本发明虚拟机调度方法一实施例的流程示意图;  1 is a schematic flowchart of an embodiment of a virtual machine scheduling method according to the present invention;
图 2为本发明实施例中物理计算节点划分资源池的示意图;  2 is a schematic diagram of dividing a resource pool by a physical computing node according to an embodiment of the present invention;
图 3为本发明实施例中资源池一种更新情况示意图;  3 is a schematic diagram of an update situation of a resource pool in an embodiment of the present invention;
图 4为本发明实施例中资源池另一种更新情况示意图;  4 is a schematic diagram of another update of a resource pool in an embodiment of the present invention;
图 5为本发明实施例中虚拟机调度的一种示意图;  FIG. 5 is a schematic diagram of scheduling a virtual machine in an embodiment of the present invention; FIG.
图 6为本发明虚拟机调度方法另一实施例的流程示意图;  6 is a schematic flowchart of another embodiment of a virtual machine scheduling method according to the present invention;
图 7为本发明实施例中虚拟机调度的另一种示意图;  FIG. 7 is another schematic diagram of scheduling a virtual machine in an embodiment of the present invention;
图 8为本发明虚拟机调度设备一实施例的结构示意图;  8 is a schematic structural diagram of an embodiment of a virtual machine scheduling device according to the present invention;
图 9为本发明虚拟机调度设备另一实施例的结构示意图。  FIG. 9 is a schematic structural diagram of another embodiment of a virtual machine scheduling device according to the present invention.
具体实施方式 为使本发明实施例的目的、技术方案和优点更加清楚, 下面将结合本发明 实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。基于本发明中 的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其 他实施例, 都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. The embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1为本发明虚拟机调度方法一实施例的流程示意图, 包括:  FIG. 1 is a schematic flowchart of a virtual machine scheduling method according to an embodiment of the present invention, including:
11 : 调度节点确定源资源池的复用比, 所述源资源池为源物理计算节点上 的重载资源池, 所述复用比为 VCPU的数量与物理内核的数量的比值;  11: The scheduling node determines a multiplexing ratio of the source resource pool, where the source resource pool is a reloading resource pool on the source physical computing node, where the multiplexing ratio is a ratio of the number of VCPUs to the number of physical cores;
12: 调度节点选取目标资源池, 所述目标资源池为目标物理计算节点上的 资源池,且所述目标资源池的复用比与所述源资源池的复用比相同, 以及所述 目标资源池具备用于承载所述源资源池的虚拟机的足够资源;  12: The scheduling node selects a target resource pool, where the target resource pool is a resource pool on the target physical computing node, and the multiplexing ratio of the target resource pool is the same as the multiplexing ratio of the source resource pool, and the target The resource pool has sufficient resources for the virtual machine hosting the source resource pool;
13: 调度节点将所述源资源池上的虚拟机迁移到所述目标资源池上。  13: The scheduling node migrates the virtual machine on the source resource pool to the target resource pool.
每个物理计算节点的 CPU都有多个物理内核,底层的操作系统进程与内核 绑定技术可以控制虚拟机的虚拟 CPU ( Virtual CPU, VCPU )进程跑在不同的 物理内核上, 从而隔离不同虚拟机对 CPU资源使用上的冲突。  Each physical compute node's CPU has multiple physical cores. The underlying operating system process and kernel binding technology can control the virtual machine's virtual CPU (VCPU) process to run on different physical cores, thereby isolating different virtual machines. Machine conflicts on CPU resource usage.
可以通过将物理计算节点的 CPU划分为多个资源池,不同的资源池具有不 同的 CPU服务质量(Quality of Service, QoS )。 具体可以根据复用比划分资源 池, 复用比是指资源池内 VCPU的数量与该资源池内物理内核的数量之比。 对于同一个资源池内的虚拟机 ( Virtual Machine, VM ) , 需要保证在资 源池内的所有虚拟机业务最繁忙时都要满足虚拟机的 CPU服务质量。根据底层 CPU公平调度的算法, 每个虚拟机可以获取的 CPU资源与资源池内 VCPU的数 量和物理内核数量相关, 当资源池内所有虚拟机都繁忙时每个 VCPU可以获取 的物理 CPU资源为物理内核数 /VCPU总数。 The CPU of the physical computing node can be divided into multiple resource pools, and different resource pools have different CPU Quality of Service (QoS). Specifically, resources can be divided according to the multiplexing ratio Pool, reuse ratio refers to the ratio of the number of VCPUs in a resource pool to the number of physical cores in the resource pool. For a virtual machine (VM) in the same resource pool, you need to ensure that the virtual machine's CPU service quality is met when all the virtual machine services in the resource pool are the busiest. According to the algorithm of the underlying CPU fair scheduling, the CPU resources that each virtual machine can acquire are related to the number of VCPUs in the resource pool and the number of physical cores. When all virtual machines in the resource pool are busy, the physical CPU resources that each VCPU can acquire are physical cores. Number / VCPU total.
基于上述原理, 通过控制资源池内物理内核的数量和 VCPU的数量即可保 证虚拟机的 CPU服务质量。  Based on the above principles, the CPU service quality of the virtual machine can be guaranteed by controlling the number of physical cores and the number of VCPUs in the resource pool.
如图 2所示, 可以根据复用比划分资源池,每个资源池具有各自的复用比。 例如, 物理计算节点 A可以划分为高性能资源池、 普通资源池和默认资源池。 高性能资源池的复用比为 1 :1 , 普通资源池的复用比为 2:1 , 默认资源池的复用 比为 4:1。 也就是说, 高性能资源池内的每个 VCPU可独占一个物理内核, 每个 VCPU最繁忙时也可以获得 100%计算能力的保障; 普通资源池内的一个 VCPU 可以与另一个 VCPU共站一个物理内核,每个 VCPU最繁忙时每个 VCPU可以获 得 50%计算能力的保障; 默认资源池内的 VCPU—个物理内核上可以运行 4个 VCPU, 当每个 VCPU都繁忙时, 每个 VCPU可以获得 25%计算能力的保障。  As shown in FIG. 2, resource pools may be divided according to a multiplexing ratio, and each resource pool has a respective multiplexing ratio. For example, physical compute node A can be divided into a high-performance resource pool, a normal resource pool, and a default resource pool. The reuse ratio of the high-performance resource pool is 1:1, the reuse ratio of the common resource pool is 2:1, and the reuse ratio of the default resource pool is 4:1. That is to say, each VCPU in the high-performance resource pool can monopolize one physical core, and each VCPU can obtain 100% computing power when it is the busiest; one VCPU in the common resource pool can co-locate one physical core with another VCPU. Each VCPU can get 50% of computing power when it is the busiest; the VCPU in the default resource pool can run 4 VCPUs on a physical core. When each VCPU is busy, each VCPU can get 25%. The guarantee of computing power.
调度节点可以收集每个物理计算节点的资源池的资源信息,资源信息包括 每个资源池内的物理内核的数量以及虚拟机列表。 例如,调度节点通过信令交 互可以获知高性能资源池内的物理内核数量为 6 , 虚拟机列表包括 VM1-1、 VMl-2、 VM2-1、 VM2-2、 VM2-3和 VM2-4。 通过该资源信息可以确定资源池 的复用比, 以便在重载时迁移到相同复用比的资源池。  The scheduling node may collect resource information of a resource pool of each physical computing node, and the resource information includes the number of physical cores in each resource pool and a list of virtual machines. For example, the scheduling node can know that the number of physical cores in the high performance resource pool is 6 through signaling interaction, and the virtual machine list includes VM1-1, VM1-2, VM2-1, VM2-2, VM2-3, and VM2-4. The resource information can be used to determine the reuse ratio of the resource pools so as to migrate to the resource pool of the same multiplexing ratio when overloaded.
另外, 在虚拟机启动、 创建、 迁移、 停止或删除时, 每个资源池还可以进 行扩张或者收缩。  In addition, each resource pool can expand or shrink as virtual machines are started, created, migrated, stopped, or deleted.
如图 3所示, 在普通资源池内虚拟机启动、 创建、 迁入时, 可以压缩默认 资源池, 扩张普通资源池。 例如, 普通资源池内增加一个 VM。 或者,  As shown in Figure 3, when a virtual machine is started, created, or moved in a normal resource pool, the default resource pool can be compressed and the common resource pool can be expanded. For example, add a VM to a normal resource pool. Or,
如图 4所示, 在普通资源池内虚拟机停止、 删除、 迁出时, 可以收缩普通 资源池, 扩张默认资源池。 例如, 普通资源池内减少一个 VM。  As shown in Figure 4, when a virtual machine is stopped, deleted, or migrated in a normal resource pool, the normal resource pool can be contracted and the default resource pool can be expanded. For example, one VM is reduced in a normal resource pool.
本实施例中, 在虚拟机迁移时, 不仅考虑 CPU占用率, 而且在具有相同复 用比的资源池内迁移。 例如, 参见图 5 , 存在两个物理计算节点, 分别为物理 计算节点 A和物理计算节点 B , 左部分为迁移前两个物理计算节点的 VM的情 况, 右部分为迁移后两个物理计算节点的 VM的情况。 其中, 每个物理计算节 点分为 3个资源池, 同一平面的两个资源池具有相同的复用比, 即两个物理计 算节点的顶部的资源池具有相同的复用比, 中部的资源池具有相同的复用比, 底部的资源池具有相同的复用比。 In this embodiment, when the virtual machine is migrated, not only the CPU usage rate but also the resource pool having the same multiplexing ratio is migrated. For example, referring to Figure 5, there are two physical computing nodes, namely physical computing node A and physical computing node B, and the left part is the VM of the first two physical computing nodes. The right part is the case of the VMs of the two physical compute nodes after migration. Each physical computing node is divided into three resource pools, and the two resource pools in the same plane have the same multiplexing ratio, that is, the resource pools at the top of the two physical computing nodes have the same multiplexing ratio, and the resource pool in the middle With the same multiplexing ratio, the resource pool at the bottom has the same multiplexing ratio.
在负载均衡时, 虚拟机在具有相同的复用比的资源池内迁移, 如, 物理计 算节点 A的顶部资源池的一个 VM迁移到物理计算节点 B的顶部资源池,物理计 算节点 A的中部资源池的一个 VM迁移到物理计算节点 B的中部资源池 ,物理计 算节点 B的底部资源池的一个 VM迁移到物理计算节点 A的地部资源池。由于在 相同复用比的资源池内迁移, 可以保证 CPU QoS。  In load balancing, the virtual machine migrates in a resource pool with the same multiplexing ratio. For example, one VM of the top resource pool of physical computing node A migrates to the top resource pool of physical computing node B, and the central resource of physical computing node A One VM of the pool migrates to the central resource pool of the physical computing node B, and one VM of the bottom resource pool of the physical computing node B migrates to the local resource pool of the physical computing node A. CPU QoS can be guaranteed due to migration within a resource pool of the same multiplexing ratio.
本实施例通过将虚拟机迁移到与其源资源池具有相同复用比的资源池,由 于复用比相同, 可以保证相同的 CPU服务质量, 因此, 本实施例的虚拟机调度 可以实现负载均衡且保证 CPU服务质量。  In this embodiment, by migrating a virtual machine to a resource pool having the same multiplexing ratio as the source resource pool, the same CPU service quality can be ensured because the multiplexing ratio is the same. Therefore, the virtual machine scheduling in this embodiment can implement load balancing. Guarantee the quality of CPU service.
图 6为本发明虚拟机调度方法另一实施例的流程示意图, 包括:  FIG. 6 is a schematic flowchart of another embodiment of a virtual machine scheduling method according to the present invention, including:
61 : 调度节点判断是否存在重载资源池, 若是, 执行 62, 否则执行 67。 其中,调度节点可以通过与物理计算节点的交互,获取每个资源池的信息, 该信息可以包括每个资源池内每个虚拟机的 CPU占用率,以及每个资源池内包 括的物理内核数量。  61: The scheduling node determines whether there is an overloaded resource pool, and if so, executes 62, otherwise executes 67. The scheduling node may obtain information about each resource pool by interacting with the physical computing node, where the information may include the CPU usage of each virtual machine in each resource pool and the number of physical cores included in each resource pool.
根据该信息可以确定每个资源池的 CPU占用率, 计算公式可以为: 每个资源池的 CPU占用率 =该资源池内所有虚拟机的 CPU占用率总和 /该 资源池内包括的物理内核数量。  Based on the information, you can determine the CPU usage of each resource pool. The calculation formula can be: CPU usage per resource pool = CPU usage of all VMs in the resource pool / Number of physical cores included in the resource pool.
另外, 调度节点可以设置重载阔值, 当某个资源池的 CPU占用率超过该重 载阔值, 则该资源池为重载资源池。  In addition, the scheduling node can set the overloaded threshold. When the CPU usage of a resource pool exceeds the overloaded threshold, the resource pool is the overloaded resource pool.
62: 调度节点确定重载资源池的复用比。  62: The scheduling node determines the reuse ratio of the reloaded resource pool.
上述调度节点与资源池交换的信息中还可以包括虚拟机信息,根据该虚拟 机信息可以确定出一个资源池内包括的 VCPU的数量, 之后可以计算得到一个 资源池的复用比=该资源池内包括的 VCPU的数量 /该资源池内包括的物理内核 的数量。  The information exchanged between the foregoing scheduling node and the resource pool may further include virtual machine information, and the number of VCPUs included in one resource pool may be determined according to the virtual machine information, and then the multiplexing ratio of one resource pool may be calculated: the resource pool includes The number of VCPUs / the number of physical cores included in the resource pool.
63: 调度节点判断在重载资源池内是否选取到待迁移的虚拟机, 若是, 执 行 64, 否则执行 67。  63: The scheduling node determines whether the virtual machine to be migrated is selected in the reload resource pool, and if so, executes 64, otherwise executes 67.
其中, 在设置时可能将某些虚拟机绑定, 不能进行迁移, 因此, 选取的待 迁移的虚拟机是能够迁移到另外资源池的虚拟机。 Among them, some virtual machines may be bound during setup, and migration is not possible. Therefore, the selected candidate is A migrated virtual machine is a virtual machine that can be migrated to another resource pool.
64: 调度节点判断是否选取到目标资源池, 若是, 执行 65, 否则执行 67。 其中, 目标资源池满足如下条件:  64: The scheduling node determines whether the target resource pool is selected, and if so, executes 65, otherwise executes 67. The target resource pool satisfies the following conditions:
与重载资源池具有相同的复用比, 且, 资源足够。  It has the same multiplexing ratio as the overloaded resource pool, and the resources are sufficient.
资源足够是指: 假设待迁移的虚拟机的 VCPU的数量为 X, 目标资源池已 有的 VCPU的数量为 Y, 目标资源池的物理内核数量为 M, 同时通过挤压低等 级资源池可获取的物理内核数量为 K , 目标资源池和重载资源池的复用比为 N: l , 那么当 (Χ+Υ ) <=Ν χ ( Μ+Κ ) 时则表明资源足够, 否则资源不足。 其 中,可获取的物理内核数量 Κ是指能够被挤压的资源池的物理内核数量,例如, 每个物理计算节点上的默认存在默认资源池, 其余资源池, 如普通资源池和高 性能资源池都是在默认资源池的基础上挤压得到的, 即,将默认资源池的物理 内核分配给其余资源池使用。那么可挤压的资源池的物理内核数量就是当前的 默认资源池内包括的物理内核的数量。  Sufficient resources means: Suppose the number of VCPUs of the virtual machine to be migrated is X, the number of existing VCPUs in the target resource pool is Y, and the number of physical cores in the target resource pool is M, which can be obtained by squeezing the low-level resource pool. The number of physical cores is K, and the reuse ratio of the target resource pool and the overloaded resource pool is N: l. Then, when (Χ+Υ) <=Ν χ ( Μ+Κ ), the resources are sufficient, otherwise the resources are insufficient. The number of physical cores that can be obtained refers to the number of physical cores of the resource pool that can be squeezed. For example, the default default resource pool exists on each physical compute node, and the remaining resource pools, such as common resource pools and high-performance resources. The pool is squeezed on the basis of the default resource pool, that is, the physical core of the default resource pool is allocated to the rest of the resource pool. The number of physical cores in the squeezable resource pool is then the number of physical cores included in the current default resource pool.
可选的, 目标资源池可以是目标物理计算节点上原有的, 即原有的与源资 源池的复用比相同且资源足够的资源池, 或者, 目标资源池也可以是目标物理 计算节点上从其余资源池挤压得到的, 例如, 目标资源池上原有的资源池仅是 默认资源池, 而源资源池是普通资源池, 那么在默认资源池存在冗余资源时, 可以从默认资源池内挤压出部分资源, 这些部分资源组成普通资源池,作为目 标资源池使用; 或者, 源资源池是普通资源池, 而目标物理计算节点上的原有 的普通资源池的资源不足够, 而默认资源池的资源冗余时, 则也可以从默认资 源池内挤压出部分资源, 将该部分资源增加到原有的普通资源池内, 与原有的 资源共同组成目标资源池。  Optionally, the target resource pool may be the original physical computing node, that is, the original resource pool with the same multiplexing ratio as the source resource pool and sufficient resources, or the target resource pool may also be the target physical computing node. Squeezed from the remaining resource pools. For example, the original resource pool on the target resource pool is only the default resource pool, and the source resource pool is the normal resource pool. When there are redundant resources in the default resource pool, you can use the default resource pool. Extrusion of some resources, these part of the resources constitute a common resource pool, used as a target resource pool; or, the source resource pool is a common resource pool, and the resources of the original common resource pool on the target physical compute node are not enough, and the default When the resources of the resource pool are redundant, some resources may be squeezed out from the default resource pool, and the resources are added to the original common resource pool to form a target resource pool together with the original resources.
65: 调度节点将待迁移的虚拟机迁移到目标资源池。  65: The scheduling node migrates the virtual machine to be migrated to the target resource pool.
可选的, 在迁移之前, 也可以判断目标资源池的负载情况, 在判断出目标 资源池在增加待迁移的虚拟机后也不超载时再进行迁移, 即,在待迁移的虚拟 机的 CPU占用率与目标资源池的原有的 CPU占用率之和小于或等于目标资源 池的设定的重载阔值时, 将所述源资源池上的虚拟机迁移到所述目标资源池 上。  Optionally, before the migration, the load of the target resource pool may be determined. After the target resource pool is added to the virtual machine to be migrated, the virtual machine is not overloaded, that is, the CPU of the virtual machine to be migrated. The virtual machine on the source resource pool is migrated to the target resource pool when the sum of the usage and the original CPU usage of the target resource pool is less than or equal to the set heavy load threshold of the target resource pool.
66: 调度节点判断迁移出虚拟机的重载资源池是否依然重载, 若是, 重复 执行 63及其后续步骤, 否则执行 67。 67: 结束。 66: The scheduling node determines whether the overloaded resource pool migrated out of the virtual machine is still overloaded. If yes, repeat step 63 and subsequent steps, otherwise execute 67. 67: End.
本实施例中,例如,参见图 7, 4叚设存在物理计算节点 A和物理计算节点 B, 物理计算节点 A的复用比为 1 :1的资源池重载, 物理计算节点 B的复用比为 2:1 和 4:1的资源池重载, 经过上述流程后, 可以将物理计算节点 A的复用比 1:1的 资源池的虚拟机迁移到物理计算节点 B的复用比 1 :1的资源池,将物理计算节点 B的复用比 2:1的资源池的虚拟机迁移到物理计算节点 A的复用比 2:1的资源池, 将物理计算节点 B的复用比 4:1的资源池的虚拟机迁移到物理计算节点 A的复 用比 4:1的资源池。  In this embodiment, for example, referring to FIG. 7, 4, there is a physical computing node A and a physical computing node B, the physical computing node A has a multiplexing ratio of 1:1 resource pool reload, and the physical computing node B is reused. The resource pools of 2:1 and 4:1 are overloaded. After the above process, the multiplexing ratio of the physical computing node A to the virtual pool of the 1:1 resource pool can be migrated to the physical computing node B. :1 resource pool, the physical computing node B is more multiplexed than the 2:1 resource pool virtual machine to the physical computing node A reuse ratio 2:1 resource pool, the physical computing node B multiplexing ratio The virtual machine of the 4:1 resource pool is migrated to the physical computing node A with a reuse ratio of 4:1.
可以理解的是, 本实施例以物理计算节点 A和物理计算节点 B之间的负载 均衡调度为例, 也可以是物理计算节点 A将的重载迁移到物理计算节点 B, 而 物理计算节点 B将复用比 2:1的资源池的虚拟机迁移到物理计算节点 C的复用比 2:1的资源池。  It can be understood that, in this embodiment, the load balancing scheduling between the physical computing node A and the physical computing node B is taken as an example, or the heavy load of the physical computing node A is migrated to the physical computing node B, and the physical computing node B is physically The virtual machine that reuses the resource pool of 2:1 is migrated to the resource pool of the physical computing node C with a multiplexing ratio of 2:1.
本实施例通过将虚拟机迁移到具有相同复用比的资源池,可以保证虚拟机 CPU的服务质量, 实现既可以保证用户体验不受影响, 同时达到服务器负载均 衡的效果。  In this embodiment, by migrating a virtual machine to a resource pool having the same multiplexing ratio, the service quality of the virtual machine CPU can be ensured, and the user experience can be ensured without being affected, and the server load balancing effect can be achieved at the same time.
图 8为本发明虚拟机调度设备一实施例的结构示意图, 该设备包括确定模 块 81、 选取模块 82和迁移模块 83; 确定模块 81用于确定源资源池的复用比, 所 述源资源池为源物理计算节点上的重载资源池, 所述复用比为 VCPU的数量与 物理内核的数量的比值; 选取模块 82用于选取目标资源池, 所述目标资源池为 目标物理计算节点上的资源池,且所述目标资源池的复用比与所述源资源池的 复用比相同, 以及所述目标资源池具备设定的足够资源; 迁移模块 83用于将所 述源资源池上的虚拟机迁移到所述目标资源池上。  FIG. 8 is a schematic structural diagram of an embodiment of a virtual machine scheduling device according to the present invention. The device includes a determining module 81, a selecting module 82, and a migration module 83. The determining module 81 is configured to determine a multiplexing ratio of a source resource pool, and the source resource pool. For the source physical computing node, the reuse ratio is the ratio of the number of VCPUs to the number of physical cores; the selection module 82 is configured to select a target resource pool, where the target resource pool is the target physical computing node. Resource pool, and the reuse ratio of the target resource pool is the same as the reuse ratio of the source resource pool, and the target resource pool has sufficient resources set; the migration module 83 is configured to use the source resource pool The virtual machine is migrated to the target resource pool.
可选的, 所述选取模块选取的目标资源池具备设定的足够资源包括: 当 (Χ+Υ ) <=Ν χ ( Μ+Κ )时, 所述目标资源池具备设定的足够资源, 其 中, X为源资源池的 VCPU的数量, Υ为目标资源池原有的 VCPU的数量, Ν为 源资源池和目标资源池的复用比, Μ为目标资源池的物理内核的数量, Κ为目 标资源池能够从另外资源池获取的物理内核的数量。  Optionally, the target resource pool selected by the selecting module has sufficient resources to be set to include: when (Χ+Υ) <=Ν χ ( Μ+Κ ), the target resource pool has sufficient resources set, X is the number of VCPUs in the source resource pool, Υ is the number of original VCPUs in the target resource pool, 复用 is the reuse ratio of the source resource pool and the target resource pool, and Μ is the number of physical cores in the target resource pool. The number of physical cores that the target resource pool can acquire from another resource pool.
可选的, 所述确定模块具体用于:  Optionally, the determining module is specifically configured to:
与所述源物理计算节点进行信令交互, 获取所述源资源池的资源信息, 所 述资源信息包括所述源资源池包括的物理内核的数量以及所述源资源池包括 的虚拟机列表; 根据所述 VCPU的数量和所述物理内核的数量, 确定所述复用比。 Performing signaling interaction with the source physical computing node to obtain resource information of the source resource pool, where the resource information includes the number of physical cores included in the source resource pool, and the source resource pool includes a list of virtual machines; determining the multiplexing ratio according to the number of VCPUs and the number of physical cores.
可选的, 该设备还包括:  Optionally, the device further includes:
处理模块, 用于获取每个虚拟机的 CPU占用率, 根据每个虚拟机的 CPU占 用率得到每个资源池内所有虚拟机的 CPU占用率总和,以及获取每个资源池的 物理内核的数量;将所述虚拟机的 CPU占用率总和与所述物理内核的数量的比 值, 确定为所述资源池的 CPU占用率; 将所述资源池的 CPU占用率超过设定的 重载阔值的资源池确定为所述源资源池; 所述迁移模块具体用于: 在待迁移的 虚拟机的 CPU占用率与所述目标资源池的原有的 CPU占用率之和小于或等于 所述重载阔值时, 将所述源资源池上的虚拟机迁移到所述目标资源池上。  The processing module is configured to obtain the CPU usage of each virtual machine, obtain the sum of the CPU usage of all the virtual machines in each resource pool according to the CPU usage of each virtual machine, and obtain the number of physical cores of each resource pool; The ratio of the sum of the CPU usage of the virtual machine to the number of the physical cores is determined as the CPU usage of the resource pool; and the CPU usage of the resource pool exceeds the set heavy load threshold. The pool is determined to be the source resource pool; the migration module is specifically configured to: the sum of the CPU usage of the virtual machine to be migrated and the original CPU usage of the target resource pool is less than or equal to the heavy load When the value is, the virtual machine on the source resource pool is migrated to the target resource pool.
可选的, 该设备还包括:  Optionally, the device further includes:
更新模块, 用于与每个物理计算节点交互, 获取每个资源池的资源信息, 所述资源信息包括虚拟机列表,并在虚拟机启动、创建、迁移、停止或删除时, 更新每个资源池的虚拟机列表。  An update module, configured to interact with each physical computing node, obtain resource information of each resource pool, where the resource information includes a virtual machine list, and update each resource when the virtual machine is started, created, migrated, stopped, or deleted. A list of virtual machines in the pool.
可选的, 所述选取模块具体用于:  Optionally, the selecting module is specifically configured to:
在所述目标物理计算节点上存在与所述源资源池复用比相同,且具备设定 的足够资源的资源池时, 将所述资源池选取为所述目标资源池; 或者,  When the resource pool of the source resource pool has the same multiplexing ratio as the source resource pool and has the set sufficient resources, the resource pool is selected as the target resource pool; or
在所述目标物理计算节点上不存在与所述源资源池复用比相同的资源池, 或者,存在与所述源资源池复用比相同的资源池但所述资源池不具备设定的足 够资源时, 如果所述目标物理计算节点上存在另外的资源冗余的资源池, 则降 低所述另外的资源冗余的资源池中的资源,将降低的资源分配给所述目标资源 池。  A resource pool having the same multiplexing ratio as the source resource pool is not present on the target physical computing node, or there is a resource pool having the same multiplexing ratio as the source resource pool, but the resource pool does not have a set. When there are sufficient resources, if there is another resource redundant resource pool on the target physical computing node, the resources in the resource pool of the additional resource redundancy are reduced, and the reduced resources are allocated to the target resource pool.
另外, 如图 9所示, 本发明实施例还提供一种通信设备, 该通信设备可以 为虚拟机调度服务器, 该通信设备 90包括发射电路 902、接收电路 903、 功率控 制器 904、 处理器 905 , 存储器 906及天线 901。 处理器 905控制设备 90的操作, 处理器 905还可以称为 CPU。 存储器 906可以包括只读存储器和随机存取存储 器, 并向处理器 905提供指令和数据。存储器 906的一部分还可以包括非易失行 随机存取存储器 (NVRAM ) 。 发射电路 902和接收电路 903可以耦合到天线 901 , 天线可以是无线形式, 也可以是有线形式的网线、 光纤等。 设备 90的各 个组件通过总线系统 9100耦合在一起, 其中, 总线系统 9100除包括数据总线 之外, 还包括电源总线、 控制总线和状态信号总线。 但是为了清楚说明起见, 在图中将各种总线都标为总线系统 9100。 In addition, as shown in FIG. 9, the embodiment of the present invention further provides a communication device, which may be a virtual machine scheduling server, where the communication device 90 includes a transmitting circuit 902, a receiving circuit 903, a power controller 904, and a processor 905. , memory 906 and antenna 901. The processor 905 controls the operation of the device 90, which may also be referred to as a CPU. Memory 906 can include read only memory and random access memory and provides instructions and data to processor 905. A portion of the memory 906 may also include non-volatile line random access memory (NVRAM). The transmitting circuit 902 and the receiving circuit 903 may be coupled to the antenna 901, and the antenna may be in a wireless form, or may be a wired network cable, an optical fiber, or the like. Each of the devices 90 The components are coupled together by a bus system 9100, wherein the bus system 9100 includes a power bus, a control bus, and a status signal bus in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 9100 in the figure.
上述本发明实施例揭示的方法可以应用于处理器 905中 ,或者说由处理器 905以实现。 处理器 905可能是一种集成电路芯片, 具有信号的处理能力。 在 实现过程中,上述方法的各步骤可以通过处理器 905中的硬件的集成逻辑电路 或者软件形式的指令完成。用于执行本发明实施例揭示的方法, 上述的处理器 905可以是通用处理器、 数字信号处理器(DSP )、 专用集成电路(ASIC )、 现 成可编程门阵列 (FPGA )或者其他可编程逻辑器件、 分立门或者晶体管逻辑 骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的 处理器,解码器等。 结合本发明实施例所公开的方法的步骤可以直接体现为硬 件处理器执行完成, 或者用处理器中的硬件及软件模块组合执行完成。软件模 块可以位于随机存储器, 闪存、 只读存储器, 可编程只读存储器或者电可擦写 可编程存储器、 寄存器等本领域成熟的存储介质中。 该存储介质位于存储器 906, 处理器 905读取存储器 906中的信息, 结合其硬件完成上述方法的步骤。 而上述方法中的消息可以通过发射电路 902和接收电路 903 予以发送或者接 收。  The method disclosed in the foregoing embodiments of the present invention may be applied to the processor 905 or implemented by the processor 905. Processor 905 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 905 or an instruction in the form of software. For performing the method disclosed in the embodiments of the present invention, the processor 905 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic. Device, discrete gate or transistor logic and logic block diagram. The general purpose processor may be a microprocessor or the processor or any conventional processor, decoder or the like. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as hardware processor execution completion, or performed by a combination of hardware and software modules in the processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in memory 906, and processor 905 reads the information in memory 906 and, in conjunction with its hardware, performs the steps of the above method. The message in the above method can be transmitted or received through the transmitting circuit 902 and the receiving circuit 903.
具体而言, 该设备可以包括处理器, 处理器具体用于: 确定源资源池的复 用比, 所述源资源池为源物理计算节点上的重载资源池, 所述复用比为 VCPU 的数量与物理内核的数量的比值; 选取目标资源池, 所述目标资源池为目标物 理计算节点上的资源池,且所述目标资源池的复用比与所述源资源池的复用比 相同, 以及所述目标资源池具备设定的足够资源; 将所述源资源池上的虚拟机 迁移到所述目标资源池上。  Specifically, the device may include a processor, where the processor is specifically configured to: determine a multiplexing ratio of the source resource pool, where the source resource pool is a reload resource pool on the source physical computing node, and the multiplexing ratio is a VCPU Ratio of the number of physical cores to the number of physical cores; selecting a target resource pool, the target resource pool being a resource pool on the target physical computing node, and multiplexing ratio of the target resource pool to the source resource pool The same, and the target resource pool has sufficient resources set; the virtual machine on the source resource pool is migrated to the target resource pool.
可选的, 所述目标资源池具备设定的足够资源, 包括:  Optionally, the target resource pool has sufficient resources set, including:
当 (X+Y ) <=N x ( Μ+Κ )时, 所述目标资源池具备设定的足够资源, 其 中, X为源资源池的 VCPU的数量, Y为目标资源池原有的 VCPU的数量, N为 源资源池和目标资源池的复用比, M为目标资源池的物理内核的数量, K为目 标资源池能够从另外资源池获取的物理内核的数量。  When (X+Y) <=N x ( Μ+Κ ), the target resource pool has sufficient resources set, where X is the number of VCPUs of the source resource pool, and Y is the original VCPU of the target resource pool. The number, N is the reuse ratio of the source resource pool and the target resource pool, M is the number of physical cores of the target resource pool, and K is the number of physical cores that the target resource pool can acquire from another resource pool.
可选的, 处理器具体用于: 与所述源物理计算节点进行信令交互, 获取所 述源资源池的资源信息,所述资源信息包括所述源资源池包括的物理内核的数 量以及所述源资源池包括的虚拟机列表;根据所述虚拟机列表确定所述源资源 池包括的 VCPU的数量; 根据所述 VCPU的数量和所述物理内核的数量, 确定 所述复用比。 Optionally, the processor is specifically configured to: perform signaling interaction with the source physical computing node, and acquire The resource information of the source resource pool, the resource information includes a number of physical cores included in the source resource pool, and a virtual machine list included in the source resource pool; determining, according to the virtual machine list, the source resource pool The number of VCPUs; the multiplexing ratio is determined according to the number of VCPUs and the number of physical cores.
可选的, 处理器还用于获取每个资源池内每个虚拟机的 CPU占用率, 根据 每个虚拟机的 CPU占用率得到所有虚拟机的 CPU占用率总和,以及获取每个资 源池的物理内核的数量;将所述虚拟机的 CPU占用率总和与所述物理内核的数 量的比值, 确定为所述资源池的 CPU占用率; 将所述资源池的 CPU占用率超过 设定的重载阔值的资源池确定为所述源资源池; 以及, 具体用于在待迁移的虚 述重载阔值时, 将所述源资源池上的虚拟机迁移到所述目标资源池上。  Optionally, the processor is configured to obtain the CPU usage of each virtual machine in each resource pool, obtain the sum of the CPU usage of all the virtual machines according to the CPU usage of each virtual machine, and obtain the physical of each resource pool. The number of cores; the ratio of the sum of the CPU usage of the virtual machine to the number of the physical cores is determined as the CPU usage of the resource pool; the CPU usage of the resource pool exceeds the set overload The resource pool of the source resource pool is determined to be the source resource pool; and the virtual machine on the source resource pool is migrated to the target resource pool when the virtual load reload threshold is to be migrated.
可选的, 处理器还用于与每个物理计算节点交互, 获取每个资源池的资源 信息, 所述资源信息包括虚拟机列表, 并在虚拟机启动、 创建、 迁移、 停止或 删除时, 更新每个资源池的虚拟机列表。  Optionally, the processor is further configured to interact with each physical computing node to obtain resource information of each resource pool, where the resource information includes a virtual machine list, and when the virtual machine is started, created, migrated, stopped, or deleted, Update the list of virtual machines for each resource pool.
可选的, 处理器具体用于: 在所述目标物理计算节点上存在与所述源资源 池复用比相同,且具备设定的足够资源的资源池时,将所述资源池选取为所述 目标资源池; 或者, 在所述目标物理计算节点上不存在与所述源资源池复用比 相同的资源池, 或者,存在与所述源资源池复用比相同的资源池但所述资源池 不具备设定的足够资源时,如果所述目标物理计算节点上存在另外的资源冗余 的资源池, 则降低所述另外的资源冗余的资源池中的资源,将降低的资源分配 给所述目标资源池。  Optionally, the processor is specifically configured to: when there is a resource pool with the same multiplexing ratio as the source resource pool and having sufficient resources set, the resource pool is selected as the resource pool. Or a resource pool having the same multiplexing ratio as the source resource pool, or a resource pool having the same multiplexing ratio as the source resource pool but having the same resource pool If the resource pool does not have enough resources to be set, if there is another resource redundancy resource pool on the target physical computing node, the resources in the resource pool of the additional resource redundancy are reduced, and the resource allocation is reduced. Give the target resource pool.
本实施例通过将虚拟机迁移到具有相同复用比的资源池,可以保证虚拟机 CPU的服务质量, 实现既可以保证用户体验不受影响, 同时达到服务器负载均 衡的效果。  In this embodiment, by migrating a virtual machine to a resource pool having the same multiplexing ratio, the service quality of the virtual machine CPU can be ensured, and the user experience can be ensured without being affected, and the server load balancing effect can be achieved at the same time.
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁,仅以上述 各功能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功能分 配由不同的功能模块完成, 即将装置的内部结构划分成不同的功能模块, 以完 成以上描述的全部或者部分功能。上述描述的系统, 装置和单元的具体工作过 程, 可以参考前述方法实施例中的对应过程, 在此不再赘述。  It will be clearly understood by those skilled in the art that for the convenience and brevity of the description, only the division of each functional module described above is exemplified. In practical applications, the above function assignment can be completed by different functional modules as needed. The internal structure of the device is divided into different functional modules to perform all or part of the functions described above. For the specific working process of the system, the device and the unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和方 法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性 的, 例如, 所述模块或单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系 统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦 合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信 连接, 可以是电性, 机械或其它的形式。 单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者 也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部 单元来实现本实施例方案的目的。 In the several embodiments provided by the present application, it should be understood that the disclosed system, device and square The law can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combined or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form. The components displayed by the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外, 在本申请各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在 ,也可以两个或两个以上单元集成在一个单元 中。上述集成的单元既可以釆用硬件的形式实现, 也可以釆用软件功能单元的 形式实现。  In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售 或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本申 请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全 部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储 介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器, 或者网络设备等)或处理器(processor )执行本申请各个实施例所述方法的全 部或部分步骤。 而前述的存储介质包括: U盘、移动硬盘、只读存储器(ROM, Read-Only Memory )、 随机存取存 4诸器 ( RAM, Random Access Memory )、 磁 碟或者光盘等各种可以存储程序代码的介质。  The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. The instructions include a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like. The medium of the code.
以上所述, 以上实施例仅用以说明本申请的技术方案, 而非对其限制; 尽 管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理 解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分 技术特征进行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱 离本申请各实施例技术方案的精神和范围。  The above embodiments are only used to illustrate the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the embodiments are modified, or some of the technical features are equivalently replaced; and the modifications or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

权 利 要 求 Rights request
1、 一种虚拟机调度方法, 其特征在于, 包括: 1. A virtual machine scheduling method, characterized by including:
确定源资源池的复用比, 所述源资源池为源物理计算节点上的重载资源 池, 所述复用比为虚拟中央处理器 VCPU的数量与物理内核的数量的比值; 选取目标资源池, 所述目标资源池为目标物理计算节点上的资源池,且所 述目标资源池的复用比与所述源资源池的复用比相同,以及所述目标资源池具 备设定的足够资源; Determine the reuse ratio of the source resource pool, which is the overloaded resource pool on the source physical computing node, and the reuse ratio is the ratio of the number of virtual central processors VCPU to the number of physical cores; select the target resource Pool, the target resource pool is a resource pool on the target physical computing node, and the reuse ratio of the target resource pool is the same as the reuse ratio of the source resource pool, and the target resource pool has sufficient set resource;
将所述源资源池上的虚拟机迁移到所述目标资源池上。 Migrate virtual machines on the source resource pool to the target resource pool.
2、 根据权利要求 1所述的方法, 其特征在于, 所述目标资源池具备设定的 足够资源, 包括: 2. The method according to claim 1, characterized in that the target resource pool has set sufficient resources, including:
当 (X+Y ) <=N x ( M+K )时, 所述目标资源池具备设定的足够资源, 其 中, X为源资源池的 VCPU的数量, Y为目标资源池原有的 VCPU的数量, N为 源资源池和目标资源池的复用比, M为目标资源池的物理内核的数量, K为目 标资源池能够从另外资源池获取的物理内核的数量。 When (X+Y) <=N x (M+K), the target resource pool has sufficient set resources, where X is the number of VCPUs in the source resource pool, and Y is the number of original VCPUs in the target resource pool. Quantity, N is the reuse ratio of the source resource pool and the target resource pool, M is the number of physical cores in the target resource pool, and K is the number of physical cores that the target resource pool can obtain from another resource pool.
3、根据权利要求 1所述的方法,其特征在于,所述确定源资源池的复用比, 包括: 3. The method according to claim 1, characterized in that determining the reuse ratio of the source resource pool includes:
与所述源物理计算节点进行信令交互, 获取所述源资源池的资源信息, 所 述资源信息包括所述源资源池包括的物理内核的数量以及所述源资源池包括 的虚拟机列表; 根据所述 VCPU的数量和所述物理内核的数量, 确定所述复用比。 Perform signaling interaction with the source physical computing node to obtain resource information of the source resource pool, where the resource information includes the number of physical cores included in the source resource pool and a list of virtual machines included in the source resource pool; The multiplexing ratio is determined according to the number of VCPUs and the number of physical cores.
4、 根据权利要求 1所述的方法, 其特征在于, 还包括: 4. The method according to claim 1, further comprising:
获取每个资源池内每个虚拟机的中央处理器 CPU占用率,根据每个虚拟机 的 CPU占用率得到所有虚拟机的 CPU占用率总和,以及获取每个资源池的物理 内核的数量; Obtain the central processor CPU usage of each virtual machine in each resource pool, obtain the sum of the CPU usage of all virtual machines based on the CPU usage of each virtual machine, and obtain the number of physical cores in each resource pool;
将所述虚拟机的 CPU占用率总和与所述物理内核的数量的比值,确定为所 述资源池的 CPU占用率; The ratio of the sum of the CPU occupancy rates of the virtual machines to the number of physical cores is determined as the CPU occupancy rate of the resource pool;
将所述资源池的 CPU占用率超过设定的重载阔值的资源池确定为所述源 资源池; 所述将所述源资源池上的虚拟机迁移到所述目标资源池上, 包括: 在待迁移的虚拟机的 CPU占用率与所述目标资源池的原有的 CPU占用率 之和小于或等于所述重载阔值时,将所述源资源池上的虚拟机迁移到所述目标 资源池上。 Determine the resource pool whose CPU usage exceeds the set reload threshold as the source resource pool; Migrating the virtual machine on the source resource pool to the target resource pool includes: when the sum of the CPU occupancy rate of the virtual machine to be migrated and the original CPU occupancy rate of the target resource pool is less than or equal to When the reload threshold is reached, migrate the virtual machine on the source resource pool to the target resource pool.
5、 根据权利要求 1所述的方法, 其特征在于, 还包括: 5. The method according to claim 1, further comprising:
与每个物理计算节点交互, 获取每个资源池的资源信息, 所述资源信息包 括虚拟机列表, 并在虚拟机启动、 创建、 迁移、 停止或删除时, 更新每个资源 池的虚拟机列表。 Interact with each physical computing node to obtain resource information of each resource pool. The resource information includes a virtual machine list, and update the virtual machine list of each resource pool when a virtual machine is started, created, migrated, stopped, or deleted. .
6、 根据权利要求 1-5任一项所述的方法, 其特征在于, 所述选取目标资源 池, 包括: 6. The method according to any one of claims 1-5, characterized in that the selection of the target resource pool includes:
在所述目标物理计算节点上存在与所述源资源池复用比相同,且具备设定 的足够资源的资源池时, 将所述资源池选取为所述目标资源池; 或者, When a resource pool with the same reuse ratio as the source resource pool and sufficient resources exists on the target physical computing node, select the resource pool as the target resource pool; or,
在所述目标物理计算节点上不存在与所述源资源池复用比相同的资源池, 够资源时, 如果所述目标物理计算节点上存在另外的资源冗余的资源池, 则降 低所述另外的资源冗余的资源池中的资源,将降低的资源分配给所述目标资源 池。 When there is no resource pool with the same reuse ratio as the source resource pool on the target physical computing node and sufficient resources are available, if there is another resource pool with redundant resources on the target physical computing node, then the For other resources in the redundant resource pool, the reduced resources are allocated to the target resource pool.
7、 一种虚拟机调度设备, 其特征在于, 包括: 7. A virtual machine scheduling device, characterized by including:
确定模块, 用于确定源资源池的复用比, 所述源资源池为源物理计算节点 上的重载资源池, 所述复用比为虚拟中央处理器 VCPU的数量与物理内核的数 量的比值; Determining module, used to determine the reuse ratio of the source resource pool, the source resource pool is the overloaded resource pool on the source physical computing node, the reuse ratio is the number of virtual central processors VCPU and the number of physical cores ratio;
选取模块, 用于选取目标资源池, 所述目标资源池为目标物理计算节点上 的资源池, 且所述目标资源池的复用比与所述源资源池的复用比相同, 以及所 述目标资源池具备设定的足够资源; The selection module is used to select a target resource pool, the target resource pool is a resource pool on the target physical computing node, and the reuse ratio of the target resource pool is the same as the reuse ratio of the source resource pool, and the The target resource pool has sufficient resources;
迁移模块, 用于将所述源资源池上的虚拟机迁移到所述目标资源池上。 A migration module, configured to migrate virtual machines on the source resource pool to the target resource pool.
8、 根据权利要求 7所述的设备, 其特征在于, 所述选取模块选取的目标资 源池具备设定的足够资源包括: 8. The device according to claim 7, wherein the target resource pool selected by the selection module has set sufficient resources including:
当 (X+Y ) <=N x ( Μ+Κ )时, 所述目标资源池具备设定的足够资源, 其 中, X为源资源池的 VCPU的数量, Υ为目标资源池原有的 VCPU的数量, Ν为 源资源池和目标资源池的复用比, Μ为目标资源池的物理内核的数量, Κ为目 标资源池能够从另外资源池获取的物理内核的数量。 When (X+Y) <=N x (M+K), the target resource pool has sufficient set resources, where X is the number of VCPUs in the source resource pool, and Y is the number of original VCPUs in the target resource pool. quantity, N is the reuse ratio of the source resource pool and the target resource pool, M is the number of physical cores in the target resource pool, and K is the target resource pool. The number of physical cores that the target resource pool can obtain from another resource pool.
9、 根据权利要求 7所述的设备, 其特征在于, 所述确定模块具体用于: 与所述源物理计算节点进行信令交互, 获取所述源资源池的资源信息, 所 述资源信息包括所述源资源池包括的物理内核的数量以及所述源资源池包括 的虚拟机列表; 根据所述 VCPU的数量和所述物理内核的数量, 确定所述复用比。 9. The device according to claim 7, wherein the determination module is specifically configured to: perform signaling interaction with the source physical computing node, and obtain resource information of the source resource pool, where the resource information includes The number of physical cores included in the source resource pool and the list of virtual machines included in the source resource pool; The multiplexing ratio is determined based on the number of VCPUs and the number of physical cores.
10、 根据权利要求 7所述的设备, 其特征在于, 还包括: 10. The device according to claim 7, further comprising:
处理模块, 用于获取每个资源池内每个虚拟机的中央处理器 CPU占用率, 根据每个虚拟机的 CPU占用率得到所有虚拟机的 CPU占用率总和,以及获取每 个资源池的物理内核的数量;将所述虚拟机的 CPU占用率总和与所述物理内核 的数量的比值, 确定为所述资源池的 CPU占用率; 将所述资源池的 CPU占用率 超过设定的重载阔值的资源池确定为所述源资源池; The processing module is used to obtain the central processor CPU usage of each virtual machine in each resource pool, obtain the sum of the CPU usage of all virtual machines based on the CPU usage of each virtual machine, and obtain the physical core of each resource pool. number; determine the ratio of the sum of the CPU occupancy rates of the virtual machines to the number of physical cores as the CPU occupancy rate of the resource pool; set the CPU occupancy rate of the resource pool to exceed the set overload width. The resource pool of the value is determined to be the source resource pool;
所述迁移模块具体用于:在待迁移的虚拟机的 CPU占用率与所述目标资源 池的原有的 CPU占用率之和小于或等于所述重载阔值时,将所述源资源池上的 虚拟机迁移到所述目标资源池上。 The migration module is specifically configured to: when the sum of the CPU occupancy rate of the virtual machine to be migrated and the original CPU occupancy rate of the target resource pool is less than or equal to the reload threshold, transfer the source resource pool to the source resource pool. Migrate the virtual machines to the target resource pool.
11、 根据权利要求 7所述的设备, 其特征在于, 还包括: 11. The device according to claim 7, further comprising:
更新模块, 用于与每个物理计算节点交互, 获取每个资源池的资源信息, 所述资源信息包括虚拟机列表,并在虚拟机启动、创建、迁移、停止或删除时, 更新每个资源池的虚拟机列表。 Update module, used to interact with each physical computing node, obtain resource information of each resource pool, the resource information includes a virtual machine list, and update each resource when the virtual machine is started, created, migrated, stopped or deleted List of virtual machines for the pool.
12、 根据权利要求 7-11任一项所述的设备, 其特征在于, 所述选取模块具 体用于: 12. The device according to any one of claims 7-11, characterized in that the selection module is specifically used for:
在所述目标物理计算节点上存在与所述源资源池复用比相同,且具备设定 的足够资源的资源池时, 将所述资源池选取为所述目标资源池; 或者, When a resource pool with the same reuse ratio as the source resource pool and sufficient resources exists on the target physical computing node, select the resource pool as the target resource pool; or,
在所述目标物理计算节点上不存在与所述源资源池复用比相同的资源池, There is no resource pool with the same reuse ratio as the source resource pool on the target physical computing node,
够资源时, 如果所述目标物理计算节点上存在另外的资源冗余的资源池, 则降 低所述另外的资源冗余的资源池中的资源,将降低的资源分配给所述目标资源 池。 When resources are sufficient, if there is another resource pool with redundant resources on the target physical computing node, the resources in the other resource pool with redundant resources are reduced, and the reduced resources are allocated to the target resource pool.
PCT/CN2013/077775 2012-11-28 2013-06-24 Virtual machine scheduling method and device WO2014082442A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210494726.6 2012-11-28
CN201210494726.6A CN102937912B (en) 2012-11-28 2012-11-28 Dispatching method of virtual machine and equipment

Publications (1)

Publication Number Publication Date
WO2014082442A1 true WO2014082442A1 (en) 2014-06-05

Family

ID=47696811

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/077775 WO2014082442A1 (en) 2012-11-28 2013-06-24 Virtual machine scheduling method and device

Country Status (2)

Country Link
CN (1) CN102937912B (en)
WO (1) WO2014082442A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937912B (en) * 2012-11-28 2016-06-15 华为技术有限公司 Dispatching method of virtual machine and equipment
CN103729252B (en) * 2013-12-20 2017-09-05 杭州华为数字技术有限公司 The method and dispatching and monitoring device of a kind of scheduling virtual machine
CN105094947B (en) * 2015-07-28 2018-06-12 中国联合网络通信集团有限公司 The quota management method and system of a kind of virtual computing resource
CN107301092B (en) * 2016-04-15 2020-11-10 中移(苏州)软件技术有限公司 Energy-saving method, device and system for cloud computing resource pool system
CN110119301A (en) * 2018-02-07 2019-08-13 卓望数码技术(深圳)有限公司 A kind of virtual machine migration method and system
CN109298936B (en) * 2018-09-11 2021-05-18 华为技术有限公司 Resource scheduling method and device
CN109491788B (en) * 2018-11-01 2022-12-09 郑州云海信息技术有限公司 Method and device for realizing load balance of virtualization platform
CN114221962B (en) * 2021-12-09 2024-02-13 兴业银行股份有限公司 Cloud resource reallocation method and system based on peak utilization rate

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117226A (en) * 2011-03-18 2011-07-06 浪潮(北京)电子信息产业有限公司 Resource dispatching system and resource dispatching method
US20110202925A1 (en) * 2010-02-18 2011-08-18 International Business Machines Corporation Optimized capacity planning
CN102724277A (en) * 2012-05-04 2012-10-10 华为技术有限公司 Virtual machine thermomigration method, virtual machine arrangement method, server and cluster system
CN102937912A (en) * 2012-11-28 2013-02-20 华为技术有限公司 Method and equipment for scheduling virtual machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110202925A1 (en) * 2010-02-18 2011-08-18 International Business Machines Corporation Optimized capacity planning
CN102117226A (en) * 2011-03-18 2011-07-06 浪潮(北京)电子信息产业有限公司 Resource dispatching system and resource dispatching method
CN102724277A (en) * 2012-05-04 2012-10-10 华为技术有限公司 Virtual machine thermomigration method, virtual machine arrangement method, server and cluster system
CN102937912A (en) * 2012-11-28 2013-02-20 华为技术有限公司 Method and equipment for scheduling virtual machine

Also Published As

Publication number Publication date
CN102937912B (en) 2016-06-15
CN102937912A (en) 2013-02-20

Similar Documents

Publication Publication Date Title
WO2014082442A1 (en) Virtual machine scheduling method and device
JP6005795B2 (en) Reliable deterministic live migration of virtual machines
JP6307172B2 (en) Slice management system and slice management method
US20190324819A1 (en) Distributed-system task assignment method and apparatus
EP3512233B1 (en) Method for managing network slice and management unit
WO2021121115A1 (en) Virtual machine numa node scheduling method and apparatus, and device and medium
EP3073373B1 (en) Method for interruption affinity binding of virtual network interface card, and computer device
EP3468151B1 (en) Acceleration resource processing method and apparatus
CN107924341B (en) Real-time local and global datacenter network optimization based on platform telemetry data
US11379265B2 (en) Resource management method, host, and endpoint based on performance specification
JP6200497B2 (en) Offload virtual machine flows to physical queues
JP6636142B2 (en) Scale-out association method and apparatus and system
US9934062B2 (en) Technologies for dynamically allocating hardware acceleration units to process data packets
US20140173620A1 (en) Resource allocation method and resource management platform
WO2016152588A1 (en) Service allocation determination device and service allocation determination method
WO2015101091A1 (en) Distributed resource scheduling method and device
US20170134218A1 (en) Method and Apparatus for Deploying Virtual Operation, Administration and Maintenance, and Virtualized Network System
US20180246772A1 (en) Method and apparatus for allocating a virtual resource in network functions virtualization network
WO2018107945A1 (en) Method and device for implementing allocation of hardware resources, and storage medium
WO2019056771A1 (en) Distributed storage system upgrade management method and device, and distributed storage system
CN111338785A (en) Resource scheduling method and device, electronic equipment and storage medium
WO2017070963A1 (en) Method, apparatus, and system for deploying virtual resources
JP6763476B2 (en) Virtual network function control method, virtual network function management device and virtual network providing system
WO2016192011A1 (en) Congestion control method and network element device
Jayasekara et al. A resource and policy aware VM scheduler for medium-scale clouds

Legal Events

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

Ref document number: 13858058

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13858058

Country of ref document: EP

Kind code of ref document: A1