WO2015018023A1 - Method, device and system for scheduling resources - Google Patents

Method, device and system for scheduling resources Download PDF

Info

Publication number
WO2015018023A1
WO2015018023A1 PCT/CN2013/081064 CN2013081064W WO2015018023A1 WO 2015018023 A1 WO2015018023 A1 WO 2015018023A1 CN 2013081064 W CN2013081064 W CN 2013081064W WO 2015018023 A1 WO2015018023 A1 WO 2015018023A1
Authority
WO
WIPO (PCT)
Prior art keywords
physical machine
machine
information
management node
central management
Prior art date
Application number
PCT/CN2013/081064
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 华为技术有限公司
Priority to PCT/CN2013/081064 priority Critical patent/WO2015018023A1/en
Priority to CN201380077681.5A priority patent/CN105359489A/en
Publication of WO2015018023A1 publication Critical patent/WO2015018023A1/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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1023Server selection for load balancing based on a hash applied to IP addresses or costs

Definitions

  • the present invention relates to the field of IT technologies, and in particular, to a resource scheduling method, apparatus, and system.
  • the energy consumed by the physical machine cluster is the main energy overhead of running the cluster. Because these physical machines are idle for a long time, in order to reduce the energy consumed by the physical machine cluster, the industry usually migrates and integrates the virtual machines, and the idle physical machines are powered off and powered off to save energy. When the load rises, power on the physical machine.
  • the physical machine is powered on and off through a centralized global management module, thereby adjusting the energy consumed by the physical machine cluster.
  • a centralized energy management module in a physical machine cluster, powering on and off the physical machine to adjust the energy consumed by the physical machine cluster; or by DPM (Dynamic Power Module) and DRS (Dynamic Resource Scheduling) , Distributed Resource Scheduling)
  • the module cooperates to power on and off the physical machine to adjust the energy consumed by the physical machine cluster.
  • the energy management module or the DPM and the DRS module are centralized deployment modules, and the centralized deployment module assumes all scheduling tasks, and needs to run information and operations of all physical machines in the physical machine cluster.
  • the information of the virtual machine on the physical machine is collected into the centralized deployment module, thereby making the centralized deployment module a bottleneck.
  • An embodiment of the present invention provides a resource scheduling method, apparatus, and system, which can negotiate resource scheduling of a physical machine cluster through a central management node and a physical machine, thereby reducing the burden of collecting a large amount of information by the central management node.
  • an embodiment of the present invention provides a resource scheduling method, including: determining, according to information of a physical machine of a physical machine cluster, a source physical machine and a target physical machine of a virtual machine migration operation;
  • the virtual machine to be migrated is The source physical machine migrates to the target physical machine.
  • Determining, according to the information of the physical machine of the physical machine cluster, the source physical machine of the virtual machine migration operation including:
  • a light-loading physical machine that allows a power-off operation is selected as the source physical machine.
  • Determining, according to the information of the physical machine of the physical machine cluster, the source physical machine of the virtual machine migration operation including:
  • a heavy physical machine that allows the offload operation is selected as the source physical machine.
  • the method further includes:
  • the virtual machine to be migrated accepted by the target physical machine is migrated from the source physical machine to the target physical machine according to the response message of the fourth negotiation message.
  • the determining, by the physical machine information of the physical machine cluster, the target physical machine of the virtual machine migration operation including:
  • a physical machine that accepts the virtual machine migration in the first target physical machine is selected as the target physical machine.
  • the method before the selecting the first target physical machine, the method further includes:
  • At least one physical machine is powered on, and the at least one physical machine that is powered on is used as the first target physical machine.
  • the method further includes: if the virtual machine on the source physical machine is completely migrated to the target physical machine, performing power-off operation on the source physical machine .
  • the method before the determining the source physical machine and the target physical machine of the virtual machine migration operation, the method further includes:
  • the determining the virtual machine migration according to the information of the physical machine of the physical machine cluster The source physical machine and the target physical machine of the operation, including:
  • Determining the source physical machine and the target physical machine according to real-time resource occupation information of the physical machine of the physical machine cluster or the resource scheduling request message.
  • the embodiment of the present invention further provides a resource scheduling method, including: receiving a first negotiation message sent by a central management node;
  • the method further includes:
  • the method before the receiving the first negotiation message sent by the central management node, the method further includes:
  • an embodiment of the present invention provides a central management node, including: a determining unit, configured to determine, according to information of a physical machine of a physical machine cluster, a source physical machine and a target physical machine of a virtual machine migration operation;
  • a sending unit configured to send, to the source physical machine determined by the determining unit, a first negotiation message
  • a receiving unit configured to receive a response message of the first negotiation message sent by the source physical machine, the first negotiation cancellation, the packet, the response cancellation, the packet, and the information of the virtual machine to be migrated determined by the source physical machine ;
  • a migration unit configured to be determined according to the source physical machine received by the receiving unit The target physical machine.
  • the determining unit is specifically configured to determine, according to the information of the physical machine of the physical machine cluster, a light-load physical machine in the physical machine cluster, and select a light-load physical machine that is allowed to be powered off as the source physical machine. ;
  • the sending unit is further configured to send a second negotiation message to the light-loading physical machine in the physical machine cluster determined by the determining unit, where the second negotiation message is used to query the light load in the physical machine cluster Whether the physical machine is allowed to perform the power-off operation.
  • the determining unit is specifically configured to determine, according to information about a physical machine of the physical machine cluster, a heavy-duty physical machine in the physical machine cluster, and select a heavy-duty physical machine that allows a reduced-off operation as the source physical machine;
  • the sending unit is further configured to send a third negotiation message to the overloaded physical machine in the physical machine cluster determined by the determining unit, where the third negotiation message is used to query an overload in the physical machine cluster Whether the physical machine is allowed to perform the burden reduction operation.
  • the sending unit is further configured to send a fourth negotiation message to the target physical machine, where the fourth negotiation message carries information about the virtual machine to be migrated determined by the source physical machine; and the receiving unit is further configured to receive a response message of the fourth negotiation message sent by the target physical machine, where the response message of the fourth negotiation message carries information about the virtual machine to be migrated accepted by the target physical machine;
  • the migrating unit is configured to: migrate, according to the response message of the fourth negotiation message received by the receiving unit, the virtual machine to be migrated accepted by the target physical machine from the source physical machine to the Target physical machine.
  • the determining unit is specifically configured to select a first target physical machine according to information of a physical machine according to the physical machine cluster, and select a physical machine that accepts a virtual machine to move in the first target physical machine as the target Physical machine
  • the sending unit is further configured to send a fifth negotiation message to the first target physical machine determined by the determining unit, where the fifth negotiation message is used to query whether the first target physical machine accepts virtual machine migration .
  • the determining unit is further configured to: power on at least one physical machine before selecting the first target physical machine, and use the at least one physical machine that is powered on as the first target physical machine.
  • the target physical machine is further configured to perform a power-off operation on the source physical machine.
  • the receiving unit is further configured to acquire real-time resource occupation information of a physical machine of the physical machine cluster, or obtain a resource scheduling request message sent by a physical machine of the physical machine cluster, where the resource scheduling request message is lightly loaded or Reloading physical machine to send;
  • the determining unit is specifically configured to determine the source physical machine and the target physical machine according to the real-time resource occupation information of the physical machine of the physical machine cluster acquired by the receiving unit or the resource scheduling request message.
  • an embodiment of the present invention provides a physical machine, including:
  • a receiving unit configured to receive a first negotiation message sent by the central management node
  • a sending unit configured to send a response message of the first negotiation message to the central management node, where the response message of the first negotiation message carries the virtual machine to be migrated
  • the information is such that the central management node migrates the virtual machine to be migrated according to the information of the virtual machine to be migrated.
  • the physical machine further includes: a determining unit, configured to determine information about the virtual machine to be migrated according to the first negotiation message and the first basis received by the receiving unit, where the first basis includes characteristics of a physical machine, and running on a physical machine The application characteristics of the virtual machine, the running information of the virtual machine, or the scheduling constraints of the virtual machine.
  • a determining unit configured to determine information about the virtual machine to be migrated according to the first negotiation message and the first basis received by the receiving unit, where the first basis includes characteristics of a physical machine, and running on a physical machine The application characteristics of the virtual machine, the running information of the virtual machine, or the scheduling constraints of the virtual machine.
  • the sending unit is further configured to: before the receiving unit receives the first negotiation message sent by the central management node, send the resource scheduling request cancellation packet, or the resource occupancy information of the self to the central management node.
  • an embodiment of the present invention provides a central management node, including: a processor, a memory, a bus, and a communication interface;
  • the memory is configured to store a computer execution instruction
  • the processor is connected to the memory through the bus, and when the central management node is running, the processor executes the computer execution instruction stored in the memory, to The central management node is caused to perform the resource scheduling method according to any one of claims 1-8.
  • an embodiment of the present invention provides a readable medium, including computer execution instructions, when the processor of a central management node executes the computer execution instruction, the central management node executes any one of claims 1-8 The resource scheduling method.
  • an embodiment of the present invention provides a physical machine, including: a processor, a memory, a bus, and a communication interface;
  • the memory is configured to store a computer execution instruction
  • the processor is connected to the memory through the bus, and when the physical machine is running, the processor executes the computer execution instruction stored in the memory, so that The physical machine performs the resource scheduling method according to any one of claims 9 to 11.
  • an embodiment of the present invention provides a readable medium, including computer execution instructions, when the processor of the physical machine executes the computer to execute an instruction, the physical machine executes any one of claims 9-1 The resource scheduling method described.
  • an embodiment of the present invention provides a resource scheduling system, including: a central management node, configured to determine a virtual state according to information of a physical machine of a physical machine cluster After the source physical machine and the target physical machine of the migration operation, send a first negotiation message to the source physical machine, and receive a response message of the first negotiation message sent by the source physical machine, where the first negotiation message is Responding to the packet, carrying the information of the virtual machine to be migrated determined by the source physical machine, and transmitting the source physical machine to the receiving center management node according to the information of the virtual machine to be migrated determined by the source physical machine The first negotiation cancels, and sends a response message of the first negotiation message to the central management node;
  • the target physical machine is configured to receive the migration of the virtual machine to be migrated.
  • the central management node is specifically configured to determine, according to information of the physical machine of the physical machine cluster, a light-load physical machine in the physical machine cluster, and send a second to the light-load physical machine in the physical machine cluster
  • the negotiation message is used to query whether the light-load physical machine in the physical machine cluster is allowed to perform a power-off operation, and select a light-load physical machine that allows the power-off operation to be the source physical machine.
  • the central management node is specifically configured to determine, according to information about a physical machine of the physical machine cluster, a heavy physical machine in the physical machine cluster, and send a third to a heavy physical machine in the physical machine cluster.
  • the third negotiation message is used to query whether the overloaded physical machine in the physical machine cluster allows the offloading operation, and selects the overloaded physical machine that allows the offloading operation to be the source physical machine.
  • the target physical machine In a third possible implementation manner, to the target physical machine
  • the fourth negotiation message is sent to the target physical machine, where the fourth negotiation message carries information about the virtual machine to be migrated determined by the source physical machine, and receives the fourth negotiation sent by the target physical machine.
  • a response message of the message where the response message of the fourth negotiation message carries the virtual machine to be migrated accepted by the target physical machine Information;
  • the central management node is configured to migrate the virtual machine to be migrated accepted by the target physical machine from the source physical machine to the target physical machine according to the response message of the fourth negotiation message.
  • the central management node is configured to select a first target physical machine according to the information of the physical machine of the physical machine cluster, and send a fifth negotiation message to the first target physical machine, where the fifth negotiation message is used. Querying whether the first target physical machine accepts virtual machine migration, and selecting a physical machine in the first target physical machine that accepts virtual machine migration as the target physical machine.
  • the central management node is further configured to power on at least one physical machine before selecting the first target physical machine, and use the at least one physical machine that is powered on as the first target physical machine.
  • the target physical machine is further configured to perform a power-off operation on the source physical machine.
  • the central management node is further configured to acquire real-time resource occupation information of the physical machine of the physical machine cluster, or obtain a resource scheduling request message sent by the physical machine of the physical machine cluster, where the resource scheduling request message is lightly loaded. Or the overloaded physical machine sends the network management node, where the central management node is configured to determine the source physical machine and the target according to the real-time resource occupation information of the physical machine of the physical machine cluster or the resource scheduling request message.
  • the source physical machine is further configured to send a resource scheduling request message to the central management node before receiving the first negotiation message sent by the central management node.
  • the source physical machine is further configured to determine, according to the first negotiation message and the first basis, information about the virtual machine to be migrated, where the first basis includes a feature of the physical machine, and a virtual machine running on the physical machine. Application characteristics, operational information of the virtual machine, or scheduling constraints of the virtual machine.
  • the embodiment of the present invention provides a resource scheduling method, device, and system. After determining a source physical machine and a target physical machine of a virtual machine migration operation according to the information of the physical machine of the physical machine cluster, the first negotiation message is sent to the source physical machine. And receiving the response message of the first negotiation message sent by the source physical machine, where the response message of the first negotiation message carries the information of the virtual machine to be migrated determined by the source physical machine, and the information of the virtual machine to be migrated determined according to the source physical machine, Migrate the virtual machine to be migrated from the source physical machine to the target physical machine.
  • the central management node only needs to initially determine the source physical machine of the virtual machine migration, and then negotiate with the source physical machine to determine which virtual machines on the source physical machine need to be migrated, and finally perform resource scheduling of the physical machine cluster, thereby reducing
  • the central management node needs to collect a large amount of virtual machine information on the physical machine.
  • FIG. 1 is a structural diagram 1 of a resource scheduling system according to an embodiment of the present invention.
  • FIG. 2 is a flowchart 1 of a resource scheduling method according to an embodiment of the present invention
  • FIG. 3 is a flowchart 2 of a resource scheduling method according to an embodiment of the present invention
  • FIG. 4 is a resource according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram 1 of a central management node according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram 1 of a physical machine according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram 2 of a physical machine according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram 2 of a central management node according to an embodiment of the present invention
  • FIG. 9 is a schematic structural diagram 3 of a physical machine according to an embodiment of the present invention.
  • FIG. 10 is a structural diagram 2 of a resource scheduling system according to an embodiment of the present invention
  • FIG. 1 is a third structural diagram of a resource scheduling system according to an embodiment of the present invention
  • FIG. 12 is a structural diagram 4 of a resource scheduling system according to an embodiment of the present invention.
  • the resource scheduling system includes a physical machine cluster composed of multiple or one physical machine and a central management node, which is three in this embodiment.
  • a physical machine may be virtualized by virtualized software on each physical machine.
  • Each physical machine is deployed with a distributed agent.
  • the distributed agent can be used to collect attribute information and running information of the physical machine of the local machine.
  • the central management node is used to collect the resource occupation information of each physical machine of the physical machine cluster that it manages, and determine the physical machine cluster according to the resource occupation information of each physical machine.
  • a resource optimization policy or a resource scheduling request for collecting a physical machine of the physical machine cluster that it manages, and determining a resource optimization policy of the physical machine cluster according to the collected resource scheduling request, that is, determining which physical machine can be powered off to save Resource consumption, which physical machine can accept the migration of the virtual machine, and according to the determined physics Optimizing resource cluster on a distributed agent strategy and the corresponding physical machine consultation, access to information to determine its own physical machine migration of virtual machines to be moved to accept the information and virtual machines, and migration of virtual machines based on the information obtained.
  • the embodiment of the present invention provides a resource scheduling method, which is related to the central management node side, and the method may include:
  • the central management node determines the source physical machine and the target physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster.
  • the resource scheduling system includes a central management node and a physical machine of a physical machine cluster managed by the central management node.
  • the central management node can communicate with the physical machine of the physical machine cluster it manages, and obtain the information of the physical machine of the physical machine cluster, including: resource occupation information of the physical machine of the physical machine cluster, for example, the CPU of the physical machine (C en Tral P rocessi ng Un it , central processing unit), memory, network
  • the current utilization of the resource, or the load information of the physical machine; or the resource scheduling request message sent by the physical machine of the physical machine cluster, that is, the physical machine of the physical machine cluster requests the central management node to perform resource scheduling.
  • the central management node can migrate the virtual machines running on the light-load physical machines, and power off the light-load physical machines to save energy.
  • the central management node can migrate virtual machines running on these overloaded physical machines to other light-loaded physical machines, thereby causing virtual machines running on physical machines in the physical machine cluster.
  • Qo S Quality of Service
  • the central management node may determine the source physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster.
  • the target physical machine can also be determined.
  • the source physical machine is a physical machine that needs to move the virtual machine out
  • the target physical machine is a physical machine that the virtual machine migrates into.
  • the central management node can determine a single source physical machine and a single target physical machine; a single source physical machine and multiple target physical machines; multiple source physical machines and a single target physical machine; or multiple source physical machines and multiple The target physical machine, the invention is not limited.
  • the central management node sends a first negotiation message to the source physical machine.
  • the central management node After the central management node determines the source physical machine, the central management node sends the first negotiation message to the source physical machine.
  • the central management node receives the response message of the first negotiation message sent by the source physical machine, and the response message of the first negotiation message carries the information of the virtual machine to be migrated determined by the source physical machine.
  • the central management node may receive the response message of the first negotiation message sent by the source physical machine, where the response message of the first negotiation message carries the to-migration determined by the source physical machine.
  • the virtual machine to be migrated is a virtual machine running on the source physical machine.
  • the central management node may send a first negotiation message to the source physical machine for negotiation, so as to obtain information about the virtual machine to be migrated determined by the source virtual machine. 5 1 04.
  • the central management node migrates the VM to be migrated from the source physical machine to the target physical machine according to the information of the virtual machine to be migrated determined by the source physical machine.
  • the central management node may migrate the virtual machine to be migrated from the source physical machine to the central management according to the information of the virtual machine to be migrated determined by the source physical machine.
  • the target physical machine determined by the node completes the migration operation of the virtual machine to be migrated.
  • the embodiment of the present invention further provides a resource scheduling method, which is related to the source physical machine side, and the method may include:
  • the source physical machine receives the first negotiation message sent by the central management node.
  • the source physical machine receives the first negotiation message from the central management node, wherein the source physical machine is determined by the central management node according to the information of the physical machine of the physical machine cluster.
  • the source physical machine sends a response message of the first negotiation message to the central management node, and the response message of the first negotiation message carries the information of the virtual machine to be migrated, so that the central management node according to the letter of the virtual machine to be migrated, Migrate the migrated virtual machine.
  • the source physical machine may return a response message of the first negotiation message to the central management node, so that the central management node can determine the virtual machine to be migrated according to the source physical machine.
  • the message is to be migrated to the virtual machine to be migrated, and the response message of the first negotiation message carries the information of the virtual machine to be migrated determined by the source physical machine.
  • the embodiment of the present invention provides a resource scheduling method, after determining a source physical machine and a target physical machine of a virtual machine migration operation according to the information of the physical machine of the physical machine cluster, sending a first negotiation message to the source physical machine, and receiving the source
  • the response message of the first negotiation message sent by the physical machine, the response message of the first negotiation message carries the information of the virtual machine to be migrated determined by the source physical machine, and the information of the virtual machine to be migrated determined according to the source physical machine, and the virtual to be migrated
  • the machine migrates from the source physical machine to the target physical machine.
  • the central management node only needs to initially determine the source physical machine of the virtual machine migration, and then negotiate with the source physical machine to determine which virtual machines on the source physical machine need to be migrated, and finally perform resource scheduling of the physical machine cluster, thereby reducing
  • the central management node needs to collect a large amount of virtual machine information on the physical machine.
  • the embodiment of the invention provides a resource scheduling method. As shown in FIG. 4, the method may include:
  • the central management node acquires real-time resource occupation information of the physical machine of the physical machine cluster, or acquires a resource scheduling request message sent by the physical machine of the physical machine cluster, and the resource scheduling request message is sent by the light load or the overloaded physical machine.
  • the resource scheduling system includes a central management node and a physical machine of a physical machine cluster managed by the central management node.
  • the central management node can communicate with the physical machine of the physical machine cluster that it manages, and obtain the information of the physical machine of the physical machine cluster, including: resource occupation information of the physical machine of the physical machine cluster, such as the CPU and memory of the physical machine.
  • the current utilization of the network resource, or the load information of the physical machine; or the resource scheduling request message sent by the physical machine of the physical machine cluster, that is, the physical machine of the physical machine cluster requests the central management node to perform resource scheduling.
  • the resource scheduling request message is sent by a light or overloaded physical machine.
  • the central management node can migrate the virtual machines running on the light-load physical machines, and power off the light-load physical machines to save energy.
  • the central management node can migrate virtual machines running on these overloaded physical machines to other light-loaded physical machines, thereby causing virtual machines running on physical machines in the physical machine cluster. Balance, ensure the application of Q o S, and then complete intelligent resource scheduling.
  • the physical machines may send a resource scheduling request message to the central management node to notify the central management node of these physics.
  • the machine is a light-loaded physical machine; correspondingly, when the current utilization of CPU, memory, and network resources of some physical machines of the physical machine cluster is high, the physical machines may send a resource scheduling request message to the central management node to tell Central Management Node These physical machines are overloaded physical machines.
  • the method for the central management node to obtain the information of the physical machine of the physical machine cluster may be one of the following:
  • the physical machine of the physical machine cluster reports the information of the physical machine to the monitoring module of the other physical server cluster, and then sends the monitoring module of the other physical server to the central management node.
  • the central management node obtains information about the physical machine of the physical machine cluster, and may also obtain information about the virtual machine running on the physical machine of the physical machine cluster, so as to more accurately determine whether the virtual machine migration operation is required.
  • the embodiment of the present invention does not need to obtain the information of the virtual machine running on the physical machine of the physical machine cluster, so as to reduce the burden on the central management node to obtain information, thereby improving the calculation efficiency of the central management node for information.
  • the central management node determines the light-load physical machine and the heavy-duty physical machine in the physical machine cluster according to the information of the physical machine of the physical machine cluster.
  • the central management node After the central management node obtains the information of the physical machine of the physical machine cluster, the central management node can determine the light-load physical machine and the overload in the physical machine cluster according to the physical machine information (resource occupation information or load information) of the physical machine cluster. Physical machine.
  • the current utilization rate of the CPU of a physical machine is less than the preset light load value, it is determined that the physical machine is a light-load physical machine; if the current utilization rate of the CPU of a physical machine is greater than the preset light load value And determining that the physical machine is a heavy-duty physical machine; or receiving a resource scheduling request message of the physical machine, if the resource scheduling request message indicates that the resource needs to be added, the physical machine is a heavy-load physical machine, if the resource scheduling request The message indicates that the resource is idle, and the physical machine is a light-load physical machine.
  • the central management node sends a second negotiation message to the light-loading physical machine, where the second negotiation message is used to query whether the light-loading physical machine is allowed to perform the power-off operation.
  • the central management node After the central management node determines the light-loaded physical machine in the physical machine cluster, the central management node sends a second negotiation message to the light-loading physical machines, where the second negotiation message is used to query whether the light-loading physical machine is allowed to perform the power-off operation.
  • the light-loading physical machine may determine whether the light-loading physical machine is allowed to be powered off according to the first basis, and return the first result to the center relative to the second negotiation message. Management node, wherein the first result is It is used to indicate whether the light load physical machine is allowed to be powered off.
  • the first basis may include characteristics of the light load physical machine, application characteristics of the virtual machine running on the light load physical machine, or operation information or scheduling constraints of the virtual machine running on the light load physical machine.
  • the characteristics of the light-loading physical machine may include whether there is a BMC (Baseboard Management Controller) on the light-loaded physical machine, or whether the light-loaded physical machine can be remotely powered off; the virtual machine running on the light-loaded physical machine
  • the application characteristics may include whether the virtual machine running on the light-load physical machine is allowed to be migrated; the scheduling constraint of the virtual machine running on the light-load physical machine may include that the light-loaded physical is not allowed if the light-loaded physical machine is powered on for less than or equal to 10 minutes. Power off the machine to avoid shocks.
  • the first result may further include an estimated time required for the source physical machine to complete the power-off.
  • the central management node sends a third negotiation message to the overloaded physical machine, where the third negotiation message is used to query whether the overloaded physical machine is allowed to perform the offloading operation.
  • the central management node After the central management node determines the overloaded physical machine in the physical machine cluster, the central management node sends a third negotiation message to the overloaded physical machines, wherein the third negotiation message is used to query whether the overloaded physical machine is allowed to perform the offloading operation.
  • the reloading physical machine may determine whether the overloaded physical machine allows the offloading according to the second basis, and returns a second result to the central management relative to the third negotiation message.
  • a node, wherein the second result can be used to indicate whether the overloaded physical machine is allowed to be offloaded.
  • the second basis may include the characteristics of the overloaded physical machine, the application characteristics of the virtual machine running on the overloaded physical machine, or the scheduling constraint of the virtual machine running on the overloaded physical machine.
  • the characteristics of the overloaded physical machine may include whether the overloaded physical machine is overloaded; the application characteristics of the virtual machine running on the overloaded physical machine may include whether the virtual machine running on the overloaded physical machine is allowed to be migrated; The scheduling constraints of the running virtual machine may include whether the virtual machines running on the overloaded physical machine violate the mutual exclusion, such as some virtual machines cannot run on the same physical machine at the same time.
  • steps 303 and 308 are optional steps, and the system may perform any one of steps 30 3 and 304 or perform both, and the order of execution is not fixed, and step 30 3 may be performed first. After step 304 is performed, step 304 may be performed first and then step 303 is performed. In this embodiment, step 303 is performed first and then step 304 is performed as an example.
  • the central management node selects a light-load physical machine that allows the power-off operation and a heavy-duty physical machine that allows the power-down operation to be the source physical machine.
  • the central management node may select the light load physical machine that is allowed to be powered down according to the first result and the second result respectively. As the source physical machine, and selecting the heavy-duty physical machine that allows the offload operation as the source physical machine.
  • the central management node may determine the source physical machine and the target physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster.
  • the source physical machine is a physical machine to be migrated
  • the target physical machine is a physical machine into which the virtual machine is moved.
  • the central management node can determine a single source physical machine and a single target physical machine; a single source physical machine and multiple target physical machines; multiple source physical machines and a single target physical machine; or multiple source physical machines and multiple
  • the target physical machine is not limited in the embodiment of the present invention.
  • the central management node selects the first target physical machine according to the information of the physical machine of the physical machine cluster.
  • the central management node may select the first target physical machine according to the information of the physical machine of the acquired physical machine cluster.
  • the first target physical machine may be a physical machine with a lighter load of the physical machine cluster.
  • the central management node may also be at least one physical machine of the above electrical physical machine cluster, and the at least one physical machine is used as the first target physical machine.
  • the central management node sends a fifth negotiation message to the first target physical machine, where the fifth negotiation message is used to query whether the first target physical machine accepts the virtual machine migration.
  • the central management node may be the first
  • the target physical machine sends a fifth negotiation message, and the fifth negotiation message can be used to query whether the first target physical machine accepts the virtual machine migration.
  • the first target physical machine may determine, according to the third basis, whether it is allowed to accept the virtual machine to move in, and return the third result to the central management node, where The third result can be used to indicate whether the first target physical machine accepts virtual machine migration.
  • the third basis may include resource information of the first target physical machine or scheduling constraints of the virtual machine running on the first target physical machine.
  • the resource information of the first target physical machine may include whether the resource of the first target physical machine is sufficient to run the virtual machine to be migrated on the source physical machine; the scheduling constraint of the virtual machine running on the first target physical machine may include the virtual machine Whether the mutual exclusion is violated, for example, some virtual machines cannot run on the same physical machine at the same time.
  • the virtual machines may include a virtual machine to be migrated on the source physical machine and a virtual machine running on the first target physical machine.
  • the central management node selects a physical machine that accepts the virtual machine to move in the first target physical machine as the target physical machine.
  • the central management node may select a physical machine that allows the virtual machine to move in as the target physical machine according to the third result returned by the first target physical machine.
  • the central management node sends a first negotiation message to the source physical machine.
  • the central management node may send a first negotiation message to the source virtual machine to negotiate the migration of the virtual machine with the source physical machine.
  • the source physical machine determines information of the virtual machine to be migrated.
  • the source physical machine may determine the information of the virtual machine to be migrated on the source physical machine according to the first negotiation message and the first basis.
  • the first basis may include characteristics of the physical machine, application characteristics of the virtual machine running on the physical machine, operational information of the virtual machine, or scheduling constraints of the virtual machine.
  • the source physical machine sends a response message of the first negotiation message to the central management node, where the response message of the first negotiation message carries the information of the virtual machine to be migrated.
  • the source physical machine determines the information of the virtual machine to be migrated on the source physical machine
  • the information about the virtual machine to be migrated may be sent to the central management node in the response message of the first negotiation message, so that the central management node can learn which virtual machines on the source physical machine can be migrated according to the information of the virtual machine to be migrated.
  • the information about the virtual machine to be migrated carried in the response message of the first negotiation message may include the specification of the virtual machine to be migrated, the scheduling constraint of the virtual machine to be migrated, and the real-time resource occupation information of the virtual machine to be migrated.
  • the specifications of the virtual machine to be migrated may include the model of the virtual machine to be migrated, etc.
  • the scheduling constraint of the virtual machine to be migrated may include whether the virtual machine to be migrated and other virtual machines violate the mutual exclusion, such as some virtual machines. You cannot run the same physical machine at the same time.
  • the real-time resource usage information of the VM to be migrated can include the VM to be migrated.
  • steps 309 - 31 1 may also be performed before step 306 or concurrently with steps 306 - 308.
  • the central management node sends a fourth negotiation message to the target physical machine, and the fourth negotiation message is used to carry the information of the virtual machine to be migrated determined by the source physical machine.
  • the central management node may send a fourth negotiation message to the target physical machine to query whether the target physical machine is allowed to accept the virtual machine to be migrated, where The four negotiation messages carry information about the virtual machine to be migrated determined by the source physical machine.
  • the target physical machine sends a response message of the fourth negotiation message to the central management node, and the response message of the fourth negotiation message carries the information of the virtual machine to be migrated accepted by the target physical machine.
  • the target physical machine may determine whether it can accept the virtual machine to be migrated according to the second basis, and carry the information of the virtual machine to be migrated that is allowed to be accepted.
  • the response message of the four negotiation messages is sent to the central management node, so that the central management node can determine, according to the response message of the fourth negotiation message, which virtual machines in the virtual machine to be migrated are allowed to be accepted by the target physical machine.
  • the target physical machine carried in the response message of the fourth negotiation message is allowed to be connected.
  • the information of the virtual machine to be migrated may include the specification of the virtual machine to be migrated that the target physical machine allows, the scheduling constraint of the virtual machine to be migrated that the target physical machine allows, and the real-time resource of the virtual machine to be migrated that the target physical machine allows to accept. Occupy information.
  • the specification of the virtual machine to be migrated that the target physical machine allows to accept may include the model of the virtual machine to be migrated allowed by the target physical machine, and the like; the scheduling constraint of the virtual machine to be migrated that the target physical machine allows to accept may include the target physical machine allowed Whether the virtual machine to be migrated and the other virtual machines are mutually exclusive, such as some virtual machines cannot run on the same physical machine at the same time; the real-time resource occupation information of the virtual machine to be migrated that the target physical machine allows to accept may include The target physical machine allows the CPU, memory, and current utilization of network resources of the virtual machine to be migrated to be accepted.
  • the central management node migrates the virtual machine to be migrated that the target physical machine allows to be transferred from the source physical machine to the target physical machine according to the response message of the fourth negotiation message.
  • the central management node migrates the virtual machine to be migrated that the target physical machine allows to be migrated from the source virtual machine to the source virtual machine.
  • Target physical machine After the central management node knows the information about the virtual machine to be migrated on the source physical machine and the information about the virtual machine to be migrated that the target physical machine allows, the central management node migrates the virtual machine to be migrated that the target physical machine allows to be migrated from the source virtual machine to the source virtual machine. Target physical machine.
  • the central management node can power off the source physical machine to achieve energy saving.
  • the central management node may send the first negotiation message, the second negotiation message, the third negotiation message, and the like by using a Hyper Text Transport Protocol (HTTP) or a WAP (Wireless Application Protocol).
  • HTTP Hyper Text Transport Protocol
  • WAP Wireless Application Protocol
  • the target physical machine can accept all the virtual machines to be migrated on the source physical machine, or only all the virtual machines to be migrated on the source physical machine.
  • the target physical machine accepts the number of the virtual machines to be migrated on the source physical machine according to the resource information of the target physical machine and the scheduling constraints of the virtual machine to be migrated, and the invention is not limited.
  • the central management node can migrate the virtual machines running on the source physical machine and the next one by selecting one source physical machine at a time.
  • the power physical machine can also migrate the virtual machine running on the source physical machine and the physical machine under the power source in a way that all the source physical machines are selected at one time.
  • the invention is not limited.
  • the central management node can migrate the virtual machines running on the source physical machine in a manner of selecting one source physical machine at a time, or once.
  • the virtual machine running on the source physical machine is migrated in a manner of selecting all the source physical machines, and the present invention is not limited.
  • the central management node negotiates resource scheduling by negotiating with the physical machine, thereby reducing the burden on the central management node to collect information of the virtual machine on the physical machine, and avoiding the central management node in the prior art.
  • Bottlenecks which in turn support large-scale physical machine clusters.
  • the embodiment of the present invention provides a resource scheduling method, after determining a source physical machine and a target physical machine of a virtual machine migration operation according to the information of the physical machine of the physical machine cluster, sending a first negotiation message to the source physical machine, and receiving the source
  • the response message of the first negotiation message sent by the physical machine, the response message of the first negotiation message carries the information of the virtual machine to be migrated determined by the source physical machine, and the information of the virtual machine to be migrated determined according to the source physical machine, and the virtual to be migrated
  • the machine migrates from the source physical machine to the target physical machine.
  • the central management node can determine the source physical machine and the target physical machine of the virtual machine migration, and negotiate with the source physical machine and the target physical machine respectively to determine which virtual machines on the source physical machine need to be migrated, and which targets
  • the physical machine can accept the virtual machine to be migrated on the source virtual machine, and finally perform resource scheduling of the physical machine cluster through the result of negotiation with the source physical machine and the target physical machine, thereby alleviating the need of the central management node to collect virtual on a large number of physical machines.
  • the burden of machine information is provided.
  • an embodiment of the present invention provides a central management node 1 , which may include:
  • the determining unit 1 0 is configured to determine the source physical machine and the target physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster.
  • the sending unit 1 1 is configured to send a first negotiation message to the source physical machine determined by the determining unit 10.
  • the receiving unit 1 2 is configured to receive the first negotiation message sent by the source physical machine
  • the response message of the first negotiation message carries the information of the virtual machine to be migrated determined by the source physical machine.
  • the migration unit 13 is configured to migrate the virtual machine to be migrated from the source physical machine to the target physical machine according to the information about the virtual machine to be migrated determined by the source physical machine received by the receiving unit 12 .
  • the determining unit 10 is configured to determine, according to information about the physical machine of the physical machine cluster, a light-load physical machine in the physical machine cluster, and select a light-load physical machine that is allowed to be powered off.
  • the source physical machine, and the sending unit 1 1 is further configured to send, to the light-loading physical machine in the physical machine cluster determined by the determining unit 10, a second negotiation message, where the second negotiation message is sent It is used to query whether the light-load physical machine in the physical machine cluster allows the power-off operation. .
  • the determining unit 10 is specifically configured to determine, according to information about a physical machine of the physical machine cluster, a heavy-duty physical machine in the physical machine cluster, and select a heavy-duty physical machine that allows a reduced-off operation as The source physical machine, and the sending unit 1 1 is further configured to send a third negotiation message to the reloading physical machine in the physical machine cluster determined by the determining unit 10, where the third negotiation message is used. It is asked whether the heavy-duty physical machine in the physical machine cluster is allowed to perform the off-duty operation.
  • the migration unit 13 migrates the virtual machine to be migrated from the source physical machine to the target physical machine:
  • the sending unit 1 1 is further configured to send a fourth negotiation message to the target physical machine, where the fourth negotiation message carries information about the virtual machine to be migrated determined by the source physical machine, and the receiving unit 12 And a response message of the fourth negotiation message sent by the target physical machine, where the response message of the fourth negotiation message carries information about the virtual machine to be migrated accepted by the target physical machine; correspondingly, the migration
  • the unit 1 3 is specifically configured to migrate the virtual machine to be migrated accepted by the target physical machine from the source physical machine to the target physics according to the response message of the fourth negotiation message received by the receiving unit 12 machine.
  • the determining unit 10 is specifically configured to: select, according to information about a physical machine of the physical machine cluster, a first target physical machine, and select the first target physical And receiving, by the sending unit, the physical machine that the virtual machine is in the virtual machine, and the sending unit 11 is further configured to send a fifth negotiation message to the first target physical machine that is determined by the determining unit 10, where The fifth negotiation message is used to query whether the first target physical machine accepts virtual machine migration.
  • the determining unit 10 is further configured to: power on at least one physical machine before selecting the first target physical machine, and use the at least one physical machine that is powered on as the first target physical machine.
  • the target physical machine is further configured to perform a power-off operation on the source physical machine.
  • the receiving unit 12 is further configured to acquire real-time resource occupation information of a physical machine of the physical machine cluster, or obtain a resource scheduling request message sent by a physical machine of the physical machine cluster, where the resource scheduling request message is lightly loaded. Or the overloaded physical machine is sent, and the determining unit 10 is configured to determine the source according to the real-time resource occupation information of the physical machine of the physical machine cluster acquired by the receiving unit 12 or the resource scheduling request message. a physical machine and the target physical machine.
  • the central management node may include a physical machine, a virtual machine, an ARM (Advanced reduced instruction set computer machines), a DSP (Digital Signal Processing) platform, Embedded systems and microcontrollers.
  • ARM Advanced reduced instruction set computer machines
  • DSP Digital Signal Processing
  • the embodiment of the present invention provides a central management node. After the central management node determines the source physical machine and the target physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster, the central management node sends the first physical management node to the source physical machine. a negotiation message, and receiving a response message of the first negotiation message sent by the source physical machine, where the response message of the first negotiation message carries information about the virtual machine to be migrated determined by the source physical machine, and the central management node determines according to the source physical machine The information of the virtual machine to be migrated migrates the virtual machine to be migrated from the source physical machine to the target physical machine.
  • the central management node can determine the source physical machine and the target physical machine of the virtual machine migration, and negotiate with the source physical machine and the target physical machine respectively to determine which virtual machines on the source physical machine need to be migrated, and which targets
  • the physical machine can accept the virtual machine to be migrated on the source virtual machine, and finally pass
  • the result of negotiation with the source physical machine and the target physical machine performs resource scheduling of the physical machine cluster, thereby reducing the burden on the central management node to collect virtual machine information on a large number of physical machines.
  • an embodiment of the present invention provides a physical machine 2, which may include:
  • the receiving unit 2 0 is configured to receive a first negotiation message sent by the central management node.
  • a sending unit 2 1 configured to send a response message of the first negotiation message to the central management node, where the response message of the first negotiation message carries information of the virtual machine to be migrated, so that the central management node is configured according to the The information of the migrated virtual machine migrates the virtual machine to be migrated.
  • the physical machine 2 provided by the embodiment of the present invention further includes: a determining unit 2 2, configured to determine, according to the first negotiation message and the first basis received by the receiving unit 20 The information about the virtual machine to be migrated, wherein the first basis includes characteristics of the physical machine, application characteristics of the virtual machine running on the physical machine, operation information of the virtual machine, or scheduling constraints of the virtual machine.
  • a determining unit 2 2 configured to determine, according to the first negotiation message and the first basis received by the receiving unit 20 The information about the virtual machine to be migrated, wherein the first basis includes characteristics of the physical machine, application characteristics of the virtual machine running on the physical machine, operation information of the virtual machine, or scheduling constraints of the virtual machine.
  • the sending unit 2 1 is further configured to: before the receiving unit 20 receives the first negotiation message sent by the central management node, send a resource scheduling request message or its own resource occupation information to the central management node. .
  • the physical machine 2 may include a physical computer.
  • An embodiment of the present invention provides a physical machine, where the physical machine receives a first negotiation message sent by a central management node, and sends a response message of the first negotiation message to the central management node, where the response message of the first negotiation message carries the virtual machine to be migrated.
  • the information is such that the central management node migrates the migrated virtual machine according to the letter of the virtual machine to be migrated.
  • the physical machine can return the response message of the first negotiation message after receiving the first negotiation message sent by the central management node, and carry the information of the virtual machine to be migrated on the physical machine in the response message of the first negotiation message. Therefore, the central management node can perform resource scheduling of the physical machine cluster according to the response message of the first negotiation cancellation returned by the physical machine, thereby reducing the burden of the central management node for collecting virtual machine information on a large number of physical machines.
  • a schematic structural diagram of a central management node may include a processor 14, a memory 15, a system bus 16, and a communication interface 17.
  • the processor 14, the memory 15 and the communication interface 17 are connected by the system bus 16 and communicate with each other.
  • Processor 14 may be a single core or multi-core central processing unit, or a particular integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention.
  • the memory 15 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 15 is used to store computer execution instructions. Specifically, the program code may be included in the computer execution instruction.
  • the processor 14 executes the computer execution instruction, and may execute the method flow described in any one of FIG. 2 or FIG. 4, specifically including:
  • the processor 14 is configured to determine, according to information of a physical machine of the physical machine cluster, a source physical machine and a target physical machine of the virtual machine migration operation, and send the source physical to the source through the system bus 16 and the communication interface 17 Receiving a first negotiation message, and receiving, by the system bus 16 and the communication interface 17, a response message of the first negotiation message sent by the source physical machine, where the response message of the first negotiation message carries the source physics
  • the information about the virtual machine to be migrated is determined by the machine, and the processor 14 is configured to migrate the virtual machine to be migrated from the source physical machine to the information according to the information of the virtual machine to be migrated determined by the source physical machine a target physical machine, the memory 15, a program code for storing information of a physical machine of a physical machine cluster, a program code of a first negotiation message, a program code of a response message of a first negotiation message, and controlling the processor 14 computer instructions to complete the above steps, thereby causing the processor 14 to execute the above computer instructions and invoke the
  • the processor 14 is specifically configured to determine, according to information about a physical machine of the physical machine cluster, a light-load physical machine in the physical machine cluster, and pass the system bus 16 and the communication interface. 17 sending a second negotiation message to the light-loading physical machine in the physical machine cluster, where the second negotiation message is used to query the light in the physical machine cluster Whether the physical carrier is allowed to perform the power-off operation, and the light-load physical machine that allows the power-off operation to be selected as the source physical machine.
  • the processor 14 is specifically configured to determine, according to information about a physical machine of the physical machine cluster, a heavy-duty physical machine in the physical machine cluster, and pass the system bus 16 and the communication interface. 17 sending a third negotiation message to the overloaded physical machine in the physical machine cluster, where the third negotiation message is used to query whether the overloaded physical machine in the physical machine cluster is allowed to perform the offload operation, and select the allowable offload operation.
  • the overloaded physical machine acts as the source physical machine.
  • the processor 14 is further configured to send, by using the system bus 16 and the communication interface 17, a fourth negotiation message to the target physical machine, where the fourth negotiation message carries the virtual to be migrated determined by the source physical machine.
  • the processor 14 is configured to: migrate, according to the response message of the fourth negotiation message, the virtual machine to be migrated accepted by the target physical machine from the source physical machine to The target physical machine.
  • the processor is specifically configured to: select, according to information about a physical machine according to the physical machine cluster, a first target physical machine, and send the first to the first through the system bus 16 and the communication interface 17
  • the target physical machine sends a fifth negotiation message, where the fifth negotiation message is used to query whether the first target physical machine accepts virtual machine migration, and selects a physical machine that accepts the virtual machine to move in the first target physical machine. As the target physical machine.
  • the processor 14 is further configured to: power on at least one physical machine before selecting the first target physical machine, and use the at least one physical machine that is powered on as the first target physical machine .
  • the processor 14 is configured to perform a power-off operation on the source physical machine if the virtual machine on the source physical machine is completely migrated to the target physical machine.
  • the processor 14 is further configured to acquire real-time resource occupation information of the physical machine of the physical machine cluster by using the system bus 16 and the communication interface 17, or obtain the physical machine cluster.
  • a resource scheduling request message sent by the physical machine where the resource scheduling request message is sent by a light load or a reloading physical machine; and the processor 14 is specifically configured to use real-time resource occupation of the physical machine according to the physical machine cluster
  • the information or the resource scheduling request message determines the source physical machine and the target physical machine.
  • the central management node may include a physical machine, a virtual machine, an ARM, a DS P platform, an embedded system, and a single chip.
  • the embodiment of the present invention provides a central management node. After the central management node determines the source physical machine and the target physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster, the central management node sends the first physical management node to the source physical machine. a negotiation message, and receiving a response message of the first negotiation message sent by the source physical machine, where the response message of the first negotiation message carries information about the virtual machine to be migrated determined by the source physical machine, and the central management node determines according to the source physical machine The information of the virtual machine to be migrated migrates the virtual machine to be migrated from the source physical machine to the target physical machine.
  • the central management node can determine the source physical machine and the target physical machine of the virtual machine migration, and negotiate with the source physical machine and the target physical machine respectively to determine which virtual machines on the source physical machine need to be migrated, and which targets
  • the physical machine can accept the virtual machine to be migrated on the source virtual machine, and finally perform resource scheduling of the physical machine cluster through the result of negotiation with the source physical machine and the target physical machine, thereby alleviating the need of the central management node to collect virtual on a large number of physical machines.
  • the burden of machine information is provided.
  • FIG. 9 is a schematic structural diagram of a physical machine according to an embodiment of the present invention.
  • the physical machine in the embodiment of the present invention may include a processor 23, a memory 24, a system bus 25, and a communication interface 26.
  • the processor 2 3, the memory 24 and the communication interface 26 are connected by the system bus 25 and communicate with each other.
  • Processor 23 may be a single core or multi-core central processing unit, or a particular integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention.
  • the memory 24 can be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 24 is used to store computer execution instructions. Specifically, the program code may be included in the computer execution instruction.
  • the processor 2 runs the computer to execute the instruction, and the method flow described in any one of FIG. 3 or FIG. 4 may be performed, including:
  • the processor 2 3 is configured to receive, by using the system bus 25 and the communication interface 26, a first negotiation message sent by a central management node, and to the center through the system bus 25 and the communication interface 26
  • the management node sends a response message of the first negotiation message, where the response message of the first negotiation message carries the information of the virtual machine to be migrated, so that the central management node performs the virtual to be migrated according to the information of the virtual machine to be migrated.
  • the memory 24 may be configured to store program code of the first negotiation message, program code of the response message of the first negotiation message, and computer instructions for controlling the processor 23 to complete the above steps, thereby causing the processing
  • the unit 2 3 completes the above steps by executing the above computer instructions and calling the respective program codes described above.
  • the processor 2 3 is configured to determine information about the virtual machine to be migrated according to the first negotiation message and the first basis stored in the memory 24, where the first basis includes The characteristics of the physical machine, the application characteristics of the virtual machine running on the physical machine, the running information of the virtual machine, or the scheduling constraints of the virtual machine.
  • the processor 23 is further configured to send a resource scheduling request to the central management node by using the system bus 25 and the communication interface 26 before receiving the first negotiation message sent by the central management node.
  • the message or its own resource occupancy information is further configured to send a resource scheduling request to the central management node by using the system bus 25 and the communication interface 26 before receiving the first negotiation message sent by the central management node.
  • the message or its own resource occupancy information is further configured to send a resource scheduling request to the central management node by using the system bus 25 and the communication interface 26 before receiving the first negotiation message sent by the central management node.
  • the physical machine 2 may include a physical computer.
  • An embodiment of the present invention provides a physical machine, where the physical machine receives a first negotiation message sent by a central management node, and sends a response message of the first negotiation message to the central management node, where the response message of the first negotiation message carries the virtual machine to be migrated.
  • the information is such that the central management node migrates the migrated virtual machine according to the letter of the virtual machine to be migrated.
  • the physical machine can return the response message of the first negotiation message after receiving the first negotiation message sent by the central management node, and carry the information of the virtual machine to be migrated on the physical machine in the response message of the first negotiation message. So that the central management node can perform physical machine clustering according to the first negotiation cancellation, packet, and response message returned by the physical machine. Resource scheduling, which in turn reduces the burden on the central management node to collect virtual machine information on a large number of physical machines.
  • an embodiment of the present invention provides a resource scheduling system, including a central management node, a source physical machine, and a target physical machine, where
  • the central management node is configured to: after determining the source physical machine and the target physical machine of the virtual machine migration operation, according to the information of the physical machine of the physical machine cluster, send a first negotiation message to the source physical machine, and receive the source The first negotiation cancellation, the packet, the response message sent by the physical machine, the first negotiation cancellation, the packet, the response cancellation, the packet, the information of the virtual machine to be migrated determined by the source physical machine, and according to the source The source physical machine determined by the physical machine to be the virtual machine to be migrated is used to receive the first negotiation cancellation sent by the central management node, and send a response message of the first negotiation message to the central management node;
  • the target physical machine is configured to receive the migration of the virtual machine to be migrated.
  • the central management node is specifically configured to determine, according to the information of the physical machine of the physical machine cluster, the light-load physical machine in the physical machine cluster, and to the light-loaded physical medium in the physical machine cluster
  • the machine sends a second negotiation message, where the second negotiation message is used to query whether the light-loading physical machine in the physical machine cluster is allowed to perform a power-off operation, and select a light-load physical machine that allows the power-off operation to be the source physics. machine.
  • the central management node is specifically configured to determine, according to information about the physical machine of the physical machine cluster, the overloaded physical machine in the physical machine cluster, and to the overloaded physical in the physical machine cluster
  • the machine sends a third negotiation message, the third negotiation message is used to query whether the overloaded physical machine in the physical machine cluster allows the offloading operation, and selects the overloaded physical machine that allows the offloading operation to be the source physical machine.
  • the central management node is configured to send a fourth negotiation message to the target physical machine before the virtual machine to be migrated is migrated from the source physical machine to the target physical machine, where the The fourth negotiation message carries the information of the virtual machine to be migrated determined by the source physical machine, and receives a response message of the fourth negotiation cancellation sent by the target physical machine, where the response message of the fourth negotiation message carries the target physical Accepted by the machine Moving the information of the virtual machine; correspondingly, the central management node is configured to: migrate the virtual machine to be migrated accepted by the target physical machine from the source physical machine to the location according to the response message of the fourth negotiation message The target physical machine.
  • the central management node is configured to: select, according to information about a physical machine of the physical machine cluster, a first target physical machine, and send a fifth negotiation message to the first target physical machine, where the The five negotiation message is used to query whether the first target physical machine accepts virtual machine migration, and selects a physical machine in the first target physical machine that accepts the virtual machine to move in as the target physical machine.
  • the central management node is configured to power on at least one physical machine before selecting the first target physical machine, and use the at least one physical machine that is powered on as the first target physical machine. .
  • the central management node is configured to perform a power-off operation on the source physical machine if the virtual machine on the source physical machine is completely migrated to the target physical machine.
  • the central management node is further configured to acquire real-time resource occupation information of a physical machine of the physical machine cluster, or obtain a resource scheduling request message sent by a physical machine of the physical machine cluster, where the resource scheduling request is The message is sent by the light load or the overloaded physical machine.
  • the central management node is specifically configured to determine the source physical machine according to the real-time resource occupation information of the physical machine of the physical machine cluster or the resource scheduling request message. And the source physical machine, and the source physical machine, before receiving the first negotiation message sent by the central management node, is further configured to send a resource scheduling request message to the central management node.
  • the source physical machine is further configured to determine, according to the first negotiation message and the first basis, information about the virtual machine to be migrated, where the first basis includes the feature of the physical machine, and runs on the physical machine.
  • the resource scheduling system provided by the embodiment of the present invention is taken as an example, and the resource scheduling method provided by the embodiment of the present invention is further described in two scenarios (Scenario 1 and Scene 2).
  • the resource scheduling system provided by the embodiment of the present invention may include a central management node and a physical machine, where the virtual machine runs on the physical machine.
  • the resource scheduling system includes a physical machine cluster composed of a physical machine 01, a physical machine 02, and a physical machine 03.
  • the physical machine cluster may include multiple physical machines.
  • the physical machine cluster includes three physical machines as an example. ; virtual machine 01 running on physical machine 01; virtual machine 02 and virtual machine 03 running on physical machine 02; virtual machine 04 running on physical machine 03; and central management node.
  • the physical machine 01, the physical machine 02 and the physical machine 03 are all deployed with software modules, such as distributed agents.
  • the central management node determines the light-loaded physical machine based on the physical machine information reported by the three physical machines. In this example, the central management node finds that the physical machine 01 uses the smallest memory and the lowest migration cost. Therefore, the central management node decides to power off the physical machine 01, that is, the physical machine 01 is used as a light-load physical machine; the central management node can determine The physical machine other than the physical machine 01 serves as the first target physical machine, and the physical machine 02 and the physical machine 03 can be determined as the first target physical machine.
  • the central management node After the central management node determines that the physical machine 01 is a light-loaded physical machine, the central management node sends a second negotiation message to the physical machine 01 for inquiring whether the physical machine 01 is allowed to perform the power-off operation, for example, if the physical machine 01 When the power-off operation is allowed, the central management node selects the physical machine 01 as the source physical machine.
  • the central management node sends the first negotiation information to the physical machine 01; and receives the response message of the first negotiation message returned by the physical machine 01, where the response message of the first negotiation message carries the virtual machine to be migrated determined by the physical machine 01 Information, such as information about virtual machine 01.
  • the central management node sends a fifth negotiation message to the physical machine 02 and the physical machine 03 for inquiring whether the physical machine 02 and the physical machine 03 are allowed to receive the virtual machine to move in, for example, if the physical machine 02 refuses to accept the virtual machine migration. If the physical machine 03 agrees to accept the virtual machine migration, the central management node selects the physical machine 03 as the target physical machine.
  • the central management node sends a fourth negotiation message to the physical machine 03, the fourth negotiation The message carries the information of the virtual machine to be migrated determined by the physical machine 01, that is, the information of the virtual machine 01, and receives the response message of the fourth negotiation message sent by the physical machine 03, and the response message of the fourth negotiation message carries the physical machine 0 3 accepted.
  • Information about the virtual machine to be migrated such as information about virtual machine 01.
  • the central management node migrates the virtual machine 01 running on the physical machine 01 to the physical machine 03 according to the response message of the fourth negotiation message.
  • the central management node powers down the physical machine 01 to save energy.
  • the central management node can negotiate the resource scheduling by negotiating with the physical machine, thereby reducing the central management node to collect the physical machine.
  • the burden of the information of the virtual machine avoids the bottleneck problem of the central management node in the prior art, and further supports the large-scale physical machine cluster.
  • the resource scheduling system includes a physical machine cluster composed of a physical machine 01, a physical machine 02, and a physical machine 03.
  • the physical machine cluster may include multiple physical machines.
  • the physical machine cluster includes three physical machines as an example. ;); virtual machine 02 and virtual machine 03 running on physical machine 02; virtual machine 01 and virtual machine 04 running on physical machine 03; and central management node.
  • the physical machine 01 is a physical machine that has been powered off, and the physical machine 01, the physical machine 02, and the physical machine 0 3 are all deployed with software modules, such as distributed agents.
  • the physical machine 01 can be powered on, and the physical machine can be powered on.
  • Some VMs running on the machine are migrated to the physical machine 01 to balance the virtual machines and ensure the application of Qo S. Specific steps can include:
  • the central management node determines the overloaded physical machine based on the physical machine information reported by the three physical machines. In this example, the central management node finds that the average resource utilization of physical machine 02 and physical machine 03 is higher than the preset threshold. Therefore, it is decided to perform migration balancing on the virtual machines running on physical machine 02 and physical machine 0 3, that is, the physical Machine 02 and physical machine 03 act as heavy-duty physical machines; the central management node can power on the powered-off physical machine 01, and the physical machine 01 as the first target physical machine.
  • the central management node After the central management node determines that the physical machine 02 and the physical machine 03 are overloaded physical machines, the central management node sends a third negotiation message to the physical machine 02 and the physical machine 03, respectively, for inquiring the physical machine 02 and the physical machine 03. Whether the off-duty operation is allowed, for example, if both the physical machine 02 and the physical machine 03 allow the off-duty operation, the central management node selects the physical machine 02 and the physical machine 03 as the source physical machine.
  • the central management node sends the first negotiation information to the physical machine 02 and the physical machine 03 respectively; and receives the response message of the first negotiation message respectively returned by the physical machine 02 and the physical machine 03, wherein the response message of the first negotiation message
  • the information of the virtual machine to be migrated determined by the physical machine 02 and the physical machine 03, such as the information of the virtual machine 02 running on the physical machine 02 and the information of the virtual machine 01 running on the physical machine 03.
  • the central management node sends a fifth negotiation message to the physical machine 01 for inquiring whether the physical machine 01 is allowed to receive the virtual machine to move in. For example, if the physical machine 01 agrees to accept the virtual machine to move in, the central management node selects the physical Machine 01 serves as the target physical machine.
  • the central management node may also select other lightly loaded physical machines as the target physical machine.
  • the central management node sends a fourth negotiation message to the physical machine 01, where the fourth negotiation message carries the information of the virtual machine to be migrated determined by the physical machine 02 and the physical machine 03, that is, the information of the virtual machine 02 and the information of the virtual machine 01. And receiving the response message of the fourth negotiation message sent by the physical machine 01, and the response message of the fourth negotiation message carries the information of the virtual machine to be migrated accepted by the physical machine 01, such as the information of the virtual machine 02 and the information of the virtual machine 01.
  • the central management node migrates the virtual machine 02 running on the physical machine 02 and the virtual machine 01 running on the physical machine 0 to the physical machine 01 according to the response message of the fourth negotiation message.
  • the resource scheduling system provided by the embodiment of the present invention, if the heavy-duty physical machine needs to be reduced, that is, the virtual machine running on the overloaded physical machine is balanced to ensure the application of Qo S, and the central management node can negotiate with the physical machine.
  • the resource scheduling can reduce the burden of the central management node collecting the information of the virtual machine on the physical machine, avoiding the bottleneck problem of the central management node in the prior art, and supporting the large-scale physical machine cluster.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • 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 electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as the units may or may not be physical units, and 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 objectives of the embodiment of the present embodiment.
  • each functional unit in each embodiment of the present invention 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 technical solution of the present invention may contribute 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. , including a number of instructions to make a computer device (either a personal computer, a server, or a network device) Or a processor or processor performs all or part of the steps of the method of the various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Abstract

A method, device and system for scheduling resources. The method includes: determining a source physical machine and a target physical machine of a virtual machine migratory operation, according to information of physical machines in a physical machine cluster; sending a first negotiation message to the source physical machine; receiving a response message of the first negotiation message sent by the source physical machine, wherein the response message of the first negotiation message carries the information determined by the source physical machine, of the virtual machine to be migrated; migrating the virtual machine to be migrated from the source physical machine to the target physical machine, according to the information determined by the source physical machine, of the virtual machine to be migrated.

Description

一种资源调度方法、 装置及系统 技术领域  Resource scheduling method, device and system
本发明涉及 IT技术领域, 尤其涉及一种资源调度方法、 装置及 系统。  The present invention relates to the field of IT technologies, and in particular, to a resource scheduling method, apparatus, and system.
背景技术 Background technique
云计算技术中, 物理机集群消耗的能量是运行集群的主要能量 开销。 由于这些物理机很多时间都是空闲的, 因此, 为了减小物理 机集群消耗的能量, 业界通常将虚拟机进行迁移整合, 即将空闲的 物理机关闭并下电以进行节能, 而当云上业务负载上升时, 再上电 物理机。  In cloud computing technology, the energy consumed by the physical machine cluster is the main energy overhead of running the cluster. Because these physical machines are idle for a long time, in order to reduce the energy consumed by the physical machine cluster, the industry usually migrates and integrates the virtual machines, and the idle physical machines are powered off and powered off to save energy. When the load rises, power on the physical machine.
现有技术中, 在物理机集群的资源调度系统中, 通过集中式的 全局管理模块对物理机上下电, 从而调节物理机集群消耗的能量。 例如, 通过在物理机集群中部署集中式的能耗管理模块, 对物理机 上下电, 从而调节物理机集群消耗的能量; 或者通过 DPM ( Dynamic Power Module , 动态功率模块 ) 与 DRS ( Distributed Resource scheduling, 分布式资源调度) 模块配合, 对物理机上下电, 从而 调节物理机集群消耗的能量。  In the prior art, in the resource scheduling system of the physical machine cluster, the physical machine is powered on and off through a centralized global management module, thereby adjusting the energy consumed by the physical machine cluster. For example, by deploying a centralized energy management module in a physical machine cluster, powering on and off the physical machine to adjust the energy consumed by the physical machine cluster; or by DPM (Dynamic Power Module) and DRS (Dynamic Resource Scheduling) , Distributed Resource Scheduling) The module cooperates to power on and off the physical machine to adjust the energy consumed by the physical machine cluster.
然而, 上述物理机集群的资源调度系统中, 能耗管理模块或 DPM、 DRS模块均是集中部署模块, 该集中部署模块承担了所有调度 工作, 需要将物理机集群中所有物理机的信息及运行在物理机上的 虚拟机的信息都汇集到该集中部署模块中, 从而使得该集中部署模 块成为瓶颈。  However, in the resource scheduling system of the physical machine cluster, the energy management module or the DPM and the DRS module are centralized deployment modules, and the centralized deployment module assumes all scheduling tasks, and needs to run information and operations of all physical machines in the physical machine cluster. The information of the virtual machine on the physical machine is collected into the centralized deployment module, thereby making the centralized deployment module a bottleneck.
发明内容 Summary of the invention
本发明的实施例提供一种资源调度方法、 装置及系统, 能够通 过中心管理节点与物理机协商进行物理机集群的资源调度, 从而减 轻中心管理节点的需要收集大量信息的负担。  An embodiment of the present invention provides a resource scheduling method, apparatus, and system, which can negotiate resource scheduling of a physical machine cluster through a central management node and a physical machine, thereby reducing the burden of collecting a large amount of information by the central management node.
为达到上述目的, 本发明的实施例釆用如下技术方案: 第一方面, 本发明实施例提供一种资源调度方法, 包括: 根据物理机集群的物理机的信息, 确定虚拟机迁移操作的源物 理机和目标物理机; In order to achieve the above object, embodiments of the present invention use the following technical solutions: In a first aspect, an embodiment of the present invention provides a resource scheduling method, including: determining, according to information of a physical machine of a physical machine cluster, a source physical machine and a target physical machine of a virtual machine migration operation;
向所述源物理机发送第一协商消 , ¾;  Sending a first negotiation cancellation to the source physical machine, 3⁄4;
接收所述源物理机发送的第一协商消息的响应消息, 所述第一 息: ' 、 ' 、 、 根据所述源物理机确定的待迁移虚拟机的信息, 将所述待迁移 虚拟机从所述源物理机迁移至所述目标物理机。  Receiving a response message of the first negotiation message sent by the source physical machine, where the first information is: ', ', and according to the information of the virtual machine to be migrated determined by the source physical machine, the virtual machine to be migrated is The source physical machine migrates to the target physical machine.
在第一方面的第一种可能的实现方式中,  In a first possible implementation of the first aspect,
所述根据物理机集群的物理机的信息, 确定虚拟机迁移操作的 源物理机, 包括:  Determining, according to the information of the physical machine of the physical machine cluster, the source physical machine of the virtual machine migration operation, including:
根据所述物理机集群的物理机的信息, 确定所述物理机集群中 的轻载物理机;  Determining a light-load physical machine in the physical machine cluster according to information of a physical machine of the physical machine cluster;
向所述轻载物理机发送第二协商消息, 所述第二协商消息用于 询问所述轻载物理机是否允许进行下电操作;  Transmitting, to the light-loading physical machine, a second negotiation message, where the second negotiation message is used to query whether the light-loading physical machine is allowed to perform a power-off operation;
选择允许下电操作的轻载物理机作为所述源物理机。  A light-loading physical machine that allows a power-off operation is selected as the source physical machine.
结合前述的第一方面或第一方面的第一种可能的实现方式, 在 第二种可能的实现方式中,  In conjunction with the first aspect of the foregoing or the first possible implementation of the first aspect, in a second possible implementation,
所述根据物理机集群的物理机的信息, 确定虚拟机迁移操作的 源物理机, 包括:  Determining, according to the information of the physical machine of the physical machine cluster, the source physical machine of the virtual machine migration operation, including:
根据所述物理机集群的物理机的信息, 确定所述物理机集群中 的重载物理机;  Determining the overloaded physical machine in the physical machine cluster according to the information of the physical machine of the physical machine cluster;
向所述重载物理机发送第三协商消息, 所述第三协商消息用于 询问所述重载物理机是否允许进行减负操作;  Sending, to the overloaded physical machine, a third negotiation message, where the third negotiation message is used to query whether the overloaded physical machine is allowed to perform a subtraction operation;
选择允许减负操作的重载物理机作为所述源物理机。  A heavy physical machine that allows the offload operation is selected as the source physical machine.
结合前述的第一方面或第一方面的第一种可能的实现方式至第 二种可能的实现方式中的任一种实现方式, 在第三种可能的实现方 机之前, 所述方法还包括: In combination with the foregoing first aspect or any one of the first possible implementation to the second possible implementation of the first aspect, in a third possible implementation Before the machine, the method further includes:
向所述目标物理机发送第四协商消息, 所述第四协商消息携带 所述源物理机确定的待迁移虚拟机的信息;  Sending a fourth negotiation message to the target physical machine, where the fourth negotiation message carries information about the virtual machine to be migrated determined by the source physical machine;
接收所述目标物理机发送的第四协商消息的响应消息, 所述第 四协商消息的响应消息携带所述目标物理机接受的待迁移虚拟机的 信息;  Receiving a response message of the fourth negotiation message sent by the target physical machine, where the response message of the fourth negotiation message carries information about the virtual machine to be migrated accepted by the target physical machine;
相应地, 根据所述第四协商消息的响应消息, 将所述目标物理 机接受的待迁移虚拟机从所述源物理机迁移到所述目标物理机。  Correspondingly, the virtual machine to be migrated accepted by the target physical machine is migrated from the source physical machine to the target physical machine according to the response message of the fourth negotiation message.
结合前述的第一方面或第一方面的第三种可能的实现方式, 在 第四种可能的实现方式中, 所述根据物理机集群的物理机的信息, 确定虚拟机迁移操作的目标物理机, 包括:  With reference to the foregoing first aspect or the third possible implementation manner of the foregoing aspect, in a fourth possible implementation, the determining, by the physical machine information of the physical machine cluster, the target physical machine of the virtual machine migration operation , including:
根据所述物理机集群的物理机的信息, 选择第一目标物理机; 向所述第一目标物理机发送第五协商消息, 所述第五协商消息 用于询问所述第一目标物理机是否接受虚拟机迁入;  Determining, according to information of the physical machine of the physical machine cluster, a first target physical machine; sending, to the first target physical machine, a fifth negotiation message, where the fifth negotiation message is used to query whether the first target physical machine is Accept virtual machine migration;
选择所述第一目标物理机中接受虚拟机迁入的物理机作为所述 目标物理机。  A physical machine that accepts the virtual machine migration in the first target physical machine is selected as the target physical machine.
结合第一方面的第四种可能的实现方式, 在第五种可能的实现 方式中, 所述选择第一目标物理机之前, 所述方法还包括:  With the fourth possible implementation of the first aspect, in a fifth possible implementation, before the selecting the first target physical machine, the method further includes:
上电至少一台物理机, 并将上电的所述至少一台物理机作为所 述第一目标物理机。  At least one physical machine is powered on, and the at least one physical machine that is powered on is used as the first target physical machine.
在第一方面的第六种可能的实现方式中, 所述方法还包括: 若所述源物理机上的虚拟机被完全迁移到所述目标物理机, 则 对所述源物理机进行下电操作。  In a sixth possible implementation manner of the first aspect, the method further includes: if the virtual machine on the source physical machine is completely migrated to the target physical machine, performing power-off operation on the source physical machine .
在第一方面的第七种可能的实现方式中, 所述确定虚拟机迁移 操作的源物理机和目标物理机之前, 所述方法还包括:  In a seventh possible implementation manner of the first aspect, before the determining the source physical machine and the target physical machine of the virtual machine migration operation, the method further includes:
获取所述物理机集群的物理机的实时资源占用信息, 或者获取 所述物理机集群的物理机发送的资源调度请求消息, 所述资源调度 请求消息由轻载或重载物理机发送;  Acquiring real-time resource occupation information of the physical machine of the physical machine cluster, or acquiring a resource scheduling request message sent by the physical machine of the physical machine cluster, where the resource scheduling request message is sent by a light load or a heavy load physical machine;
其中, 所述根据物理机集群的物理机的信息, 确定虚拟机迁移 操作的源物理机和目标物理机, 包括: The determining the virtual machine migration according to the information of the physical machine of the physical machine cluster The source physical machine and the target physical machine of the operation, including:
根据所述物理机集群的物理机的实时资源占用信息或者所述资 源调度请求消息, 确定所述源物理机和所述目标物理机。  Determining the source physical machine and the target physical machine according to real-time resource occupation information of the physical machine of the physical machine cluster or the resource scheduling request message.
第二方面, 本发明实施例还提供一种资源调度方法, 包括: 接收中心管理节点发送的第一协商消息;  In a second aspect, the embodiment of the present invention further provides a resource scheduling method, including: receiving a first negotiation message sent by a central management node;
向所述中心管理节点发送第一协商消息的响应消息, 所述第一 协商消息的响应消息携带待迁移虚拟机的信息, 以使得所述中心管 理节点根据所述待迁移虚拟机的信息对所述待迁移虚拟机进行迁 移。  Sending a response message of the first negotiation message to the central management node, where the response message of the first negotiation message carries information of the virtual machine to be migrated, so that the central management node performs information according to the information of the virtual machine to be migrated. Respond to the migration of virtual machines for migration.
在第二方面的第一种可能的实现方式中, 所述接收中心管理节 点发送的第一协商消息之后, 所述方法还包括:  In a first possible implementation manner of the second aspect, after the receiving, by the receiving center, the first negotiation message sent by the node, the method further includes:
根据所述第一协商消息和第一依据, 确定所述待迁移虚拟机的 信息, 其中, 所述第一依据包括物理机的特性、 物理机上运行的虚 拟机的应用特性、 虚拟机的运行信息或虚拟机的调度约束。  Determining information of the virtual machine to be migrated according to the first negotiation message and the first basis, where the first basis includes characteristics of the physical machine, application characteristics of the virtual machine running on the physical machine, and operation information of the virtual machine Or the scheduling constraints of the virtual machine.
结合前述的第二方面或第二方面的第一种可能的实现方式, 在 第二种可能的实现方式中, 所述接收中心管理节点发送的第一协商 消息之前, 所述方法还包括:  With reference to the foregoing second aspect or the first possible implementation manner of the foregoing aspect, in a second possible implementation manner, before the receiving the first negotiation message sent by the central management node, the method further includes:
向所述中心管理节点发送资源调度请求消息; 或者,  Sending a resource scheduling request message to the central management node; or
向所述中心管理节点发送自身的资源占用信息。  Sending its own resource occupation information to the central management node.
第三方面, 本发明实施例提供一种中心管理节点, 包括: 确定单元, 用于根据物理机集群的物理机的信息, 确定虚拟机 迁移操作的源物理机和目标物理机;  In a third aspect, an embodiment of the present invention provides a central management node, including: a determining unit, configured to determine, according to information of a physical machine of a physical machine cluster, a source physical machine and a target physical machine of a virtual machine migration operation;
发送单元, 用于向所述确定单元确定的所述源物理机发送第一 协商消息;  a sending unit, configured to send, to the source physical machine determined by the determining unit, a first negotiation message;
接收单元, 用于接收所述源物理机发送的第一协商消息的响应 消息, 所述第一协商消,包、的响应消,包、携带所述源物理机确定的待迁 移虚拟机的信息;  a receiving unit, configured to receive a response message of the first negotiation message sent by the source physical machine, the first negotiation cancellation, the packet, the response cancellation, the packet, and the information of the virtual machine to be migrated determined by the source physical machine ;
迁移单元, 用于根据所述接收单元接收的所述源物理机确定的 所述目标物理机。 a migration unit, configured to be determined according to the source physical machine received by the receiving unit The target physical machine.
在第三方面的第一种可能的实现方式中,  In a first possible implementation of the third aspect,
所述确定单元,具体用于根据所述物理机集群的物理机的信息, 确定所述物理机集群中的轻载物理机, 并选择允许下电操作的轻载 物理机作为所述源物理机;  The determining unit is specifically configured to determine, according to the information of the physical machine of the physical machine cluster, a light-load physical machine in the physical machine cluster, and select a light-load physical machine that is allowed to be powered off as the source physical machine. ;
所述发送单元, 还用于向所述确定单元确定的所述物理机集群 中的轻载物理机发送第二协商消息, 所述第二协商消息用于询问所 述物理机集群中的轻载物理机是否允许进行下电操作。  The sending unit is further configured to send a second negotiation message to the light-loading physical machine in the physical machine cluster determined by the determining unit, where the second negotiation message is used to query the light load in the physical machine cluster Whether the physical machine is allowed to perform the power-off operation.
结合前述的第三方面或第三方面的第一种可能的实现方式, 在 第二种可能的实现方式中,  In conjunction with the foregoing third aspect or the first possible implementation of the third aspect, in a second possible implementation manner,
所述确定单元,具体用于根据所述物理机集群的物理机的信息, 确定所述物理机集群中的重载物理机, 并选择允许减负操作的重载 物理机作为所述源物理机;  The determining unit is specifically configured to determine, according to information about a physical machine of the physical machine cluster, a heavy-duty physical machine in the physical machine cluster, and select a heavy-duty physical machine that allows a reduced-off operation as the source physical machine;
所述发送单元, 还用于向所述确定单元确定的所述物理机集群 中的重载物理机发送第三协商消息, 所述第三协商消息用于询问所 述物理机集群中的重载物理机是否允许进行减负操作。  The sending unit is further configured to send a third negotiation message to the overloaded physical machine in the physical machine cluster determined by the determining unit, where the third negotiation message is used to query an overload in the physical machine cluster Whether the physical machine is allowed to perform the burden reduction operation.
结合前述的第三方面或第三方面的第一种可能的实现方式至第 二种可能的实现方式中的任一种实现方式, 在第三种可能的实现方 所述目标物理机之前:  In combination with any of the foregoing third aspect or the first possible implementation to the second possible implementation of the third aspect, before the third possible implementation of the target physical machine:
所述发送单元, 还用于向所述目标物理机发送第四协商消息, 所述第四协商消息携带所述源物理机确定的待迁移虚拟机的信息; 所述接收单元, 还用于接收所述目标物理机发送的第四协商消 息的响应消息, 所述第四协商消息的响应消息携带所述目标物理机 接受的待迁移虚拟机的信息;  The sending unit is further configured to send a fourth negotiation message to the target physical machine, where the fourth negotiation message carries information about the virtual machine to be migrated determined by the source physical machine; and the receiving unit is further configured to receive a response message of the fourth negotiation message sent by the target physical machine, where the response message of the fourth negotiation message carries information about the virtual machine to be migrated accepted by the target physical machine;
相应地, 所述迁移单元, 具体用于根据所述接收单元接收的所 述第四协商消息的响应消息, 将所述目标物理机接受的待迁移虚拟 机从所述源物理机迁移到所述目标物理机。  Correspondingly, the migrating unit is configured to: migrate, according to the response message of the fourth negotiation message received by the receiving unit, the virtual machine to be migrated accepted by the target physical machine from the source physical machine to the Target physical machine.
结合前述的第三方面或第三方面的第三种可能的实现方式, 在 第四种可能的实现方式中, In combination with the third aspect of the foregoing or the third possible implementation of the third aspect, In the fourth possible implementation,
所述确定单元, 具体用于根据根据所述物理机集群的物理机的 信息, 选择第一目标物理机, 并选择所述第一目标物理机中接受虚 拟机迁入的物理机作为所述目标物理机;  The determining unit is specifically configured to select a first target physical machine according to information of a physical machine according to the physical machine cluster, and select a physical machine that accepts a virtual machine to move in the first target physical machine as the target Physical machine
所述发送单元, 还用于向所述确定单元确定的所述第一目标物 理机发送第五协商消息, 所述第五协商消息用于询问所述第一目标 物理机是否接受虚拟机迁入。  The sending unit is further configured to send a fifth negotiation message to the first target physical machine determined by the determining unit, where the fifth negotiation message is used to query whether the first target physical machine accepts virtual machine migration .
结合第三方面的第四种可能的实现方式, 在第五种可能的实现 方式中,  In conjunction with the fourth possible implementation of the third aspect, in a fifth possible implementation manner,
所述确定单元, 还用于在选择第一目标物理机之前, 上电至少 一台物理机, 并将上电的所述至少一台物理机作为所述第一目标物 理机。  The determining unit is further configured to: power on at least one physical machine before selecting the first target physical machine, and use the at least one physical machine that is powered on as the first target physical machine.
在第三方面的第六种可能的实现方式中, 目标物理机, 还用于对所述源物理机进行下电操作。  In a sixth possible implementation manner of the third aspect, the target physical machine is further configured to perform a power-off operation on the source physical machine.
在第三方面的第七种可能的实现方式中,  In a seventh possible implementation of the third aspect,
所述接收单元, 还用于获取所述物理机集群的物理机的实时资 源占用信息, 或者获取所述物理机集群的物理机发送的资源调度请 求消息, 所述资源调度请求消息由轻载或重载物理机发送;  The receiving unit is further configured to acquire real-time resource occupation information of a physical machine of the physical machine cluster, or obtain a resource scheduling request message sent by a physical machine of the physical machine cluster, where the resource scheduling request message is lightly loaded or Reloading physical machine to send;
所述确定单元, 具体用于根据所述接收单元获取的所述物理机 集群的物理机的实时资源占用信息或者所述资源调度请求消息, 确 定所述源物理机和所述目标物理机。  The determining unit is specifically configured to determine the source physical machine and the target physical machine according to the real-time resource occupation information of the physical machine of the physical machine cluster acquired by the receiving unit or the resource scheduling request message.
第四方面, 本发明实施例提供一种物理机, 包括:  In a fourth aspect, an embodiment of the present invention provides a physical machine, including:
接收单元, 用于接收中心管理节点发送的第一协商消息; 发送单元, 用于向所述中心管理节点发送第一协商消息的响应 消息, 所述第一协商消息的响应消息携带待迁移虚拟机的信息, 以 使得所述中心管理节点根据所述待迁移虚拟机的信息对所述待迁移 虚拟机进行迁移。  a receiving unit, configured to receive a first negotiation message sent by the central management node, and a sending unit, configured to send a response message of the first negotiation message to the central management node, where the response message of the first negotiation message carries the virtual machine to be migrated The information is such that the central management node migrates the virtual machine to be migrated according to the information of the virtual machine to be migrated.
在第四方面的第一种可能的实现方式中, 所述物理机还包括: 确定单元, 用于根据所述接收单元接收的所述第一协商消息和 第一依据, 确定所述待迁移虚拟机的信息, 其中, 所述第一依据包 括物理机的特性、 物理机上运行的虚拟机的应用特性、 虚拟机的运 行信息或虚拟机的调度约束。 In a first possible implementation manner of the fourth aspect, the physical machine further includes: a determining unit, configured to determine information about the virtual machine to be migrated according to the first negotiation message and the first basis received by the receiving unit, where the first basis includes characteristics of a physical machine, and running on a physical machine The application characteristics of the virtual machine, the running information of the virtual machine, or the scheduling constraints of the virtual machine.
结合前述的第四方面或第四方面的第一种可能的实现方式, 在 第二种可能的实现方式中,  In conjunction with the foregoing fourth aspect or the first possible implementation of the fourth aspect, in a second possible implementation manner,
所述发送单元, 还用于在所述接收单元接收中心管理节点发送 的第一协商消息之前, 向所述中心管理节点发送资源调度请求消,包、 或者自身的资源占用信息。  The sending unit is further configured to: before the receiving unit receives the first negotiation message sent by the central management node, send the resource scheduling request cancellation packet, or the resource occupancy information of the self to the central management node.
第五方面, 本发明实施例提供一种中心管理节点, 包括: 处理 器、 存储器、 总线和通信接口;  In a fifth aspect, an embodiment of the present invention provides a central management node, including: a processor, a memory, a bus, and a communication interface;
所述存储器用于存储计算机执行指令, 所述处理器与所述存储 器通过所述总线连接, 当所述中心管理节点运行时, 所述处理器执 行所述存储器存储的所述计算机执行指令, 以使所述中心管理节点 执行权利要求 1 - 8任意一项所述的资源调度方法。  The memory is configured to store a computer execution instruction, the processor is connected to the memory through the bus, and when the central management node is running, the processor executes the computer execution instruction stored in the memory, to The central management node is caused to perform the resource scheduling method according to any one of claims 1-8.
第六方面, 本发明的实施例提供一种可读介质, 包括计算机执 行指令, 当中心管理节点的处理器执行所述计算机执行指令时, 所 述中心管理节点执行权利要求 1 - 8任意一项所述的资源调度方法。  In a sixth aspect, an embodiment of the present invention provides a readable medium, including computer execution instructions, when the processor of a central management node executes the computer execution instruction, the central management node executes any one of claims 1-8 The resource scheduling method.
第七方面, 本发明的实施例提供一种物理机, 包括: 处理器、 存储器、 总线和通信接口;  In a seventh aspect, an embodiment of the present invention provides a physical machine, including: a processor, a memory, a bus, and a communication interface;
所述存储器用于存储计算机执行指令, 所述处理器与所述存储 器通过所述总线连接, 当所述物理机运行时, 所述处理器执行所述 存储器存储的所述计算机执行指令, 以使所述物理机执行权利要求 9 - 1 1任意一项所述的资源调度方法。  The memory is configured to store a computer execution instruction, the processor is connected to the memory through the bus, and when the physical machine is running, the processor executes the computer execution instruction stored in the memory, so that The physical machine performs the resource scheduling method according to any one of claims 9 to 11.
第八方面, 本发明的实施例提供一种可读介质, 包括计算机执 行指令, 当物理机的处理器执行所述计算机执行指令时, 所述物理 机执行权利要求 9 - 1 1任意一项所述的资源调度方法。  According to an eighth aspect, an embodiment of the present invention provides a readable medium, including computer execution instructions, when the processor of the physical machine executes the computer to execute an instruction, the physical machine executes any one of claims 9-1 The resource scheduling method described.
第九方面, 本发明的实施例提供一种资源调度系统, 包括: 中心管理节点, 用于根据物理机集群的物理机的信息, 确定虚 拟机迁移操作的源物理机和目标物理机后, 向所述源物理机发送第 一协商消息, 并接收所述源物理机发送的第一协商消息的响应消息, 所述第一协商消息的响应消,包、携带所述源物理机确定的待迁移虚拟 机的信息, 以及根据所述源物理机确定的待迁移虚拟机的信息, 将 所述源物理机, 用于接收中心管理节点发送的第一协商消 , , 并向所述中心管理节点发送第一协商消息的响应消息; According to a ninth aspect, an embodiment of the present invention provides a resource scheduling system, including: a central management node, configured to determine a virtual state according to information of a physical machine of a physical machine cluster After the source physical machine and the target physical machine of the migration operation, send a first negotiation message to the source physical machine, and receive a response message of the first negotiation message sent by the source physical machine, where the first negotiation message is Responding to the packet, carrying the information of the virtual machine to be migrated determined by the source physical machine, and transmitting the source physical machine to the receiving center management node according to the information of the virtual machine to be migrated determined by the source physical machine The first negotiation cancels, and sends a response message of the first negotiation message to the central management node;
所述目标物理机, 用于接收所述待迁移虚拟机的迁入。  The target physical machine is configured to receive the migration of the virtual machine to be migrated.
在第九方面的第一种可能的实现方式中,  In a first possible implementation of the ninth aspect,
所述中心管理节点, 具体用于根据所述物理机集群的物理机的 信息, 确定所述物理机集群中的轻载物理机, 并向所述物理机集群 中的轻载物理机发送第二协商消息, 所述第二协商消息用于询问所 述物理机集群中的轻载物理机是否允许进行下电操作, 以及选择允 许下电操作的轻载物理机作为所述源物理机。  The central management node is specifically configured to determine, according to information of the physical machine of the physical machine cluster, a light-load physical machine in the physical machine cluster, and send a second to the light-load physical machine in the physical machine cluster The negotiation message is used to query whether the light-load physical machine in the physical machine cluster is allowed to perform a power-off operation, and select a light-load physical machine that allows the power-off operation to be the source physical machine.
结合前述的第九方面或第九方面的第一种可能的实现方式, 在 第二种可能的实现方式中,  In conjunction with the foregoing ninth aspect or the first possible implementation manner of the ninth aspect, in a second possible implementation manner,
所述中心管理节点, 具体用于根据所述物理机集群的物理机的 信息, 确定所述物理机集群中的重载物理机, 并向所述物理机集群 中的重载物理机发送第三协商消息, 所述第三协商消息用于询问所 述物理机集群中的重载物理机是否允许进行减负操作, 以及选择允 许减负操作的重载物理机作为所述源物理机。  The central management node is specifically configured to determine, according to information about a physical machine of the physical machine cluster, a heavy physical machine in the physical machine cluster, and send a third to a heavy physical machine in the physical machine cluster. Negotiating the message, the third negotiation message is used to query whether the overloaded physical machine in the physical machine cluster allows the offloading operation, and selects the overloaded physical machine that allows the offloading operation to be the source physical machine.
结合前述的第九方面或第九方面的第一种可能的实现方式至第 二种可能的实现方式中的任一种实现方式, 在第三种可能的实现方 式中, 至所述目标物理机之前, 还用于向所述目标物理机发送第四协商消 息, 所述第四协商消息携带所述源物理机确定的待迁移虚拟机的信 息, 并接收所述目标物理机发送的第四协商消息的响应消息, 所述 第四协商消息的响应消息携带所述目标物理机接受的待迁移虚拟机 的信息; With reference to the foregoing ninth aspect or any one of the first possible implementation manner of the ninth aspect to the second possible implementation manner, in a third possible implementation manner, to the target physical machine The fourth negotiation message is sent to the target physical machine, where the fourth negotiation message carries information about the virtual machine to be migrated determined by the source physical machine, and receives the fourth negotiation sent by the target physical machine. a response message of the message, where the response message of the fourth negotiation message carries the virtual machine to be migrated accepted by the target physical machine Information;
相应地, 所述中心管理节点, 具体用于根据所述第四协商消息 的响应消息, 将所述目标物理机接受的待迁移虚拟机从所述源物理 机迁移到所述目标物理机。  Correspondingly, the central management node is configured to migrate the virtual machine to be migrated accepted by the target physical machine from the source physical machine to the target physical machine according to the response message of the fourth negotiation message.
结合前述的第九方面或第九方面的第三种可能的实现方式, 在 第四种可能的实现方式中,  In combination with the foregoing ninth aspect or the third possible implementation manner of the ninth aspect, in a fourth possible implementation manner,
所述中心管理节点, 具体用于根据所述物理机集群的物理机的 信息, 选择第一目标物理机, 并向所述第一目标物理机发送第五协 商消息, 所述第五协商消息用于询问所述第一目标物理机是否接受 虚拟机迁入, 以及选择所述第一目标物理机中接受虚拟机迁入的物 理机作为所述目标物理机。  The central management node is configured to select a first target physical machine according to the information of the physical machine of the physical machine cluster, and send a fifth negotiation message to the first target physical machine, where the fifth negotiation message is used. Querying whether the first target physical machine accepts virtual machine migration, and selecting a physical machine in the first target physical machine that accepts virtual machine migration as the target physical machine.
结合第九方面的第四种可能的实现方式, 在第五种可能的实现 方式中,  With reference to the fourth possible implementation manner of the ninth aspect, in a fifth possible implementation manner,
所述中心管理节点, 在选择第一目标物理机之前, 还用于上电 至少一台物理机, 并将上电的所述至少一台物理机作为所述第一目 标物理机。  The central management node is further configured to power on at least one physical machine before selecting the first target physical machine, and use the at least one physical machine that is powered on as the first target physical machine.
在第九方面的第六种可能的实现方式中, 所述目标物理机, 还用于对所述源物理机进行下电操作。  In a sixth possible implementation manner of the ninth aspect, the target physical machine is further configured to perform a power-off operation on the source physical machine.
在第九方面的第七种可能的实现方式中,  In a seventh possible implementation of the ninth aspect,
所述中心管理节点, 还用于获取所述物理机集群的物理机的实 时资源占用信息, 或者获取所述物理机集群的物理机发送的资源调 度请求消息, 所述资源调度请求消息由轻载或重载物理机发送; 其中, 所述中心管理节点, 具体用于根据所述物理机集群的物 理机的实时资源占用信息或者所述资源调度请求消息, 确定所述源 物理机和所述目标物理机;  The central management node is further configured to acquire real-time resource occupation information of the physical machine of the physical machine cluster, or obtain a resource scheduling request message sent by the physical machine of the physical machine cluster, where the resource scheduling request message is lightly loaded. Or the overloaded physical machine sends the network management node, where the central management node is configured to determine the source physical machine and the target according to the real-time resource occupation information of the physical machine of the physical machine cluster or the resource scheduling request message. Physical machine
所述源物理机,在接收中心管理节点发送的第一协商消息之前, 还用于向所述中心管理节点发送资源调度请求消息。  The source physical machine is further configured to send a resource scheduling request message to the central management node before receiving the first negotiation message sent by the central management node.
在第九方面的第八种可能的实现方式中, 所述源物理机, 还用于根据所述第一协商消息及第一依据, 确 定所述待迁移虚拟机的信息, 所述第一依据包括包括物理机的特性、 物理机上运行的虚拟机的应用特性、 虚拟机的运行信息或虚拟机的 调度约束。 In an eighth possible implementation of the ninth aspect, The source physical machine is further configured to determine, according to the first negotiation message and the first basis, information about the virtual machine to be migrated, where the first basis includes a feature of the physical machine, and a virtual machine running on the physical machine. Application characteristics, operational information of the virtual machine, or scheduling constraints of the virtual machine.
本发明实施例提供一种资源调度方法、 装置及系统, 通过根据 物理机集群的物理机的信息, 确定虚拟机迁移操作的源物理机和目 标物理机后, 向源物理机发送第一协商消息, 并接收源物理机发送 的第一协商消息的响应消息, 第一协商消息的响应消息携带源物理 机确定的待迁移虚拟机的信息, 以及根据源物理机确定的待迁移虚 拟机的信息, 将待迁移虚拟机从源物理机迁移至目标物理机。 通过 该方案, 由于中心管理节点只需要初步判断出虚拟机迁移的源物理 机, 再通过与源物理机协商确定源物理机上哪些虚拟机需要迁移, 并最终进行物理机集群的资源调度, 从而减轻中心管理节点的需要 收集大量物理机上的虚拟机信息的负担。  The embodiment of the present invention provides a resource scheduling method, device, and system. After determining a source physical machine and a target physical machine of a virtual machine migration operation according to the information of the physical machine of the physical machine cluster, the first negotiation message is sent to the source physical machine. And receiving the response message of the first negotiation message sent by the source physical machine, where the response message of the first negotiation message carries the information of the virtual machine to be migrated determined by the source physical machine, and the information of the virtual machine to be migrated determined according to the source physical machine, Migrate the virtual machine to be migrated from the source physical machine to the target physical machine. With this solution, the central management node only needs to initially determine the source physical machine of the virtual machine migration, and then negotiate with the source physical machine to determine which virtual machines on the source physical machine need to be migrated, and finally perform resource scheduling of the physical machine cluster, thereby reducing The central management node needs to collect a large amount of virtual machine information on the physical machine.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下 面将对实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is some embodiments of the invention.
图 1 为本发明实施例提供的资源调度系统的架构图一;  FIG. 1 is a structural diagram 1 of a resource scheduling system according to an embodiment of the present invention;
图 2为本发明实施例提供的一种资源调度方法的流程图一; 图 3为本发明实施例提供的一种资源调度方法的流程图二; 图 4为本发明实施例提供的一种资源调度方法的流程图三; 图 5为本发明实施例提供的中心管理节点的结构示意图一; 图 6为本发明实施例提供的物理机的结构示意图一;  2 is a flowchart 1 of a resource scheduling method according to an embodiment of the present invention; FIG. 3 is a flowchart 2 of a resource scheduling method according to an embodiment of the present invention; FIG. 4 is a resource according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram 1 of a central management node according to an embodiment of the present invention; FIG. 6 is a schematic structural diagram 1 of a physical machine according to an embodiment of the present invention;
图 7为本发明实施例提供的物理机的结构示意图二;  FIG. 7 is a schematic structural diagram 2 of a physical machine according to an embodiment of the present disclosure;
图 8为本发明实施例提供的中心管理节点的结构示意图二; 图 9为本发明实施例提供的物理机的结构示意图三;  8 is a schematic structural diagram 2 of a central management node according to an embodiment of the present invention; FIG. 9 is a schematic structural diagram 3 of a physical machine according to an embodiment of the present invention;
图 1 0为本发明实施例提供的资源调度系统的架构图二; 图 1 1 为本发明实施例提供的资源调度系统的架构图三; 图 1 2为本发明实施例提供的资源调度系统的架构图四。 10 is a structural diagram 2 of a resource scheduling system according to an embodiment of the present invention; FIG. 1 is a third structural diagram of a resource scheduling system according to an embodiment of the present invention; FIG. 12 is a structural diagram 4 of a resource scheduling system according to an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术 方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明 一部分实施例, 而不是全部的实施例。  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. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments.
实施例一  Embodiment 1
如图 1所示,为本发明实施例提供的一个资源调度系统架构图, 该资源调度系统包括由多台或者一台物理机组成的物理机集群以及 中心管理节点, 本实施例中以 3 台物理机为例, 每台物理机上都可 能被虚拟化软件虚拟出多台虚拟机, 每台物理机上都部署分布式代 理, 该分布式代理可以用于收集本台物理机的属性信息和运行信息, 以及本台物理机上的每台虚拟机的信息, 中心管理节点用于收集其 管理的物理机集群的每台物理机的资源占用信息, 根据每台物理机 的资源占用信息确定物理机集群的资源优化策略, 或者用于收集其 管理的物理机集群的物理机的资源调度请求, 根据收集的资源调度 请求确定物理机集群的资源优化策略, 即确定哪台物理机可以进行 下电操作以节约资源消耗, 哪台物理机可以接受虚拟机的迁入, 并 根据确定的物理机集群的资源优化策略与对应的物理机上的分布式 代理进行协商, 获取物理机自身确定的待迁移虚拟机的信息和接受 迁入的虚拟机的信息, 并根据获取的信息进行虚拟机的迁移。  As shown in FIG. 1 , a resource scheduling system architecture diagram is provided in an embodiment of the present invention. The resource scheduling system includes a physical machine cluster composed of multiple or one physical machine and a central management node, which is three in this embodiment. For example, a physical machine may be virtualized by virtualized software on each physical machine. Each physical machine is deployed with a distributed agent. The distributed agent can be used to collect attribute information and running information of the physical machine of the local machine. And the information of each virtual machine on the physical machine of the local machine, the central management node is used to collect the resource occupation information of each physical machine of the physical machine cluster that it manages, and determine the physical machine cluster according to the resource occupation information of each physical machine. a resource optimization policy, or a resource scheduling request for collecting a physical machine of the physical machine cluster that it manages, and determining a resource optimization policy of the physical machine cluster according to the collected resource scheduling request, that is, determining which physical machine can be powered off to save Resource consumption, which physical machine can accept the migration of the virtual machine, and according to the determined physics Optimizing resource cluster on a distributed agent strategy and the corresponding physical machine consultation, access to information to determine its own physical machine migration of virtual machines to be moved to accept the information and virtual machines, and migration of virtual machines based on the information obtained.
根据图 1 所示的资源调度系统, 如图 2所示, 本发明实施例提 供一种资源调度方法, 涉及中心管理节点侧, 该方法可以包括: According to the resource scheduling system shown in FIG. 1, as shown in FIG. 2, the embodiment of the present invention provides a resource scheduling method, which is related to the central management node side, and the method may include:
S 1 01、 中心管理节点根据物理机集群的物理机的信息, 确定虚 拟机迁移操作的源物理机和目标物理机。 S 1 01. The central management node determines the source physical machine and the target physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster.
本发明实施例提供的资源调度系统包括中心管理节点和由中心 管理节点管理的物理机集群的物理机。 其中, 中心管理节点可以与 其管理的物理机集群的物理机进行通信, 并获取物理机集群的物理 机的信息, 包括: 物理机集群的物理机的资源占用信息, 例如物理 机的 CPU ( C en t r a l P r o c e s s i ng Un i t , 中央处理器)、 内存、 网络 资源的当前利用率, 或者物理机的负载信息; 或者物理机集群的物 理机发送的资源调度请求消息, 即物理机集群的物理机请求中心管 理节点对其进行资源调度。 The resource scheduling system provided by the embodiment of the present invention includes a central management node and a physical machine of a physical machine cluster managed by the central management node. The central management node can communicate with the physical machine of the physical machine cluster it manages, and obtain the information of the physical machine of the physical machine cluster, including: resource occupation information of the physical machine of the physical machine cluster, for example, the CPU of the physical machine (C en Tral P rocessi ng Un it , central processing unit), memory, network The current utilization of the resource, or the load information of the physical machine; or the resource scheduling request message sent by the physical machine of the physical machine cluster, that is, the physical machine of the physical machine cluster requests the central management node to perform resource scheduling.
示例性的, 当物理机集群的某些物理机负载较轻时, 中心管理 节点可以对这些轻载物理机上运行的虚拟机进行迁移, 并下电这些 轻载物理机, 从而以达到节能的目 的; 当物理机集群的某些物理机 负载较重时, 中心管理节点可以将这些重载物理机上运行的虚拟机 迁移至其他轻载物理机, 从而使得物理机集群中的物理机上运行的 虚拟机均衡, 保证应用 Qo S ( Qua l i t y o f S e r v i c e , 服务质量), 进 而完成智能的资源调度。  Exemplarily, when some physical load of the physical machine cluster is light, the central management node can migrate the virtual machines running on the light-load physical machines, and power off the light-load physical machines to save energy. When some physical machines in a physical machine cluster are heavily loaded, the central management node can migrate virtual machines running on these overloaded physical machines to other light-loaded physical machines, thereby causing virtual machines running on physical machines in the physical machine cluster. Balanced, Qo S (Qua lity of Service) is applied to complete intelligent resource scheduling.
中心管理节点获取物理机集群的物理机的信息之后, 中心管理 节点可以根据物理机集群的物理机的信息, 确定虚拟机迁移操作的 源物理机。 另外, 也可以确定和目标物理机。 具体的, 源物理机为 需要将虚拟机迁出的物理机, 目标物理机为虚拟机迁入的物理机。  After the central management node obtains the information of the physical machine of the physical machine cluster, the central management node may determine the source physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster. In addition, the target physical machine can also be determined. Specifically, the source physical machine is a physical machine that needs to move the virtual machine out, and the target physical machine is a physical machine that the virtual machine migrates into.
可选的, 中心管理节点可以确定单个源物理机和单个目标物理 机; 单个源物理机和多个目标物理机; 多个源物理机和单个目标物 理机; 或者多个源物理机和多个目标物理机, 本发明不做限制。  Optionally, the central management node can determine a single source physical machine and a single target physical machine; a single source physical machine and multiple target physical machines; multiple source physical machines and a single target physical machine; or multiple source physical machines and multiple The target physical machine, the invention is not limited.
51 02、 中心管理节点向源物理机发送第一协商消息。  51 02. The central management node sends a first negotiation message to the source physical machine.
中心管理节点确定好源物理机后, 中心管理节点发送第一协商 消息至源物理机。  After the central management node determines the source physical machine, the central management node sends the first negotiation message to the source physical machine.
51 03、 中心管理节点接收源物理机发送的第一协商消息的响应 消息, 第一协商消息的响应消息携带源物理机确定的待迁移虚拟机 的信息。  The central management node receives the response message of the first negotiation message sent by the source physical machine, and the response message of the first negotiation message carries the information of the virtual machine to be migrated determined by the source physical machine.
中心管理节点向源物理机发送第一协商消息后, 中心管理节点 可接收源物理机发送的第一协商消息的响应消息, 其中, 第一协商 消息的响应消息中携带源物理机确定的待迁移虚拟机的信息, 该待 迁移虚拟机为源物理机上运行的虚拟机。  After the central management node sends the first negotiation message to the source physical machine, the central management node may receive the response message of the first negotiation message sent by the source physical machine, where the response message of the first negotiation message carries the to-migration determined by the source physical machine. Information about the virtual machine. The virtual machine to be migrated is a virtual machine running on the source physical machine.
需要说明的是, 中心管理节点可以向源物理机发送第一协商消 息进行协商, 以用于获得源虚拟机确定的待迁移虚拟机的信息。 5 1 04、中心管理节点根据源物理机确定的待迁移虚拟机的信息, 将待迁移虚拟机从源物理机迁移至目标物理机。 It should be noted that the central management node may send a first negotiation message to the source physical machine for negotiation, so as to obtain information about the virtual machine to be migrated determined by the source virtual machine. 5 1 04. The central management node migrates the VM to be migrated from the source physical machine to the target physical machine according to the information of the virtual machine to be migrated determined by the source physical machine.
中心管理节点接收到源物理机确定的待迁移虚拟机的信息之 后, 中心管理节点可以根据该源物理机确定的待迁移虚拟机的信息, 将待迁移虚拟机从该源物理机迁移到中心管理节点确定的目标物理 机, 从而完成待迁移虚拟机的迁移操作。  After the central management node receives the information about the virtual machine to be migrated determined by the source physical machine, the central management node may migrate the virtual machine to be migrated from the source physical machine to the central management according to the information of the virtual machine to be migrated determined by the source physical machine. The target physical machine determined by the node completes the migration operation of the virtual machine to be migrated.
根据图 1 所示的资源调度系统, 如图 3所示, 本发明实施例还 提供一种资源调度方法, 涉及源物理机侧, 该方法可以包括:  According to the resource scheduling system shown in FIG. 1, as shown in FIG. 3, the embodiment of the present invention further provides a resource scheduling method, which is related to the source physical machine side, and the method may include:
5 2 0 1、 源物理机接收中心管理节点发送的第一协商消息。  5 2 0 1. The source physical machine receives the first negotiation message sent by the central management node.
源物理机接收来自 中心管理节点的第一协商消息, 其中, 源物 理机为中心管理节点根据物理机集群的物理机的信息确定的。  The source physical machine receives the first negotiation message from the central management node, wherein the source physical machine is determined by the central management node according to the information of the physical machine of the physical machine cluster.
S 2 0 2、源物理机向中心管理节点发送第一协商消息的响应消息, 第一协商消息的响应消息携带待迁移虚拟机的信息, 以使得中心管 理节点根据该待迁移虚拟机的信 , 对待迁移虚拟机进行迁移。  S2 0 2, the source physical machine sends a response message of the first negotiation message to the central management node, and the response message of the first negotiation message carries the information of the virtual machine to be migrated, so that the central management node according to the letter of the virtual machine to be migrated, Migrate the migrated virtual machine.
源物理机接收到中心管理节点发送的第一协商消息后, 源物理 机可返回第一协商消息的响应消息至中心管理节点, 以使得中心管 理节点可以根据源物理机确定的待迁移虚拟机的信 , 对该待迁移虚 拟机进行迁移, 从而完成待迁移虚拟机的迁移操作, 其中, 第一协 商消息的响应消息中携带源物理机确定的待迁移虚拟机的信息。  After the source physical machine receives the first negotiation message sent by the central management node, the source physical machine may return a response message of the first negotiation message to the central management node, so that the central management node can determine the virtual machine to be migrated according to the source physical machine. The message is to be migrated to the virtual machine to be migrated, and the response message of the first negotiation message carries the information of the virtual machine to be migrated determined by the source physical machine.
本发明实施例提供一种资源调度方法, 通过根据物理机集群的 物理机的信息, 确定虚拟机迁移操作的源物理机和目标物理机后, 向源物理机发送第一协商消息, 并接收源物理机发送的第一协商消 息的响应消息, 第一协商消息的响应消息携带源物理机确定的待迁 移虚拟机的信息, 以及根据源物理机确定的待迁移虚拟机的信息, 将待迁移虚拟机从源物理机迁移至目标物理机。 通过该方案, 由于 中心管理节点只需要初步判断出虚拟机迁移的源物理机, 再通过与 源物理机协商确定源物理机上哪些虚拟机需要迁移, 并最终进行物 理机集群的资源调度, 从而减轻中心管理节点的需要收集大量物理 机上的虚拟机信息的负担。 实施例二 The embodiment of the present invention provides a resource scheduling method, after determining a source physical machine and a target physical machine of a virtual machine migration operation according to the information of the physical machine of the physical machine cluster, sending a first negotiation message to the source physical machine, and receiving the source The response message of the first negotiation message sent by the physical machine, the response message of the first negotiation message carries the information of the virtual machine to be migrated determined by the source physical machine, and the information of the virtual machine to be migrated determined according to the source physical machine, and the virtual to be migrated The machine migrates from the source physical machine to the target physical machine. With this solution, the central management node only needs to initially determine the source physical machine of the virtual machine migration, and then negotiate with the source physical machine to determine which virtual machines on the source physical machine need to be migrated, and finally perform resource scheduling of the physical machine cluster, thereby reducing The central management node needs to collect a large amount of virtual machine information on the physical machine. Embodiment 2
本发明实施例提供一种资源调度方法, 如图 4 所示, 该方法可 以包括:  The embodiment of the invention provides a resource scheduling method. As shown in FIG. 4, the method may include:
S 3 0 1、 中心管理节点获取物理机集群的物理机的实时资源占用 信息, 或者获取物理机集群的物理机发送的资源调度请求消息, 资 源调度请求消息由轻载或重载物理机发送。  S 3 0 1. The central management node acquires real-time resource occupation information of the physical machine of the physical machine cluster, or acquires a resource scheduling request message sent by the physical machine of the physical machine cluster, and the resource scheduling request message is sent by the light load or the overloaded physical machine.
本发明实施例提供的资源调度系统包括中心管理节点和由中心 管理节点管理的物理机集群的物理机。 其中, 中心管理节点可以与 其管理的物理机集群的物理机进行通信, 并获取物理机集群的物理 机的信息, 包括: 物理机集群的物理机的资源占用信息, 例如物理 机的 C P U、 内存、 网络资源的当前利用率, 或者物理机的负载信息; 或者物理机集群的物理机发送的资源调度请求消息, 即物理机集群 的物理机请求中心管理节点对其进行资源调度。 其中, 资源调度请 求消息由轻载或重载的物理机发送。  The resource scheduling system provided by the embodiment of the present invention includes a central management node and a physical machine of a physical machine cluster managed by the central management node. The central management node can communicate with the physical machine of the physical machine cluster that it manages, and obtain the information of the physical machine of the physical machine cluster, including: resource occupation information of the physical machine of the physical machine cluster, such as the CPU and memory of the physical machine. The current utilization of the network resource, or the load information of the physical machine; or the resource scheduling request message sent by the physical machine of the physical machine cluster, that is, the physical machine of the physical machine cluster requests the central management node to perform resource scheduling. The resource scheduling request message is sent by a light or overloaded physical machine.
示例性的, 当物理机集群的某些物理机负载较轻时, 中心管理 节点可以对这些轻载物理机上运行的虚拟机进行迁移, 并下电这些 轻载物理机, 从而以达到节能的目 的; 当物理机集群的某些物理机 负载较重时, 中心管理节点可以将这些重载物理机上运行的虚拟机 迁移至其他轻载物理机, 从而使得物理机集群中的物理机上运行的 虚拟机均衡, 保证应用 Q o S , 进而完成智能的资源调度。  Exemplarily, when some physical load of the physical machine cluster is light, the central management node can migrate the virtual machines running on the light-load physical machines, and power off the light-load physical machines to save energy. When some physical machines in a physical machine cluster are heavily loaded, the central management node can migrate virtual machines running on these overloaded physical machines to other light-loaded physical machines, thereby causing virtual machines running on physical machines in the physical machine cluster. Balance, ensure the application of Q o S, and then complete intelligent resource scheduling.
需要说明的是, 当物理机集群的某些物理机的 C P U、 内存、 网 络资源的当前利用率较低时, 这些物理机可发送资源调度请求消息 至中心管理节点, 以告诉中心管理节点这些物理机为轻载物理机; 相应的, 当物理机集群的某些物理机的 C P U、 内存、 网络资源的当 前利用率较高时, 这些物理机可发送资源调度请求消息至中心管理 节点, 以告诉中心管理节点这些物理机为重载物理机。  It should be noted that when the current utilization of the CPU, memory, and network resources of some physical machines of the physical machine cluster is low, the physical machines may send a resource scheduling request message to the central management node to notify the central management node of these physics. The machine is a light-loaded physical machine; correspondingly, when the current utilization of CPU, memory, and network resources of some physical machines of the physical machine cluster is high, the physical machines may send a resource scheduling request message to the central management node to tell Central Management Node These physical machines are overloaded physical machines.
可选的, 中心管理节点获取物理机集群的物理机的信息的方法 可以为下述的一种:  Optionally, the method for the central management node to obtain the information of the physical machine of the physical machine cluster may be one of the following:
( 1 )物理机集群的物理机直接上报该物理机的信息给中心管理 节点。 (1) The physical machine of the physical machine cluster directly reports the information of the physical machine to the central management. Node.
( 2 )物理机集群的物理机将该物理机的信息上报至其他物理服 务器集群监控模块, 再由其他物理服务器集群监控模块发送至中心 管理节点。  (2) The physical machine of the physical machine cluster reports the information of the physical machine to the monitoring module of the other physical server cluster, and then sends the monitoring module of the other physical server to the central management node.
可选的, 上述中心管理节点获取物理机集群的物理机的信息的 同时, 也可以获取物理机集群的物理机上运行的虚拟机的信息, 以 便更准确的确定是否需要进行虚拟机的迁移操作。 相比现有技术, 本发明实施例也可无需获取物理机集群的物理机上运行的虚拟机的 信息, 以便减小中心管理节点获取信息的负担, 从而提高中心管理 节点对信息的计算效率。  Optionally, the central management node obtains information about the physical machine of the physical machine cluster, and may also obtain information about the virtual machine running on the physical machine of the physical machine cluster, so as to more accurately determine whether the virtual machine migration operation is required. Compared with the prior art, the embodiment of the present invention does not need to obtain the information of the virtual machine running on the physical machine of the physical machine cluster, so as to reduce the burden on the central management node to obtain information, thereby improving the calculation efficiency of the central management node for information.
S 302、 中心管理节点根据物理机集群的物理机的信息, 确定物 理机集群中的轻载物理机和重载物理机。  S302. The central management node determines the light-load physical machine and the heavy-duty physical machine in the physical machine cluster according to the information of the physical machine of the physical machine cluster.
中心管理节点获取到物理机集群的物理机的信息后, 中心管理 节点可根据物理机集群的物理机的信息 ( 资源占用信息或负载信 息), 确定物理机集群中的轻载物理机和重载物理机。 例如, 若某台 物理机的 CPU 的当前利用率小于预设的轻载值, 则确定该物理机为 轻载物理机; 若某台物理机的 CPU的当前利用率大于预设的轻载值, 则确定该物理机为重载物理机; 或者, 接收到物理机的资源调度请 求消息, 若该资源调度请求消息表示需要增加资源, 则该物理机为 重载物理机, 若该资源调度请求消息表示资源空闲, 则该物理机为 轻载物理机。  After the central management node obtains the information of the physical machine of the physical machine cluster, the central management node can determine the light-load physical machine and the overload in the physical machine cluster according to the physical machine information (resource occupation information or load information) of the physical machine cluster. Physical machine. For example, if the current utilization rate of the CPU of a physical machine is less than the preset light load value, it is determined that the physical machine is a light-load physical machine; if the current utilization rate of the CPU of a physical machine is greater than the preset light load value And determining that the physical machine is a heavy-duty physical machine; or receiving a resource scheduling request message of the physical machine, if the resource scheduling request message indicates that the resource needs to be added, the physical machine is a heavy-load physical machine, if the resource scheduling request The message indicates that the resource is idle, and the physical machine is a light-load physical machine.
S 303、 中心管理节点向轻载物理机发送第二协商消息, 第二协 商消息用于询问轻载物理机是否允许进行下电操作。  S 303. The central management node sends a second negotiation message to the light-loading physical machine, where the second negotiation message is used to query whether the light-loading physical machine is allowed to perform the power-off operation.
中心管理节点确定物理机集群中的轻载物理机后, 中心管理节 点向这些轻载物理机发送第二协商消息, 其中, 第二协商消息用于 询问轻载物理机是否允许进行下电操作。  After the central management node determines the light-loaded physical machine in the physical machine cluster, the central management node sends a second negotiation message to the light-loading physical machines, where the second negotiation message is used to query whether the light-loading physical machine is allowed to perform the power-off operation.
轻载物理机接收到中心管理节点发送的第二协商消息后, 轻载 物理机可以根据第一依据确定轻载物理机是否允许下电, 并返回相 对于第二协商消息的第一结果至中心管理节点, 其中, 第一结果可 用于指示轻载物理机是否允许下电。 After the light-loading physical machine receives the second negotiation message sent by the central management node, the light-loading physical machine may determine whether the light-loading physical machine is allowed to be powered off according to the first basis, and return the first result to the center relative to the second negotiation message. Management node, wherein the first result is It is used to indicate whether the light load physical machine is allowed to be powered off.
可选的, 第一依据可以包括轻载物理机的特性、 轻载物理机上 运行的虚拟机的应用特性或者轻载物理机上运行的虚拟机的运行信 息或调度约束。  Optionally, the first basis may include characteristics of the light load physical machine, application characteristics of the virtual machine running on the light load physical machine, or operation information or scheduling constraints of the virtual machine running on the light load physical machine.
具体的, 轻载物理机的特性可以包括轻载物理机上是否有 BMC ( Baseboard Management Controller, 基板管理控制器), 或者轻 载物理机是否能被远程下电; 轻载物理机上运行的虚拟机的应用特 性可以包括轻载物理机上运行的虚拟机是否允许被迁移; 轻载物理 机上运行的虚拟机的调度约束可以包括若轻载物理机上电运行时间 小于等于 10分钟, 则不允许对轻载物理机下电, 以免引起震荡。  Specifically, the characteristics of the light-loading physical machine may include whether there is a BMC (Baseboard Management Controller) on the light-loaded physical machine, or whether the light-loaded physical machine can be remotely powered off; the virtual machine running on the light-loaded physical machine The application characteristics may include whether the virtual machine running on the light-load physical machine is allowed to be migrated; the scheduling constraint of the virtual machine running on the light-load physical machine may include that the light-loaded physical is not allowed if the light-loaded physical machine is powered on for less than or equal to 10 minutes. Power off the machine to avoid shocks.
可选的, 第一结果还可以包括预估的源物理机完成下电所需的 时间。  Optionally, the first result may further include an estimated time required for the source physical machine to complete the power-off.
S 304、 中心管理节点向重载物理机发送第三协商消息, 第三协 商消息用于询问重载物理机是否允许进行减负操作。  S304. The central management node sends a third negotiation message to the overloaded physical machine, where the third negotiation message is used to query whether the overloaded physical machine is allowed to perform the offloading operation.
中心管理节点确定物理机集群中的重载物理机后, 中心管理节 点向这些重载物理机发送第三协商消息, 其中, 第三协商消息用于 询问重载物理机是否允许进行减负操作。  After the central management node determines the overloaded physical machine in the physical machine cluster, the central management node sends a third negotiation message to the overloaded physical machines, wherein the third negotiation message is used to query whether the overloaded physical machine is allowed to perform the offloading operation.
重载物理机接收到中心管理节点发送的第三协商消息后, 重载 物理机可以根据第二依据确定重载物理机是否允许减负, 并返回相 对于第三协商消息的第二结果至中心管理节点, 其中, 第二结果可 用于指示重载物理机是否允许减负。  After the reloading physical machine receives the third negotiation message sent by the central management node, the reloading physical machine may determine whether the overloaded physical machine allows the offloading according to the second basis, and returns a second result to the central management relative to the third negotiation message. A node, wherein the second result can be used to indicate whether the overloaded physical machine is allowed to be offloaded.
可选的, 第二依据可以包括重载物理机的特性、 重载物理机上 运行的虚拟机的应用特性或重载物理机上运行的虚拟机的调度约 束。  Optionally, the second basis may include the characteristics of the overloaded physical machine, the application characteristics of the virtual machine running on the overloaded physical machine, or the scheduling constraint of the virtual machine running on the overloaded physical machine.
具体的, 重载物理机的特性可以包括重载物理机是否重载了; 重载物理机上运行的虚拟机的应用特性可以包括重载物理机上运行 的虚拟机是否允许被迁移; 重载物理机上运行的虚拟机的调度约束 可以包括重载物理机上运行的虚拟机之间是否违反互斥性, 如某些 虚拟机不能同时运行在同一台物理机上。 需要说明的是, 上述步骤 303和 3 04为可选步骤, 系统可以执 行步骤 30 3和 304之中的任意之一或者执行两者, 且执行的顺序并 非固定不变, 可先执行步骤 30 3 再执行步骤 304 , 也可以先执行步 骤 304再执行步骤 303。 本实施例以先执行步骤 303再执行步骤 304 为示例。 Specifically, the characteristics of the overloaded physical machine may include whether the overloaded physical machine is overloaded; the application characteristics of the virtual machine running on the overloaded physical machine may include whether the virtual machine running on the overloaded physical machine is allowed to be migrated; The scheduling constraints of the running virtual machine may include whether the virtual machines running on the overloaded physical machine violate the mutual exclusion, such as some virtual machines cannot run on the same physical machine at the same time. It should be noted that the foregoing steps 303 and 308 are optional steps, and the system may perform any one of steps 30 3 and 304 or perform both, and the order of execution is not fixed, and step 30 3 may be performed first. After step 304 is performed, step 304 may be performed first and then step 303 is performed. In this embodiment, step 303 is performed first and then step 304 is performed as an example.
S 305、 中心管理节点选择允许下电操作的轻载物理机和允许减 负操作的重载物理机作为源物理机。  S 305. The central management node selects a light-load physical machine that allows the power-off operation and a heavy-duty physical machine that allows the power-down operation to be the source physical machine.
中心管理节点接收到轻载物理机和重载物理机分别返回的第一 结果和第二结果后, 中心管理节点可分别根据第一结果和第二结果, 选择允许下电操作的轻载物理机作为源物理机, 及选择允许减负操 作的重载物理机作为源物理机。  After receiving the first result and the second result respectively returned by the light load physical machine and the heavy load physical machine, the central management node may select the light load physical machine that is allowed to be powered down according to the first result and the second result respectively. As the source physical machine, and selecting the heavy-duty physical machine that allows the offload operation as the source physical machine.
中心管理节点获取物理机集群的物理机的信息之后, 中心管理 节点可以根据物理机集群的物理机的信息, 确定虚拟机迁移操作的 源物理机和目标物理机。 具体的, 源物理机为有待迁移虚拟机的物 理机, 目标物理机为虚拟机迁入的物理机。  After the central management node obtains the information of the physical machine of the physical machine cluster, the central management node may determine the source physical machine and the target physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster. Specifically, the source physical machine is a physical machine to be migrated, and the target physical machine is a physical machine into which the virtual machine is moved.
可选的, 中心管理节点可以确定单个源物理机和单个目标物理 机; 单个源物理机和多个目标物理机; 多个源物理机和单个目标物 理机; 或者多个源物理机和多个目标物理机, 本发明实施例不做限 制。  Optionally, the central management node can determine a single source physical machine and a single target physical machine; a single source physical machine and multiple target physical machines; multiple source physical machines and a single target physical machine; or multiple source physical machines and multiple The target physical machine is not limited in the embodiment of the present invention.
S 306、 中心管理节点根据物理机集群的物理机的信息, 选择第 一目标物理机。  S 306. The central management node selects the first target physical machine according to the information of the physical machine of the physical machine cluster.
中心管理节点可以根据获取的物理机集群的物理机的信息, 选 择第一目标物理机。 其中, 第一目标物理机可以为物理机集群的负 载较轻的物理机。  The central management node may select the first target physical machine according to the information of the physical machine of the acquired physical machine cluster. The first target physical machine may be a physical machine with a lighter load of the physical machine cluster.
可选的, 中心管理节点还可以上电物理机集群的至少一台物理 机, 并将该至少一台物理机作为第一目标物理机。  Optionally, the central management node may also be at least one physical machine of the above electrical physical machine cluster, and the at least one physical machine is used as the first target physical machine.
S 307、 中心管理节点向第一目标物理机发送第五协商消息, 第 五协商消息用于询问第一目标物理机是否接受虚拟机迁入。  S 307. The central management node sends a fifth negotiation message to the first target physical machine, where the fifth negotiation message is used to query whether the first target physical machine accepts the virtual machine migration.
中心管理节点确定第一目标物理机后, 中心管理节点可向第一 目标物理机发送第五协商消息, 第五协商消息可用于询问第一目标 物理机是否接受虚拟机迁入。 After the central management node determines the first target physical machine, the central management node may be the first The target physical machine sends a fifth negotiation message, and the fifth negotiation message can be used to query whether the first target physical machine accepts the virtual machine migration.
第一目标物理机接收到中心管理节点发送的第五协商消息后, 第一目标物理机可根据第三依据确定其是否允许接受虚拟机迁入, 并返回第三结果至中心管理节点, 其中, 第三结果可用于指示第一 目标物理机是否接受虚拟机迁入。  After the first target physical machine receives the fifth negotiation message sent by the central management node, the first target physical machine may determine, according to the third basis, whether it is allowed to accept the virtual machine to move in, and return the third result to the central management node, where The third result can be used to indicate whether the first target physical machine accepts virtual machine migration.
第三依据可以包括第一目标物理机的资源信息或第一目标物理 机上运行的虚拟机的调度约束。  The third basis may include resource information of the first target physical machine or scheduling constraints of the virtual machine running on the first target physical machine.
具体的, 第一目标物理机的资源信息可以包括第一目标物理机 的资源是否足够运行源物理机上的待迁移虚拟机; 第一目标物理机 上运行的虚拟机的调度约束可以包括这些虚拟机之间是否违反互斥 性, 如某些虚拟机不能同时运行在同一台物理机上。 其中, 上述这 些虚拟机可以包括源物理机上的待迁移虚拟机和第一目标物理机上 已运行的虚拟机。  Specifically, the resource information of the first target physical machine may include whether the resource of the first target physical machine is sufficient to run the virtual machine to be migrated on the source physical machine; the scheduling constraint of the virtual machine running on the first target physical machine may include the virtual machine Whether the mutual exclusion is violated, for example, some virtual machines cannot run on the same physical machine at the same time. The virtual machines may include a virtual machine to be migrated on the source physical machine and a virtual machine running on the first target physical machine.
S 308、 中心管理节点选择第一目标物理机中接受虚拟机迁入的 物理机作为目标物理机。  S 308. The central management node selects a physical machine that accepts the virtual machine to move in the first target physical machine as the target physical machine.
中心管理节点可根据第一目标物理机返回的第三结果, 选择允 许接受虚拟机迁入的物理机作为目标物理机。  The central management node may select a physical machine that allows the virtual machine to move in as the target physical machine according to the third result returned by the first target physical machine.
S 309、 中心管理节点向源物理机发送第一协商消息。  S 309. The central management node sends a first negotiation message to the source physical machine.
中心管理节点确定源物理机后, 中心管理节点可向源虚拟机发 送第一协商消息与源物理机协商虚拟机的迁移。  After the central management node determines the source physical machine, the central management node may send a first negotiation message to the source virtual machine to negotiate the migration of the virtual machine with the source physical machine.
S 31 0、 源物理机确定待迁移虚拟机的信息。  S 31 0. The source physical machine determines information of the virtual machine to be migrated.
源物理机接收到中心管理节点发送的第一协商消息后, 源物理 机可根据第一协商消息和第一依据确定源物理机上的待迁移虚拟机 的信息。 第一依据可以包括物理机的特性、 物理机上运行的虚拟机 的应用特性、 虚拟机的运行信息或虚拟机的调度约束。  After the source physical machine receives the first negotiation message sent by the central management node, the source physical machine may determine the information of the virtual machine to be migrated on the source physical machine according to the first negotiation message and the first basis. The first basis may include characteristics of the physical machine, application characteristics of the virtual machine running on the physical machine, operational information of the virtual machine, or scheduling constraints of the virtual machine.
S 31 1、源物理机发送第一协商消息的响应消息至中心管理节点, 其中, 第一协商消息的响应消息中携带待迁移虚拟机的信息。  S 31 1. The source physical machine sends a response message of the first negotiation message to the central management node, where the response message of the first negotiation message carries the information of the virtual machine to be migrated.
源物理机确定源物理机上的待迁移虚拟机的信息之后, 源物理 机可将该待迁移虚拟机的信息携带在第一协商消息的响应消息中发 送至中心管理节点, 以使得中心管理节点可根据该待迁移虚拟机的 信息获知源物理机上哪些虚拟机可以迁移。 After the source physical machine determines the information of the virtual machine to be migrated on the source physical machine, the source physics The information about the virtual machine to be migrated may be sent to the central management node in the response message of the first negotiation message, so that the central management node can learn which virtual machines on the source physical machine can be migrated according to the information of the virtual machine to be migrated.
可选的, 第一协商消息的响应消息中携带的待迁移虚拟机的信 息可以包括待迁移虚拟机的规格、 待迁移虚拟机的调度约束及待迁 移虚拟机的实时资源占用信息。  Optionally, the information about the virtual machine to be migrated carried in the response message of the first negotiation message may include the specification of the virtual machine to be migrated, the scheduling constraint of the virtual machine to be migrated, and the real-time resource occupation information of the virtual machine to be migrated.
进一步地, 待迁移虚拟机的规格可以包括待迁移虚拟机的型号 等; 待迁移虚拟机的调度约束可以包括待迁移虚拟机与其他虚拟机 之间是否违反互斥性等, 如某些虚拟机不能同时运行在同一台物理 机上; 待迁移虚拟机的实时资源占用信息可以包括待迁移虚拟机的 Further, the specifications of the virtual machine to be migrated may include the model of the virtual machine to be migrated, etc. The scheduling constraint of the virtual machine to be migrated may include whether the virtual machine to be migrated and other virtual machines violate the mutual exclusion, such as some virtual machines. You cannot run the same physical machine at the same time. The real-time resource usage information of the VM to be migrated can include the VM to be migrated.
CPU , 内存、 网络资源的当前利用率等。 CPU, memory, current utilization of network resources, etc.
需要说明的是, 上述步骤 309 - 31 1 也可以在步骤 306之前, 或 者与步骤 306 - 308 同时执行。  It should be noted that the above steps 309 - 31 1 may also be performed before step 306 or concurrently with steps 306 - 308.
5 31 2、 中心管理节点向目标物理机发送第四协商消息, 第四协 商消, 携带源物理机确定的待迁移虚拟机的信息。  The central management node sends a fourth negotiation message to the target physical machine, and the fourth negotiation message is used to carry the information of the virtual machine to be migrated determined by the source physical machine.
中心管理节点获取到源物理机上的待迁移虚拟机的信息之后, 中心管理节点可向目标物理机发送第四协商消息, 以用于询问 目标 物理机是否允许接受该待迁移虚拟机, 其中, 第四协商消息携带源 物理机确定的待迁移虚拟机的信息。  After the central management node obtains the information about the virtual machine to be migrated on the source physical machine, the central management node may send a fourth negotiation message to the target physical machine to query whether the target physical machine is allowed to accept the virtual machine to be migrated, where The four negotiation messages carry information about the virtual machine to be migrated determined by the source physical machine.
5 31 3、 目标物理机发送第四协商消息的响应消息至中心管理节 点, 第四协商消息的响应消息携带目标物理机接受的待迁移虚拟机 的信息。  5 31 3. The target physical machine sends a response message of the fourth negotiation message to the central management node, and the response message of the fourth negotiation message carries the information of the virtual machine to be migrated accepted by the target physical machine.
目标物理机接收到中心管理节点发送的第四协商消息之后, 目 标物理机可根据第二根据确定其是否可以接受该待迁移虚拟机, 并 将其允许接受的待迁移虚拟机的信息携带在第四协商消息的响应消 息中发送至中心管理节点, 以使中心管理节点可根据第四协商消息 的响应消息, 确定目标物理机允许接受该待迁移虚拟机中的哪些虚 拟机。  After the target physical machine receives the fourth negotiation message sent by the central management node, the target physical machine may determine whether it can accept the virtual machine to be migrated according to the second basis, and carry the information of the virtual machine to be migrated that is allowed to be accepted. The response message of the four negotiation messages is sent to the central management node, so that the central management node can determine, according to the response message of the fourth negotiation message, which virtual machines in the virtual machine to be migrated are allowed to be accepted by the target physical machine.
可选的, 第四协商消息的响应消息中携带的目标物理机允许接 受的待迁移虚拟机的信息可以包括目标物理机允许接受的待迁移虚 拟机的规格、 目标物理机允许接受的待迁移虚拟机的调度约束及目 标物理机允许接受的待迁移虚拟机的实时资源占用信息。 Optionally, the target physical machine carried in the response message of the fourth negotiation message is allowed to be connected. The information of the virtual machine to be migrated may include the specification of the virtual machine to be migrated that the target physical machine allows, the scheduling constraint of the virtual machine to be migrated that the target physical machine allows, and the real-time resource of the virtual machine to be migrated that the target physical machine allows to accept. Occupy information.
进一步地, 目标物理机允许接受的待迁移虚拟机的规格可以包 括目标物理机允许接受的待迁移虚拟机的型号等; 目标物理机允许 接受的待迁移虚拟机的调度约束可以包括目标物理机允许接受的待 迁移虚拟机与其他虚拟机之间是否违反互斥性等, 如某些虚拟机不 能同时运行在同一台物理机上; 目标物理机允许接受的待迁移虚拟 机的实时资源占用信息可以包括目标物理机允许接受的待迁移虚拟 机的 CPU、 内存、 网络资源的当前利用率等。  Further, the specification of the virtual machine to be migrated that the target physical machine allows to accept may include the model of the virtual machine to be migrated allowed by the target physical machine, and the like; the scheduling constraint of the virtual machine to be migrated that the target physical machine allows to accept may include the target physical machine allowed Whether the virtual machine to be migrated and the other virtual machines are mutually exclusive, such as some virtual machines cannot run on the same physical machine at the same time; the real-time resource occupation information of the virtual machine to be migrated that the target physical machine allows to accept may include The target physical machine allows the CPU, memory, and current utilization of network resources of the virtual machine to be migrated to be accepted.
S314、 中心管理节点根据第四协商消息的响应消息, 将目标物 理机允许接受的待迁移虚拟机从源物理机迁移至目标物理机。  S314. The central management node migrates the virtual machine to be migrated that the target physical machine allows to be transferred from the source physical machine to the target physical machine according to the response message of the fourth negotiation message.
中心管理节点获知源物理机上的待迁移虚拟机的信息, 及目标 物理机允许接受的待迁移虚拟机的信息后, 中心管理节点将目标物 理机允许接受的待迁移虚拟机从源虚拟机迁移到目标物理机。  After the central management node knows the information about the virtual machine to be migrated on the source physical machine and the information about the virtual machine to be migrated that the target physical machine allows, the central management node migrates the virtual machine to be migrated that the target physical machine allows to be migrated from the source virtual machine to the source virtual machine. Target physical machine.
可选的, 若源物理机上的虚拟机被完全迁移到目标物理机, 中 心管理节点则可对源物理机进行下电操作, 从而达到节能的目 的。  Optionally, if the virtual machine on the source physical machine is completely migrated to the target physical machine, the central management node can power off the source physical machine to achieve energy saving.
可选的, 中心管理节点可以通过 HTTP ( Hyper Text Transport Protocol ,超文本传输协议 )、 WAP( Wireless Application Protocol, 无线应用协议) 等方式发送第一协商消息、 第二协商消息、 第三协 商消息、 第四协商消息或第五协商消息。  Optionally, the central management node may send the first negotiation message, the second negotiation message, the third negotiation message, and the like by using a Hyper Text Transport Protocol (HTTP) or a WAP (Wireless Application Protocol). The fourth negotiation message or the fifth negotiation message.
特别的, 目标物理机可接受源物理机上的全部待迁移虚拟机, 也可只接受源物理机上的全部待迁移虚拟机。 具体的, 目标物理机 接受源物理机上的待迁移虚拟机的数量可根据目标物理机自身的资 源信息及待迁移虚拟机的调度约束来确定, 本发明不做限制。  In particular, the target physical machine can accept all the virtual machines to be migrated on the source physical machine, or only all the virtual machines to be migrated on the source physical machine. Specifically, the target physical machine accepts the number of the virtual machines to be migrated on the source physical machine according to the resource information of the target physical machine and the scheduling constraints of the virtual machine to be migrated, and the invention is not limited.
需要说明的是, 若有多台轻载物理机允许下电时, 即有多台源 物理机, 中心管理节点可以以一次选择一台源物理机的方式迁移源 物理机上运行的虚拟机及下电源物理机, 也可以以一次性选择全部 源物理机的方式迁移源物理机上运行的虚拟机及下电源物理机, 本 发明不做限制。 It should be noted that if multiple light-loaded physical machines are allowed to be powered off, that is, if there are multiple source physical machines, the central management node can migrate the virtual machines running on the source physical machine and the next one by selecting one source physical machine at a time. The power physical machine can also migrate the virtual machine running on the source physical machine and the physical machine under the power source in a way that all the source physical machines are selected at one time. The invention is not limited.
相应的, 若有多台重载物理机允许减负时, 即有多台源物理机, 中心管理节点可以以一次选择一台源物理机的方式迁移源物理机上 运行的虚拟机, 也可以以一次性选择全部源物理机的方式迁移源物 理机上运行的虚拟机, 本发明不做限制。  Correspondingly, if there are multiple heavy-duty physical machines that allow for the reduction of the load, that is, there are multiple source physical machines, the central management node can migrate the virtual machines running on the source physical machine in a manner of selecting one source physical machine at a time, or once. The virtual machine running on the source physical machine is migrated in a manner of selecting all the source physical machines, and the present invention is not limited.
本发明实施例提供的资源调度方法, 中心管理节点通过与物理 机协商决策资源调度, 从而可减轻中心管理节点需收集物理机上的 虚拟机的信息的负担, 避免了现有技术中中心管理节点的瓶颈问题, 进而支撑大规模的物理机集群。  According to the resource scheduling method provided by the embodiment of the present invention, the central management node negotiates resource scheduling by negotiating with the physical machine, thereby reducing the burden on the central management node to collect information of the virtual machine on the physical machine, and avoiding the central management node in the prior art. Bottlenecks, which in turn support large-scale physical machine clusters.
本发明实施例提供一种资源调度方法, 通过根据物理机集群的 物理机的信息, 确定虚拟机迁移操作的源物理机和目标物理机后, 向源物理机发送第一协商消息, 并接收源物理机发送的第一协商消 息的响应消息, 第一协商消息的响应消息携带源物理机确定的待迁 移虚拟机的信息, 以及根据源物理机确定的待迁移虚拟机的信息, 将待迁移虚拟机从源物理机迁移至目标物理机。 通过该方案, 由于 中心管理节点能够判断出虚拟机迁移的源物理机和目标物理机, 并 分别与源物理机和目标物理机进行协商, 以确定源物理机上哪些虚 拟机需要迁移, 及哪些目标物理机可以接受源虚拟机上的待迁移的 虚拟机, 从而最终通过与源物理机和目标物理机协商的结果进行物 理机集群的资源调度, 进而减轻中心管理节点的需要收集大量物理 机上的虚拟机信息的负担。  The embodiment of the present invention provides a resource scheduling method, after determining a source physical machine and a target physical machine of a virtual machine migration operation according to the information of the physical machine of the physical machine cluster, sending a first negotiation message to the source physical machine, and receiving the source The response message of the first negotiation message sent by the physical machine, the response message of the first negotiation message carries the information of the virtual machine to be migrated determined by the source physical machine, and the information of the virtual machine to be migrated determined according to the source physical machine, and the virtual to be migrated The machine migrates from the source physical machine to the target physical machine. Through this scheme, the central management node can determine the source physical machine and the target physical machine of the virtual machine migration, and negotiate with the source physical machine and the target physical machine respectively to determine which virtual machines on the source physical machine need to be migrated, and which targets The physical machine can accept the virtual machine to be migrated on the source virtual machine, and finally perform resource scheduling of the physical machine cluster through the result of negotiation with the source physical machine and the target physical machine, thereby alleviating the need of the central management node to collect virtual on a large number of physical machines. The burden of machine information.
实施例三  Embodiment 3
如图 5 所示, 本发明实施例提供一种中心管理节点 1 , 该中心 管理节点 1 可以包括:  As shown in FIG. 5, an embodiment of the present invention provides a central management node 1 , which may include:
确定单元 1 0 , 用于根据物理机集群的物理机的信息, 确定虚拟 机迁移操作的源物理机和目标物理机。  The determining unit 1 0 is configured to determine the source physical machine and the target physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster.
发送单元 1 1 , 用于向所述确定单元 1 0 确定的所述源物理机发 送第一协商消息。  The sending unit 1 1 is configured to send a first negotiation message to the source physical machine determined by the determining unit 10.
接收单元 1 2 , 用于接收所述源物理机发送的第一协商消息的响 应消息, 所述第一协商消息的响应消息携带所述源物理机确定的待 迁移虚拟机的信息。 The receiving unit 1 2 is configured to receive the first negotiation message sent by the source physical machine The response message of the first negotiation message carries the information of the virtual machine to be migrated determined by the source physical machine.
迁移单元 1 3 , 用于根据所述接收单元 1 2 接收的所述源物理机 确定的待迁移虚拟机的信息, 将所述待迁移虚拟机从所述源物理机 迁移至所述目标物理机。  The migration unit 13 is configured to migrate the virtual machine to be migrated from the source physical machine to the target physical machine according to the information about the virtual machine to be migrated determined by the source physical machine received by the receiving unit 12 .
可选的, 所述确定单元 1 0 , 具体用于根据所述物理机集群的物 理机的信息, 确定所述物理机集群中的轻载物理机, 并选择允许下 电操作的轻载物理机作为所述源物理机, 以及所述发送单元 1 1 , 还 用于向所述确定单元 1 0 确定的所述物理机集群中的轻载物理机发 送第二协商消息, 所述第二协商消息用于询问所述物理机集群中的 轻载物理机是否允许进行下电操作。。  Optionally, the determining unit 10 is configured to determine, according to information about the physical machine of the physical machine cluster, a light-load physical machine in the physical machine cluster, and select a light-load physical machine that is allowed to be powered off. The source physical machine, and the sending unit 1 1 is further configured to send, to the light-loading physical machine in the physical machine cluster determined by the determining unit 10, a second negotiation message, where the second negotiation message is sent It is used to query whether the light-load physical machine in the physical machine cluster allows the power-off operation. .
可选的, 所述确定单元 1 0 , 具体用于根据所述物理机集群的物 理机的信息, 确定所述物理机集群中的重载物理机, 并选择允许减 负操作的重载物理机作为所述源物理机, 以及所述发送单元 1 1 , 还 用于向所述确定单元 1 0 确定的所述物理机集群中的重载物理机发 送第三协商消息, 所述第三协商消息用于询问所述物理机集群中的 重载物理机是否允许进行减负操作。  Optionally, the determining unit 10 is specifically configured to determine, according to information about a physical machine of the physical machine cluster, a heavy-duty physical machine in the physical machine cluster, and select a heavy-duty physical machine that allows a reduced-off operation as The source physical machine, and the sending unit 1 1 is further configured to send a third negotiation message to the reloading physical machine in the physical machine cluster determined by the determining unit 10, where the third negotiation message is used. It is asked whether the heavy-duty physical machine in the physical machine cluster is allowed to perform the off-duty operation.
可选的,在所述迁移单元 1 3将所述待迁移虚拟机从所述源物理 机迁移至所述目标物理机之前:  Optionally, before the migration unit 13 migrates the virtual machine to be migrated from the source physical machine to the target physical machine:
所述发送单元 1 1 , 还用于向所述目标物理机发送第四协商消 息, 所述第四协商消息携带所述源物理机确定的待迁移虚拟机的信 息, 以及所述接收单元 1 2 , 还用于接收所述目标物理机发送的第四 协商消息的响应消息, 所述第四协商消息的响应消息携带所述目标 物理机接受的待迁移虚拟机的信息; 相应地, 所述迁移单元 1 3 , 具 体用于根据所述接收单元 1 2接收的所述第四协商消息的响应消息, 将所述目标物理机接受的待迁移虚拟机从所述源物理机迁移到所述 目标物理机。  The sending unit 1 1 is further configured to send a fourth negotiation message to the target physical machine, where the fourth negotiation message carries information about the virtual machine to be migrated determined by the source physical machine, and the receiving unit 12 And a response message of the fourth negotiation message sent by the target physical machine, where the response message of the fourth negotiation message carries information about the virtual machine to be migrated accepted by the target physical machine; correspondingly, the migration The unit 1 3 is specifically configured to migrate the virtual machine to be migrated accepted by the target physical machine from the source physical machine to the target physics according to the response message of the fourth negotiation message received by the receiving unit 12 machine.
可选的, 所述确定单元 1 0 , 具体用于根据根据所述物理机集群 的物理机的信息, 选择第一目标物理机, 并选择所述第一目标物理 机中接受虚拟机迁入的物理机作为所述目标物理机, 以及所述发送 单元 11, 还用于向所述确定单元 10 确定的所述第一目标物理机发 送第五协商消息, 所述第五协商消息用于询问所述第一目标物理机 是否接受虚拟机迁入。 Optionally, the determining unit 10 is specifically configured to: select, according to information about a physical machine of the physical machine cluster, a first target physical machine, and select the first target physical And receiving, by the sending unit, the physical machine that the virtual machine is in the virtual machine, and the sending unit 11 is further configured to send a fifth negotiation message to the first target physical machine that is determined by the determining unit 10, where The fifth negotiation message is used to query whether the first target physical machine accepts virtual machine migration.
所述确定单元 10, 还用于在选择第一目标物理机之前, 上电至 少一台物理机, 并将上电的所述至少一台物理机作为所述第一目标 物理机。 述目标物理机, 还用于对所述源物理机进行下电操作。  The determining unit 10 is further configured to: power on at least one physical machine before selecting the first target physical machine, and use the at least one physical machine that is powered on as the first target physical machine. The target physical machine is further configured to perform a power-off operation on the source physical machine.
所述接收单元 12, 还用于获取所述物理机集群的物理机的实时 资源占用信息, 或者获取所述物理机集群的物理机发送的资源调度 请求消息, 所述资源调度请求消息由轻载或重载物理机发送, 以及 所述确定单元 10, 具体用于根据所述接收单元 12 获取的所述物理 机集群的物理机的实时资源占用信息或者所述资源调度请求消息, 确定所述源物理机和所述目标物理机。  The receiving unit 12 is further configured to acquire real-time resource occupation information of a physical machine of the physical machine cluster, or obtain a resource scheduling request message sent by a physical machine of the physical machine cluster, where the resource scheduling request message is lightly loaded. Or the overloaded physical machine is sent, and the determining unit 10 is configured to determine the source according to the real-time resource occupation information of the physical machine of the physical machine cluster acquired by the receiving unit 12 or the resource scheduling request message. a physical machine and the target physical machine.
可选的, 本发明实施例提供的中心管理节点可以包括物理机、 虚 拟机 、 ARM ( Advanced reduced instruction set computer Machines , 高级精简指令集计算机平台 )、 DSP ( Digital Signal Processing, 数字信号处理) 平台、 嵌入式系统及单片机。  Optionally, the central management node provided by the embodiment of the present invention may include a physical machine, a virtual machine, an ARM (Advanced reduced instruction set computer machines), a DSP (Digital Signal Processing) platform, Embedded systems and microcontrollers.
本发明实施例提供一种中心管理节点, 该中心管理节点根据物 理机集群的物理机的信息, 确定虚拟机迁移操作的源物理机和目标 物理机后, 该中心管理节点向源物理机发送第一协商消息, 并接收 源物理机发送的第一协商消息的响应消息, 第一协商消息的响应消 息携带源物理机确定的待迁移虚拟机的信息, 以及该中心管理节点 根据源物理机确定的待迁移虚拟机的信息, 将待迁移虚拟机从源物 理机迁移至目标物理机。 通过该方案, 由于中心管理节点能够判断 出虚拟机迁移的源物理机和目标物理机, 并分别与源物理机和目标 物理机进行协商, 以确定源物理机上哪些虚拟机需要迁移, 及哪些 目标物理机可以接受源虚拟机上的待迁移的虚拟机, 从而最终通过 与源物理机和目标物理机协商的结果进行物理机集群的资源调度, 进而减轻中心管理节点的需要收集大量物理机上的虚拟机信息的负 担。 The embodiment of the present invention provides a central management node. After the central management node determines the source physical machine and the target physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster, the central management node sends the first physical management node to the source physical machine. a negotiation message, and receiving a response message of the first negotiation message sent by the source physical machine, where the response message of the first negotiation message carries information about the virtual machine to be migrated determined by the source physical machine, and the central management node determines according to the source physical machine The information of the virtual machine to be migrated migrates the virtual machine to be migrated from the source physical machine to the target physical machine. Through this scheme, the central management node can determine the source physical machine and the target physical machine of the virtual machine migration, and negotiate with the source physical machine and the target physical machine respectively to determine which virtual machines on the source physical machine need to be migrated, and which targets The physical machine can accept the virtual machine to be migrated on the source virtual machine, and finally pass The result of negotiation with the source physical machine and the target physical machine performs resource scheduling of the physical machine cluster, thereby reducing the burden on the central management node to collect virtual machine information on a large number of physical machines.
如图 6 所示, 本发明实施例提供一种物理机 2 , 该物理机 2 可 以包括:  As shown in FIG. 6, an embodiment of the present invention provides a physical machine 2, which may include:
接收单元 2 0 , 用于接收中心管理节点发送的第一协商消息。 发送单元 2 1 , 用于向所述中心管理节点发送第一协商消息的响 应消息, 所述第一协商消息的响应消息携带待迁移虚拟机的信息, 以使得所述中心管理节点根据所述待迁移虚拟机的信息对所述待迁 移虚拟机进行迁移。  The receiving unit 2 0 is configured to receive a first negotiation message sent by the central management node. a sending unit 2 1 , configured to send a response message of the first negotiation message to the central management node, where the response message of the first negotiation message carries information of the virtual machine to be migrated, so that the central management node is configured according to the The information of the migrated virtual machine migrates the virtual machine to be migrated.
可选的, 如图 7所示, 本发明实施例提供的物理机 2还包括: 确定单元 2 2 , 用于根据所述接收单元 2 0接收的所述第一协商 消息和第一依据, 确定所述待迁移虚拟机的信息, 其中, 所述第一 依据包括物理机的特性、 物理机上运行的虚拟机的应用特性、 虚拟 机的运行信息或虚拟机的调度约束。  Optionally, as shown in FIG. 7, the physical machine 2 provided by the embodiment of the present invention further includes: a determining unit 2 2, configured to determine, according to the first negotiation message and the first basis received by the receiving unit 20 The information about the virtual machine to be migrated, wherein the first basis includes characteristics of the physical machine, application characteristics of the virtual machine running on the physical machine, operation information of the virtual machine, or scheduling constraints of the virtual machine.
可选的, 所述发送单元 2 1 , 还用于在所述接收单元 2 0接收中 心管理节点发送的第一协商消息之前, 向所述中心管理节点发送资 源调度请求消息或者自身的资源占用信息。  Optionally, the sending unit 2 1 is further configured to: before the receiving unit 20 receives the first negotiation message sent by the central management node, send a resource scheduling request message or its own resource occupation information to the central management node. .
可选的, 本发明实施例提供的物理机 2可以包括实体计算机。 本发明实施例提供一种物理机, 该物理机接收中心管理节点发 送的第一协商消息, 并向中心管理节点发送第一协商消息的响应消 息, 第一协商消息的响应消息携带待迁移虚拟机的信息, 以使得中 心管理节点根据待迁移虚拟机的信 , ^对待迁移虚拟机进行迁移。 通 过该方案, 由于物理机能够在接收到中心管理节点发送的第一协商 消息后返回第一协商消息的响应消息, 并在第一协商消息的响应消 息中携带物理机上需迁移的虚拟机的信息, 从而使得中心管理节点 能够根据物理机返回的第一协商消 , 的响应消息进行物理机集群的 资源调度, 进而减轻中心管理节点的需要收集大量物理机上的虚拟 机信息的负担。 实施例四 Optionally, the physical machine 2 provided by the embodiment of the present invention may include a physical computer. An embodiment of the present invention provides a physical machine, where the physical machine receives a first negotiation message sent by a central management node, and sends a response message of the first negotiation message to the central management node, where the response message of the first negotiation message carries the virtual machine to be migrated. The information is such that the central management node migrates the migrated virtual machine according to the letter of the virtual machine to be migrated. With the solution, the physical machine can return the response message of the first negotiation message after receiving the first negotiation message sent by the central management node, and carry the information of the virtual machine to be migrated on the physical machine in the response message of the first negotiation message. Therefore, the central management node can perform resource scheduling of the physical machine cluster according to the response message of the first negotiation cancellation returned by the physical machine, thereby reducing the burden of the central management node for collecting virtual machine information on a large number of physical machines. Embodiment 4
如图 8 所示, 为本发明实施例提供的中心管理节点的结构组成 示意图, 本发明实施例的中心管理节点可以包括处理器 14、 存储器 15、 系统总线 16和通信接口 17。 处理器 14、 存储器 15和通信接口 17之间通过系统总线 16连接并完成相互间的通信。  As shown in FIG. 8, a schematic structural diagram of a central management node provided by an embodiment of the present invention may include a processor 14, a memory 15, a system bus 16, and a communication interface 17. The processor 14, the memory 15 and the communication interface 17 are connected by the system bus 16 and communicate with each other.
处理器 14可能为单核或多核中央处理单元,或者为特定集成电 路, 或者为被配置成实施本发明实施例的一个或多个集成电路。  Processor 14 may be a single core or multi-core central processing unit, or a particular integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention.
存储器 15 可以为高速 RAM 存储器, 也可以为非易失性存储器 ( non-volat i le memory ), 例如至少一个磁盘存储器。  The memory 15 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
存储器 15用于存储计算机执行指令。 具体的, 计算机执行指令 中可以包括程序代码。  The memory 15 is used to store computer execution instructions. Specifically, the program code may be included in the computer execution instruction.
当中心管理节点运行时, 处理器 14运行计算机执行指令, 可以 执行图 2或图 4任意之一所述的方法流程, 具体包括:  When the central management node is running, the processor 14 executes the computer execution instruction, and may execute the method flow described in any one of FIG. 2 or FIG. 4, specifically including:
所述处理器 14, 用于根据物理机集群的物理机的信息, 确定虚 拟机迁移操作的源物理机和目标物理机, 并通过所述系统总线 16和 所述通信接口 17向所述源物理机发送第一协商消息, 且通过所述系 统总线 16 和所述通信接口 17接收所述源物理机发送的第一协商消 息的响应消息, 所述第一协商消息的响应消息携带所述源物理机确 定的待迁移虚拟机的信息, 以及所述处理器 14, 用于根据所述源物 理机确定的待迁移虚拟机的信息, 将所述待迁移虚拟机从所述源物 理机迁移至所述目标物理机, 所述存储器 15, 可用于存储物理机集 群的物理机的信息的程序代码、 第一协商消息的程序代码、 第一协 商消息的响应消息的程序代码, 以及控制所述处理器 14完成上述步 骤的计算机指令, 从而使得所述处理器 14通过执行上述计算机指令 并调用上述各个程序代码完成上述步骤。  The processor 14 is configured to determine, according to information of a physical machine of the physical machine cluster, a source physical machine and a target physical machine of the virtual machine migration operation, and send the source physical to the source through the system bus 16 and the communication interface 17 Receiving a first negotiation message, and receiving, by the system bus 16 and the communication interface 17, a response message of the first negotiation message sent by the source physical machine, where the response message of the first negotiation message carries the source physics The information about the virtual machine to be migrated is determined by the machine, and the processor 14 is configured to migrate the virtual machine to be migrated from the source physical machine to the information according to the information of the virtual machine to be migrated determined by the source physical machine a target physical machine, the memory 15, a program code for storing information of a physical machine of a physical machine cluster, a program code of a first negotiation message, a program code of a response message of a first negotiation message, and controlling the processor 14 computer instructions to complete the above steps, thereby causing the processor 14 to execute the above computer instructions and invoke the various program generations described above The above steps.
可选的, 所述处理器 14, 具体用于根据所述物理机集群的物理 机的信息, 确定所述物理机集群中的轻载物理机, 并通过所述系统 总线 16 和所述通信接口 17 向所述物理机集群中的轻载物理机发送 第二协商消息, 所述第二协商消息用于询问所述物理机集群中的轻 载物理机是否允许进行下电操作, 以及选择允许下电操作的轻载物 理机作为所述源物理机。 Optionally, the processor 14 is specifically configured to determine, according to information about a physical machine of the physical machine cluster, a light-load physical machine in the physical machine cluster, and pass the system bus 16 and the communication interface. 17 sending a second negotiation message to the light-loading physical machine in the physical machine cluster, where the second negotiation message is used to query the light in the physical machine cluster Whether the physical carrier is allowed to perform the power-off operation, and the light-load physical machine that allows the power-off operation to be selected as the source physical machine.
可选的, 所述处理器 14, 具体用于根据所述物理机集群的物理 机的信息, 确定所述物理机集群中的重载物理机, 并通过所述系统 总线 16 和所述通信接口 17 向所述物理机集群中的重载物理机发送 第三协商消息, 所述第三协商消息用于询问所述物理机集群中的重 载物理机是否允许进行减负操作, 以及选择允许减负操作的重载物 理机作为所述源物理机。 标物理机之前:  Optionally, the processor 14 is specifically configured to determine, according to information about a physical machine of the physical machine cluster, a heavy-duty physical machine in the physical machine cluster, and pass the system bus 16 and the communication interface. 17 sending a third negotiation message to the overloaded physical machine in the physical machine cluster, where the third negotiation message is used to query whether the overloaded physical machine in the physical machine cluster is allowed to perform the offload operation, and select the allowable offload operation. The overloaded physical machine acts as the source physical machine. Before the standard physical machine:
所述处理器 14, 还用于通过所述系统总线 16 和所述通信接口 17向所述目标物理机发送第四协商消息, 所述第四协商消息携带所 述源物理机确定的待迁移虚拟机的信息, 并通过所述系统总线 16和 所述通信接口 17 接收所述目标物理机发送的第四协商消息的响应 消息, 所述第四协商消息的响应消息携带所述目标物理机接受的待 迁移虚拟机的信息; 相应地, 所述处理器 14, 具体用于根据所述第 四协商消息的响应消息, 将所述目标物理机接受的待迁移虚拟机从 所述源物理机迁移到所述目标物理机。  The processor 14 is further configured to send, by using the system bus 16 and the communication interface 17, a fourth negotiation message to the target physical machine, where the fourth negotiation message carries the virtual to be migrated determined by the source physical machine. Receiving, by the system bus 16 and the communication interface 17, a response message of the fourth negotiation message sent by the target physical machine, where the response message of the fourth negotiation message carries the target physical machine Correspondingly, the processor 14 is configured to: migrate, according to the response message of the fourth negotiation message, the virtual machine to be migrated accepted by the target physical machine from the source physical machine to The target physical machine.
可选的, 所述处理器, 具体用于根据根据所述物理机集群的物 理机的信息, 选择第一目标物理机, 并通过所述系统总线 16和所述 通信接口 17向所述第一目标物理机发送第五协商消息, 所述第五协 商消息用于询问所述第一目标物理机是否接受虚拟机迁入, 以及选 择所述第一目标物理机中接受虚拟机迁入的物理机作为所述目标物 理机。  Optionally, the processor is specifically configured to: select, according to information about a physical machine according to the physical machine cluster, a first target physical machine, and send the first to the first through the system bus 16 and the communication interface 17 The target physical machine sends a fifth negotiation message, where the fifth negotiation message is used to query whether the first target physical machine accepts virtual machine migration, and selects a physical machine that accepts the virtual machine to move in the first target physical machine. As the target physical machine.
可选的, 所述处理器 14, 还用于在选择第一目标物理机之前, 上电至少一台物理机, 并将上电的所述至少一台物理机作为所述第 一目标物理机。  Optionally, the processor 14 is further configured to: power on at least one physical machine before selecting the first target physical machine, and use the at least one physical machine that is powered on as the first target physical machine .
可选的, 所述处理器 14, 若所述源物理机上的虚拟机被完全迁 移到所述目标物理机, 还用于对所述源物理机进行下电操作。 可选的, 所述处理器 1 4 , 还用于通过所述系统总线 1 6 和所述 通信接口 1 7获取所述物理机集群的物理机的实时资源占用信息, 或 者获取所述物理机集群的物理机发送的资源调度请求消息, 所述资 源调度请求消息由轻载或重载物理机发送; 以及所述处理器 1 4 , 具 体用于根据所述物理机集群的物理机的实时资源占用信息或者所述 资源调度请求消息, 确定所述源物理机和所述目标物理机。 Optionally, the processor 14 is configured to perform a power-off operation on the source physical machine if the virtual machine on the source physical machine is completely migrated to the target physical machine. Optionally, the processor 14 is further configured to acquire real-time resource occupation information of the physical machine of the physical machine cluster by using the system bus 16 and the communication interface 17, or obtain the physical machine cluster. a resource scheduling request message sent by the physical machine, where the resource scheduling request message is sent by a light load or a reloading physical machine; and the processor 14 is specifically configured to use real-time resource occupation of the physical machine according to the physical machine cluster The information or the resource scheduling request message determines the source physical machine and the target physical machine.
可选的, 本发明实施例提供的中心管理节点可以包括物理机、 虚拟机、 ARM , DS P平台、 嵌入式系统及单片机。  Optionally, the central management node provided by the embodiment of the present invention may include a physical machine, a virtual machine, an ARM, a DS P platform, an embedded system, and a single chip.
本发明实施例提供一种中心管理节点, 该中心管理节点根据物 理机集群的物理机的信息, 确定虚拟机迁移操作的源物理机和目标 物理机后, 该中心管理节点向源物理机发送第一协商消息, 并接收 源物理机发送的第一协商消息的响应消息, 第一协商消息的响应消 息携带源物理机确定的待迁移虚拟机的信息, 以及该中心管理节点 根据源物理机确定的待迁移虚拟机的信息, 将待迁移虚拟机从源物 理机迁移至目标物理机。 通过该方案, 由于中心管理节点能够判断 出虚拟机迁移的源物理机和目标物理机, 并分别与源物理机和目标 物理机进行协商, 以确定源物理机上哪些虚拟机需要迁移, 及哪些 目标物理机可以接受源虚拟机上的待迁移的虚拟机, 从而最终通过 与源物理机和目标物理机协商的结果进行物理机集群的资源调度, 进而减轻中心管理节点的需要收集大量物理机上的虚拟机信息的负 担。  The embodiment of the present invention provides a central management node. After the central management node determines the source physical machine and the target physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster, the central management node sends the first physical management node to the source physical machine. a negotiation message, and receiving a response message of the first negotiation message sent by the source physical machine, where the response message of the first negotiation message carries information about the virtual machine to be migrated determined by the source physical machine, and the central management node determines according to the source physical machine The information of the virtual machine to be migrated migrates the virtual machine to be migrated from the source physical machine to the target physical machine. Through this scheme, the central management node can determine the source physical machine and the target physical machine of the virtual machine migration, and negotiate with the source physical machine and the target physical machine respectively to determine which virtual machines on the source physical machine need to be migrated, and which targets The physical machine can accept the virtual machine to be migrated on the source virtual machine, and finally perform resource scheduling of the physical machine cluster through the result of negotiation with the source physical machine and the target physical machine, thereby alleviating the need of the central management node to collect virtual on a large number of physical machines. The burden of machine information.
如图 9所示,为本发明实施例提供的物理机的结构组成示意图, 本发明实施例的物理机可以包括处理器 2 3、 存储器 24、 系统总线 25 和通信接口 2 6。 处理器 2 3、 存储器 24 和通信接口 26之间通过 系统总线 25连接并完成相互间的通信。  FIG. 9 is a schematic structural diagram of a physical machine according to an embodiment of the present invention. The physical machine in the embodiment of the present invention may include a processor 23, a memory 24, a system bus 25, and a communication interface 26. The processor 2 3, the memory 24 and the communication interface 26 are connected by the system bus 25 and communicate with each other.
处理器 2 3可能为单核或多核中央处理单元,或者为特定集成电 路, 或者为被配置成实施本发明实施例的一个或多个集成电路。  Processor 23 may be a single core or multi-core central processing unit, or a particular integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention.
存储器 24 可以为高速 RAM存储器, 也可以为非易失性存储器, 例如至少一个磁盘存储器。 存储器 24用于存储计算机执行指令。 具体的, 计算机执行指令 中可以包括程序代码。 The memory 24 can be a high speed RAM memory or a non-volatile memory such as at least one disk memory. The memory 24 is used to store computer execution instructions. Specifically, the program code may be included in the computer execution instruction.
当物理机运行时, 处理器 2 3运行计算机执行指令, 可以执行图 3或图 4任意之一所述的方法流程, 具体包括:  When the physical machine is running, the processor 2 runs the computer to execute the instruction, and the method flow described in any one of FIG. 3 or FIG. 4 may be performed, including:
所述处理器 2 3 , 用于通过所述系统总线 25和所述通信接口 2 6 接收中心管理节点发送的第一协商消息, 并通过所述系统总线 25和 所述通信接口 26 向所述中心管理节点发送第一协商消息的响应消 息, 所述第一协商消息的响应消息携带待迁移虚拟机的信息, 以使 得所述中心管理节点根据所述待迁移虚拟机的信息对所述待迁移虚 拟机进行迁移, 所述存储器 24 可用于存储第一协商消息的程序代 码、 第一协商消息的响应消息的程序代码, 以及控制所述处理器 2 3 完成上述步骤的计算机指令, 从而使得所述处理器 2 3通过执行上述 计算机指令并调用上述各个程序代码完成上述步骤。  The processor 2 3 is configured to receive, by using the system bus 25 and the communication interface 26, a first negotiation message sent by a central management node, and to the center through the system bus 25 and the communication interface 26 The management node sends a response message of the first negotiation message, where the response message of the first negotiation message carries the information of the virtual machine to be migrated, so that the central management node performs the virtual to be migrated according to the information of the virtual machine to be migrated. Performing migration, the memory 24 may be configured to store program code of the first negotiation message, program code of the response message of the first negotiation message, and computer instructions for controlling the processor 23 to complete the above steps, thereby causing the processing The unit 2 3 completes the above steps by executing the above computer instructions and calling the respective program codes described above.
可选的, 所述处理器 2 3 , 用于根据所述存储器 24 中存储的所 述第一协商消息和第一依据, 确定所述待迁移虚拟机的信息, 其中, 所述第一依据包括物理机的特性、 物理机上运行的虚拟机的应用特 性、 虚拟机的运行信息或虚拟机的调度约束。  Optionally, the processor 2 3 is configured to determine information about the virtual machine to be migrated according to the first negotiation message and the first basis stored in the memory 24, where the first basis includes The characteristics of the physical machine, the application characteristics of the virtual machine running on the physical machine, the running information of the virtual machine, or the scheduling constraints of the virtual machine.
可选的, 所述处理器 2 3 , 还用于在接收中心管理节点发送的第 一协商消息之前, 通过所述系统总线 2 5 和所述通信接口 26 向所述 中心管理节点发送资源调度请求消息或者自身的资源占用信息。  Optionally, the processor 23 is further configured to send a resource scheduling request to the central management node by using the system bus 25 and the communication interface 26 before receiving the first negotiation message sent by the central management node. The message or its own resource occupancy information.
可选的, 本发明实施例提供的物理机 2可以包括实体计算机。 本发明实施例提供一种物理机, 该物理机接收中心管理节点发 送的第一协商消息, 并向中心管理节点发送第一协商消息的响应消 息, 第一协商消息的响应消息携带待迁移虚拟机的信息, 以使得中 心管理节点根据待迁移虚拟机的信 , ^对待迁移虚拟机进行迁移。 通 过该方案, 由于物理机能够在接收到中心管理节点发送的第一协商 消息后返回第一协商消息的响应消息, 并在第一协商消息的响应消 息中携带物理机上需迁移的虚拟机的信息, 从而使得中心管理节点 能够根据物理机返回的第一协商消 ,包、的响应消息进行物理机集群的 资源调度, 进而减轻中心管理节点的需要收集大量物理机上的虚拟 机信息的负担。 Optionally, the physical machine 2 provided by the embodiment of the present invention may include a physical computer. An embodiment of the present invention provides a physical machine, where the physical machine receives a first negotiation message sent by a central management node, and sends a response message of the first negotiation message to the central management node, where the response message of the first negotiation message carries the virtual machine to be migrated. The information is such that the central management node migrates the migrated virtual machine according to the letter of the virtual machine to be migrated. With the solution, the physical machine can return the response message of the first negotiation message after receiving the first negotiation message sent by the central management node, and carry the information of the virtual machine to be migrated on the physical machine in the response message of the first negotiation message. So that the central management node can perform physical machine clustering according to the first negotiation cancellation, packet, and response message returned by the physical machine. Resource scheduling, which in turn reduces the burden on the central management node to collect virtual machine information on a large number of physical machines.
实施例五  Embodiment 5
如图 1 0所示, 本发明的实施例提供一种资源调度系统, 包括中 心管理节点、 源物理机和目标物理机, 其中,  As shown in FIG. 10, an embodiment of the present invention provides a resource scheduling system, including a central management node, a source physical machine, and a target physical machine, where
所述中心管理节点, 用于根据物理机集群的物理机的信息, 确 定虚拟机迁移操作的源物理机和目标物理机后, 向所述源物理机发 送第一协商消息, 并接收所述源物理机发送的第一协商消 ,包、的响应 消息, 所述第一协商消,包、的响应消,包、携带所述源物理机确定的待迁 移虚拟机的信息, 以及根据所述源物理机确定的待迁移虚拟机的信 所述源物理机, 用于接收中心管理节点发送的第一协商消 , , 并向所述中心管理节点发送第一协商消息的响应消息;  The central management node is configured to: after determining the source physical machine and the target physical machine of the virtual machine migration operation, according to the information of the physical machine of the physical machine cluster, send a first negotiation message to the source physical machine, and receive the source The first negotiation cancellation, the packet, the response message sent by the physical machine, the first negotiation cancellation, the packet, the response cancellation, the packet, the information of the virtual machine to be migrated determined by the source physical machine, and according to the source The source physical machine determined by the physical machine to be the virtual machine to be migrated is used to receive the first negotiation cancellation sent by the central management node, and send a response message of the first negotiation message to the central management node;
所述目标物理机, 用于接收所述待迁移虚拟机的迁入。  The target physical machine is configured to receive the migration of the virtual machine to be migrated.
可选的, 所述中心管理节点, 具体用于根据所述物理机集群的 物理机的信息, 确定所述物理机集群中的轻载物理机, 并向所述物 理机集群中的轻载物理机发送第二协商消息, 所述第二协商消息用 于询问所述物理机集群中的轻载物理机是否允许进行下电操作, 以 及选择允许下电操作的轻载物理机作为所述源物理机。  Optionally, the central management node is specifically configured to determine, according to the information of the physical machine of the physical machine cluster, the light-load physical machine in the physical machine cluster, and to the light-loaded physical medium in the physical machine cluster The machine sends a second negotiation message, where the second negotiation message is used to query whether the light-loading physical machine in the physical machine cluster is allowed to perform a power-off operation, and select a light-load physical machine that allows the power-off operation to be the source physics. machine.
可选的, 所述中心管理节点, 具体用于根据所述物理机集群的 物理机的信息, 确定所述物理机集群中的重载物理机, 并向所述物 理机集群中的重载物理机发送第三协商消息, 所述第三协商消息用 于询问所述物理机集群中的重载物理机是否允许进行减负操作, 以 及选择允许减负操作的重载物理机作为所述源物理机。  Optionally, the central management node is specifically configured to determine, according to information about the physical machine of the physical machine cluster, the overloaded physical machine in the physical machine cluster, and to the overloaded physical in the physical machine cluster The machine sends a third negotiation message, the third negotiation message is used to query whether the overloaded physical machine in the physical machine cluster allows the offloading operation, and selects the overloaded physical machine that allows the offloading operation to be the source physical machine.
可选的, 所述中心管理节点, 将所述待迁移虚拟机从所述源物 理机迁移至所述目标物理机之前, 还用于向所述目标物理机发送第 四协商消息, 所述第四协商消息携带所述源物理机确定的待迁移虚 拟机的信息, 并接收所述目标物理机发送的第四协商消, 的响应消 息, 所述第四协商消息的响应消息携带所述目标物理机接受的待迁 移虚拟机的信息; 相应地, 所述中心管理节点, 具体用于根据所述 第四协商消息的响应消息, 将所述目标物理机接受的待迁移虚拟机 从所述源物理机迁移到所述目标物理机。 Optionally, the central management node is configured to send a fourth negotiation message to the target physical machine before the virtual machine to be migrated is migrated from the source physical machine to the target physical machine, where the The fourth negotiation message carries the information of the virtual machine to be migrated determined by the source physical machine, and receives a response message of the fourth negotiation cancellation sent by the target physical machine, where the response message of the fourth negotiation message carries the target physical Accepted by the machine Moving the information of the virtual machine; correspondingly, the central management node is configured to: migrate the virtual machine to be migrated accepted by the target physical machine from the source physical machine to the location according to the response message of the fourth negotiation message The target physical machine.
可选的, 所述中心管理节点, 具体用于根据所述物理机集群的 物理机的信息, 选择第一目标物理机, 并向所述第一目标物理机发 送第五协商消息, 所述第五协商消息用于询问所述第一目标物理机 是否接受虚拟机迁入, 以及选择所述第一目标物理机中接受虚拟机 迁入的物理机作为所述目标物理机。  Optionally, the central management node is configured to: select, according to information about a physical machine of the physical machine cluster, a first target physical machine, and send a fifth negotiation message to the first target physical machine, where the The five negotiation message is used to query whether the first target physical machine accepts virtual machine migration, and selects a physical machine in the first target physical machine that accepts the virtual machine to move in as the target physical machine.
可选的, 所述中心管理节点, 在选择第一目标物理机之前, 还 用于上电至少一台物理机, 并将上电的所述至少一台物理机作为所 述第一目标物理机。  Optionally, the central management node is configured to power on at least one physical machine before selecting the first target physical machine, and use the at least one physical machine that is powered on as the first target physical machine. .
可选的, 所述中心管理节点, 若所述源物理机上的虚拟机被完 全迁移到所述目标物理机, 还用于对所述源物理机进行下电操作。  Optionally, the central management node is configured to perform a power-off operation on the source physical machine if the virtual machine on the source physical machine is completely migrated to the target physical machine.
可选的, 所述中心管理节点, 还用于获取所述物理机集群的物 理机的实时资源占用信息, 或者获取所述物理机集群的物理机发送 的资源调度请求消息, 所述资源调度请求消息由轻载或重载物理机 发送; 其中, 所述中心管理节点, 具体用于根据所述物理机集群的 物理机的实时资源占用信息或者所述资源调度请求消息, 确定所述 源物理机和所述目标物理机; 以及所述源物理机, 在接收中心管理 节点发送的第一协商消息之前, 还用于向所述中心管理节点发送资 源调度请求消息。  Optionally, the central management node is further configured to acquire real-time resource occupation information of a physical machine of the physical machine cluster, or obtain a resource scheduling request message sent by a physical machine of the physical machine cluster, where the resource scheduling request is The message is sent by the light load or the overloaded physical machine. The central management node is specifically configured to determine the source physical machine according to the real-time resource occupation information of the physical machine of the physical machine cluster or the resource scheduling request message. And the source physical machine, and the source physical machine, before receiving the first negotiation message sent by the central management node, is further configured to send a resource scheduling request message to the central management node.
可选的, 所述源物理机, 还用于根据所述第一协商消息及第一 依据, 确定所述待迁移虚拟机的信息, 所述第一依据包括包括物理 机的特性、 物理机上运行的虚拟机的应用特性、 虚拟机的运行信息 或虚拟机的调度约束。  Optionally, the source physical machine is further configured to determine, according to the first negotiation message and the first basis, information about the virtual machine to be migrated, where the first basis includes the feature of the physical machine, and runs on the physical machine. The application characteristics of the virtual machine, the running information of the virtual machine, or the scheduling constraints of the virtual machine.
下面以本发明实施例提供的资源调度系统为例,分两个场景(场 景一和场景二) 进一步说明本发明实施例提供的资源调度方法。 具 体的, 本发明实施例提供的资源调度系统可以包括中心管理节点及 物理机, 其中物理机上运行有虚拟机。 场景一: 物理机下电 The resource scheduling system provided by the embodiment of the present invention is taken as an example, and the resource scheduling method provided by the embodiment of the present invention is further described in two scenarios (Scenario 1 and Scene 2). Specifically, the resource scheduling system provided by the embodiment of the present invention may include a central management node and a physical machine, where the virtual machine runs on the physical machine. Scene 1: Powering off the physical machine
如图 11所示, 资源调度系统包括物理机 01、 物理机 02及物理 机 03组成的物理机集群(物理机集群可以包括多个物理机, 此处以 物理机集群包括三台物理机为例); 物理机 01上运行的虚拟机 01; 物理机 02 上运行的虚拟机 02 和虚拟机 03; 物理机 03 上运行的虚 拟机 04; 以及中心管理节点。 其中, 物理机 01、 物理机 02 及物理 机 03上均部署有软件模块, 如分布式代理。  As shown in FIG. 11 , the resource scheduling system includes a physical machine cluster composed of a physical machine 01, a physical machine 02, and a physical machine 03. The physical machine cluster may include multiple physical machines. Here, the physical machine cluster includes three physical machines as an example. ; virtual machine 01 running on physical machine 01; virtual machine 02 and virtual machine 03 running on physical machine 02; virtual machine 04 running on physical machine 03; and central management node. Among them, the physical machine 01, the physical machine 02 and the physical machine 03 are all deployed with software modules, such as distributed agents.
示例性的, 由于物理机 01 及物理机 03上运行的虚拟机较少, 因此, 在实际使用中, 可通过对各个物理机上的虚拟机重新进行调 度以下电物理机 01或物理机 03来节省能耗。 具体步骤可以包括: Exemplarily, since there are fewer virtual machines running on the physical machine 01 and the physical machine 03, in actual use, the following electrophysical machine 01 or physical machine 03 can be saved by rescheduling the virtual machines on the respective physical machines. Energy consumption. Specific steps can include:
( 1 ) 中心管理节点根据 3 台物理机上报的物理机信息, 确定轻 载物理机。 本例中, 中心管理节点发现物理机 01所用内存最小, 迁 移成本最低, 因此, 中心管理节点决定对物理机 01进行下电操作, 即将物理机 01 作为轻载物理机; 中心管理节点可确定除物理机 01 外的其他物理机作为第一目标物理机, 即可确定物理机 02和物理机 03作为第一目标物理机。 (1) The central management node determines the light-loaded physical machine based on the physical machine information reported by the three physical machines. In this example, the central management node finds that the physical machine 01 uses the smallest memory and the lowest migration cost. Therefore, the central management node decides to power off the physical machine 01, that is, the physical machine 01 is used as a light-load physical machine; the central management node can determine The physical machine other than the physical machine 01 serves as the first target physical machine, and the physical machine 02 and the physical machine 03 can be determined as the first target physical machine.
( 2 ) 中心管理节点确定物理机 01 为轻载物理机后, 中心管理 节点向物理机 01 发送第二协商消息, 以用于询问物理机 01 是否允 许进行下电操作, 例如, 若物理机 01允许进行下电操作, 则中心管 理节点选择物理机 01作为源物理机。  (2) After the central management node determines that the physical machine 01 is a light-loaded physical machine, the central management node sends a second negotiation message to the physical machine 01 for inquiring whether the physical machine 01 is allowed to perform the power-off operation, for example, if the physical machine 01 When the power-off operation is allowed, the central management node selects the physical machine 01 as the source physical machine.
( 3 ) 中心管理节点向物理机 01 发送第一协商信息; 并接收物 理机 01返回的第一协商消息的响应消息, 其中, 第一协商消息的响 应消息携带物理机 01 确定的待迁移虚拟机的信息, 如虚拟机 01 的 信息。  (3) The central management node sends the first negotiation information to the physical machine 01; and receives the response message of the first negotiation message returned by the physical machine 01, where the response message of the first negotiation message carries the virtual machine to be migrated determined by the physical machine 01 Information, such as information about virtual machine 01.
( 4 )中心管理节点向物理机 02和物理机 03发送第五协商消息, 以用于询问物理机 02和物理机 03是否允许接收虚拟机迁入, 例如, 若物理机 02拒绝接受虚拟机迁入, 物理机 03 同意接受虚拟机迁入, 则中心管理节点选择物理机 03作为目标物理机。  (4) The central management node sends a fifth negotiation message to the physical machine 02 and the physical machine 03 for inquiring whether the physical machine 02 and the physical machine 03 are allowed to receive the virtual machine to move in, for example, if the physical machine 02 refuses to accept the virtual machine migration. If the physical machine 03 agrees to accept the virtual machine migration, the central management node selects the physical machine 03 as the target physical machine.
( 5 ) 中心管理节点向物理机 03发送第四协商消息, 第四协商 消息携带物理机 01 确定的待迁移虚拟机的信息, 即虚拟机 01 的信 息, 并接收物理机 03发送的第四协商消息的响应消息, 第四协商消 息的响应消息携带物理机 0 3接受的待迁移虚拟机的信息, 如虚拟机 01 的信息。 (5) The central management node sends a fourth negotiation message to the physical machine 03, the fourth negotiation The message carries the information of the virtual machine to be migrated determined by the physical machine 01, that is, the information of the virtual machine 01, and receives the response message of the fourth negotiation message sent by the physical machine 03, and the response message of the fourth negotiation message carries the physical machine 0 3 accepted. Information about the virtual machine to be migrated, such as information about virtual machine 01.
( 6 ) 中心管理节点根据第四协商消息的响应消息, 将物理机 01上运行的虚拟机 01 迁移至物理机 03。  (6) The central management node migrates the virtual machine 01 running on the physical machine 01 to the physical machine 03 according to the response message of the fourth negotiation message.
( 7 ) 中心管理节点对物理机 01 进行下电操作, 以达到节省能 耗的目的。  (7) The central management node powers down the physical machine 01 to save energy.
本发明实施例提供的资源调度系统, 若需对轻载的物理机下电 以节省能耗, 中心管理节点则可通过与物理机协商决策资源调度, 从而可减轻中心管理节点需收集物理机上的虚拟机的信息的负担, 避免了现有技术中中心管理节点的瓶颈问题, 进而支撑大规模的物 理机集群。  In the resource scheduling system provided by the embodiment of the present invention, if the light-loaded physical machine needs to be powered off to save energy, the central management node can negotiate the resource scheduling by negotiating with the physical machine, thereby reducing the central management node to collect the physical machine. The burden of the information of the virtual machine avoids the bottleneck problem of the central management node in the prior art, and further supports the large-scale physical machine cluster.
场景二: 物理机上电  Scenario 2: Powering on the physical machine
如图 1 2所示, 资源调度系统包括物理机 01、 物理机 02及物理 机 03组成的物理机集群(物理机集群可以包括多个物理机, 此处以 物理机集群包括三台物理机为例;); 物理机 02上运行的虚拟机 02和 虚拟机 03 ; 物理机 03上运行的虚拟机 01和虚拟机 04; 以及中心管 理节点。 其中, 物理机 01 为已下电的物理机, 物理机 01、 物理机 02及物理机 0 3上均部署有软件模块, 如分布式代理。  As shown in FIG. 12, the resource scheduling system includes a physical machine cluster composed of a physical machine 01, a physical machine 02, and a physical machine 03. The physical machine cluster may include multiple physical machines. Here, the physical machine cluster includes three physical machines as an example. ;); virtual machine 02 and virtual machine 03 running on physical machine 02; virtual machine 01 and virtual machine 04 running on physical machine 03; and central management node. The physical machine 01 is a physical machine that has been powered off, and the physical machine 01, the physical machine 02, and the physical machine 0 3 are all deployed with software modules, such as distributed agents.
示例性的, 由于物理机 03 上运行的虚拟机较多, 且物理机 03 的资源不能满足这些虚拟机的资源需求, 因此, 在实际使用中, 可 通过上电物理机 01 , 并将物理机 03 上运行的部分虚拟机迁移至物 理机 01来进行虚拟机的均衡及保证应用 Qo S。 具体步骤可以包括: Exemplarily, since there are many virtual machines running on the physical machine 03, and the resources of the physical machine 03 cannot meet the resource requirements of the virtual machines, in actual use, the physical machine 01 can be powered on, and the physical machine can be powered on. 03 Some VMs running on the machine are migrated to the physical machine 01 to balance the virtual machines and ensure the application of Qo S. Specific steps can include:
( 1 ) 中心管理节点根据 3 台物理机上报的物理机信息, 确定重 载物理机。 本例中, 中心管理节点发现物理机 02 和物理机 03 的平 均资源利用率高于预设阔值, 因此, 决定对物理机 02 和物理机 0 3 上运行的虚拟机进行迁移均衡, 即将物理机 02 和物理机 03作为重 载物理机; 中心管理节点可对已下电的物理机 01上电, 并将物理机 01作为第一目标物理机。 (1) The central management node determines the overloaded physical machine based on the physical machine information reported by the three physical machines. In this example, the central management node finds that the average resource utilization of physical machine 02 and physical machine 03 is higher than the preset threshold. Therefore, it is decided to perform migration balancing on the virtual machines running on physical machine 02 and physical machine 0 3, that is, the physical Machine 02 and physical machine 03 act as heavy-duty physical machines; the central management node can power on the powered-off physical machine 01, and the physical machine 01 as the first target physical machine.
( 2 )中心管理节点确定物理机 02和物理机 03为重载物理机后, 中心管理节点向物理机 02 和物理机 03 分别发送第三协商消息, 以 用于询问物理机 02和物理机 03是否允许进行减负操作, 例如, 若 物理机 02 和物理机 03 均允许进行减负操作, 则中心管理节点选择 物理机 02和物理机 03作为源物理机。  (2) After the central management node determines that the physical machine 02 and the physical machine 03 are overloaded physical machines, the central management node sends a third negotiation message to the physical machine 02 and the physical machine 03, respectively, for inquiring the physical machine 02 and the physical machine 03. Whether the off-duty operation is allowed, for example, if both the physical machine 02 and the physical machine 03 allow the off-duty operation, the central management node selects the physical machine 02 and the physical machine 03 as the source physical machine.
( 3 )中心管理节点向物理机 02和物理机 03分别发送第一协商 信息; 并接收物理机 02 和物理机 03分别返回的第一协商消息的响 应消息, 其中, 第一协商消息的响应消息携带物理机 02 和物理机 03确定的待迁移虚拟机的信息, 如物理机 02上运行的虚拟机 02 的 信息和物理机 03上运行的虚拟机 01 的信息。  (3) The central management node sends the first negotiation information to the physical machine 02 and the physical machine 03 respectively; and receives the response message of the first negotiation message respectively returned by the physical machine 02 and the physical machine 03, wherein the response message of the first negotiation message The information of the virtual machine to be migrated determined by the physical machine 02 and the physical machine 03, such as the information of the virtual machine 02 running on the physical machine 02 and the information of the virtual machine 01 running on the physical machine 03.
( 4 ) 中心管理节点向物理机 01 发送第五协商消息, 以用于询 问物理机 01 是否允许接收虚拟机迁入, 例如, 若物理机 01 同意接 受虚拟机迁入, 则中心管理节点选择物理机 01作为目标物理机。  (4) The central management node sends a fifth negotiation message to the physical machine 01 for inquiring whether the physical machine 01 is allowed to receive the virtual machine to move in. For example, if the physical machine 01 agrees to accept the virtual machine to move in, the central management node selects the physical Machine 01 serves as the target physical machine.
可选的, 若物理机集群中还包括其他物理机, 则中心管理节点 也可选择其他轻载的物理机作为目标物理机。  Optionally, if the physical machine cluster includes other physical machines, the central management node may also select other lightly loaded physical machines as the target physical machine.
( 5 ) 中心管理节点向物理机 01 发送第四协商消息, 第四协商 消息携带物理机 02和物理机 03确定的待迁移虚拟机的信息, 即虚 拟机 02的信息和虚拟机 01 的信息, 并接收物理机 01发送的第四协 商消息的响应消息, 第四协商消息的响应消息携带物理机 01接受的 待迁移虚拟机的信息, 如虚拟机 02的信息和虚拟机 01 的信息。  (5) The central management node sends a fourth negotiation message to the physical machine 01, where the fourth negotiation message carries the information of the virtual machine to be migrated determined by the physical machine 02 and the physical machine 03, that is, the information of the virtual machine 02 and the information of the virtual machine 01. And receiving the response message of the fourth negotiation message sent by the physical machine 01, and the response message of the fourth negotiation message carries the information of the virtual machine to be migrated accepted by the physical machine 01, such as the information of the virtual machine 02 and the information of the virtual machine 01.
( 6 ) 中心管理节点根据第四协商消息的响应消息, 将物理机 02 上运行的虚拟机 02 和物理机 0 3 上运行的虚拟机 01 迁移至物理 机 01。  (6) The central management node migrates the virtual machine 02 running on the physical machine 02 and the virtual machine 01 running on the physical machine 0 to the physical machine 01 according to the response message of the fourth negotiation message.
本发明实施例提供的资源调度系统, 若需对重载的物理机进行 减负, 即对重载物理机上运行的虚拟机进行均衡以保证应用 Qo S , 中心管理节点则可通过与物理机协商决策资源调度, 从而可减轻中 心管理节点需收集物理机上的虚拟机的信息的负担, 避免了现有技 术中中心管理节点的瓶颈问题, 进而支撑大规模的物理机集群。 所属领域的技术人员可以清楚地了解到,为描述的方便和简洁, 仅以上述各功能模块的划分进行举例说明, 实际应用中, 可以根据 需要而将上述功能分配由不同的功能模块完成, 即将装置的内部结 构划分成不同的功能模块, 以完成以上描述的全部或者部分功能。 上述描述的系统, 装置和单元的具体工作过程, 可以参考前述方法 实施例中的对应过程, 在此不再赘述。 In the resource scheduling system provided by the embodiment of the present invention, if the heavy-duty physical machine needs to be reduced, that is, the virtual machine running on the overloaded physical machine is balanced to ensure the application of Qo S, and the central management node can negotiate with the physical machine. The resource scheduling can reduce the burden of the central management node collecting the information of the virtual machine on the physical machine, avoiding the bottleneck problem of the central management node in the prior art, and supporting the large-scale physical machine cluster. 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 functional assignments may 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, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置 实施例仅仅是示意性的, 例如, 所述模块或单元的划分, 仅仅为一 种逻辑功能划分, 实际实现时可以有另外的划分方式, 例如多个单 元或组件可以结合或者可以集成到另一个系统, 或一些特征可以忽 略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦 合或通信连接可以是通过一些接口, 装置或单元的间接耦合或通信 连接, 可以是电性, 机械或其它的形式。  In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. 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 electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分 开的, 作为单元显示的部件可以是或者也可以不是物理单元, 即可 以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实 际的需要选择其中的部分或者全部单元来实现本实施例方案的目 的。  The units described as separate components may or may not be physically separated, and the components displayed as the units may or may not be physical units, and 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 objectives of the embodiment of the present embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处 理单元中, 也可以是各个单元单独物理存在, 也可以两个或两个以 上单元集成在一个单元中。 上述集成的单元既可以釆用硬件的形式 实现, 也可以釆用软件功能单元的形式实现。  In addition, each functional unit in each embodiment of the present invention 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 ),随机存取存储器( 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 invention may contribute 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. , including a number of instructions to make a computer device (either a personal computer, a server, or a network device) Or a processor or processor performs all or part of the steps of the method of the various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围 并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技 术范围内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围 之内。 因此, 本发明的保护范围应所述以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要 求 书 Claims
1、 一种资源调度方法, 其特征在于, 包括:  A resource scheduling method, comprising:
根据物理机集群的物理机的信息,确定虚拟机迁移操作的源物理 机和目标物理机;  Determining the source physical machine and the target physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster;
向所述源物理机发送第一协商消息;  Sending a first negotiation message to the source physical machine;
接收所述源物理机发送的第一协商消息的响应消息,所述第一协 商消,包、的响应消,包、携带所述源物理机确定的待迁移虚拟机的信息; 根据所述源物理机确定的待迁移虚拟机的信息,将所述待迁移虚 拟机从所述源物理机迁移至所述目标物理机。  Receiving, by the source physical machine, a response message of the first negotiation message, the first negotiation cancellation, the packet, the response cancellation, the packet, and the information of the virtual machine to be migrated determined by the source physical machine; The information about the virtual machine to be migrated determined by the physical machine, and the virtual machine to be migrated is migrated from the source physical machine to the target physical machine.
2、 根据权利要求 1 所述的资源调度方法, 其特征在于, 所述根 据物理机集群的物理机的信息, 确定虚拟机迁移操作的源物理机, 包 括:  The resource scheduling method according to claim 1, wherein the source physical machine that determines the virtual machine migration operation according to the information of the physical machine of the physical machine cluster includes:
根据所述物理机集群的物理机的信息,确定所述物理机集群中的 轻载物理机;  Determining, according to information of the physical machine of the physical machine cluster, a light-load physical machine in the physical machine cluster;
向所述轻载物理机发送第二协商消息,所述第二协商消息用于询 问所述轻载物理机是否允许进行下电操作;  Transmitting, to the light-loading physical machine, a second negotiation message, where the second negotiation message is used to query whether the light-loading physical machine is allowed to perform a power-off operation;
选择允许下电操作的轻载物理机作为所述源物理机。  A light-loading physical machine that allows a power-off operation is selected as the source physical machine.
3、 根据权利要求 1或 2所述的资源调度方法, 其特征在于, 所 述根据物理机集群的物理机的信息, 确定虚拟机迁移操作的源物理 机, 包括:  The resource scheduling method according to claim 1 or 2, wherein the source physical machine that determines the virtual machine migration operation according to the information of the physical machine of the physical machine cluster includes:
根据所述物理机集群的物理机的信息,确定所述物理机集群中的 重载物理机;  Determining a heavy-duty physical machine in the physical machine cluster according to information of a physical machine of the physical machine cluster;
向所述重载物理机发送第三协商消息,所述第三协商消息用于询 问所述重载物理机是否允许进行减负操作;  Sending, to the overloaded physical machine, a third negotiation message, where the third negotiation message is used to query whether the overloaded physical machine is allowed to perform a subtraction operation;
选择允许减负操作的重载物理机作为所述源物理机。  A heavy physical machine that allows the offload operation is selected as the source physical machine.
4、 根据权利要求 1 - 3任一项所述的资源调度方法, 其特征在于, 所述方法还包括:  The resource scheduling method according to any one of claims 1 to 3, wherein the method further comprises:
向所述目标物理机发送第四协商消息,所述第四协商消息携带所 述源物理机确定的待迁移虚拟机的信息; Sending a fourth negotiation message to the target physical machine, where the fourth negotiation message carries Decoding the information of the virtual machine to be migrated determined by the source physical machine;
接收所述目标物理机发送的第四协商消息的响应消息,所述第四 协商消息的响应消息携带所述目标物理机接受的待迁移虚拟机的信 息;  Receiving a response message of the fourth negotiation message sent by the target physical machine, where the response message of the fourth negotiation message carries information about the virtual machine to be migrated accepted by the target physical machine;
相应地, 根据所述第四协商消息的响应消息, 将所述目标物理机 接受的待迁移虚拟机从所述源物理机迁移到所述目标物理机。  Correspondingly, the virtual machine to be migrated accepted by the target physical machine is migrated from the source physical machine to the target physical machine according to the response message of the fourth negotiation message.
5、 根据权利要求 1或 4所述的资源调度方法, 其特征在于, 所 述根据物理机集群的物理机的信息, 确定虚拟机迁移操作的目标物理 机, 包括:  The resource scheduling method according to claim 1 or 4, wherein the determining the target physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster comprises:
根据所述物理机集群的物理机的信息, 选择第一目标物理机; 向所述第一目标物理机发送第五协商消息,所述第五协商消息用 于询问所述第一目标物理机是否接受虚拟机迁入;  Determining, according to information of the physical machine of the physical machine cluster, a first target physical machine; sending, to the first target physical machine, a fifth negotiation message, where the fifth negotiation message is used to query whether the first target physical machine is Accept virtual machine migration;
选择所述第一目标物理机中接受虚拟机迁入的物理机作为所述 目标物理机。  A physical machine that accepts the virtual machine migration in the first target physical machine is selected as the target physical machine.
6、 根据权利要求 5 所述的资源调度方法, 其特征在于, 所述选 择第一目标物理机之前, 所述方法还包括:  The resource scheduling method according to claim 5, wherein before the selecting the first target physical machine, the method further includes:
上电至少一台物理机,并将上电的所述至少一台物理机作为所述 第一目标物理机。  At least one physical machine is powered on, and the at least one physical machine that is powered on is used as the first target physical machine.
7、 根据权利要求 1 所述的资源调度方法, 其特征在于, 所述方 法还包括:  The resource scheduling method according to claim 1, wherein the method further comprises:
若所述源物理机上的虚拟机被完全迁移到所述目标物理机,则对 所述源物理机进行下电操作。  If the virtual machine on the source physical machine is completely migrated to the target physical machine, the source physical machine is powered off.
8、 根据权利要求 1 所述的资源调度方法, 其特征在于, 所述确 定虚拟机迁移操作的源物理机和目标物理机之前, 所述方法还包括: 获取所述物理机集群的物理机的实时资源占用信息,或者获取所 述物理机集群的物理机发送的资源调度请求消息, 所述资源调度请求 消息由轻载或重载物理机发送;  The resource scheduling method according to claim 1, wherein before the determining the source physical machine and the target physical machine of the virtual machine migration operation, the method further comprises: acquiring the physical machine of the physical machine cluster Realizing resource occupation information, or acquiring a resource scheduling request message sent by a physical machine of the physical machine cluster, where the resource scheduling request message is sent by a light load or a heavy load physical machine;
其中, 所述根据物理机集群的物理机的信息, 确定虚拟机迁移操 作的源物理机和目标物理机, 包括: 根据所述物理机集群的物理机的实时资源占用信息或者所述资 源调度请求消息, 确定所述源物理机和所述目标物理机。 The source physical machine and the target physical machine that determine the virtual machine migration operation according to the information of the physical machine of the physical machine cluster include: Determining the source physical machine and the target physical machine according to real-time resource occupation information of the physical machine of the physical machine cluster or the resource scheduling request message.
9、 一种资源调度方法, 其特征在于, 包括:  9. A resource scheduling method, characterized in that:
接收中心管理节点发送的第一协商消息;  Receiving a first negotiation message sent by the central management node;
向所述中心管理节点发送第一协商消息的响应消息,所述第一协 商消,包、的响应消,包、携带待迁移虚拟机的信息, 以使得所述中心管理节 点根据所述待迁移虚拟机的信息对所述待迁移虚拟机进行迁移。  Sending, by the central management node, a response message of the first negotiation message, the first negotiation cancellation, the packet, the response cancellation, the packet, and the information of the virtual machine to be migrated, so that the central management node is to be migrated according to the to-be-migrated The information of the virtual machine migrates the virtual machine to be migrated.
1 0、 根据权利要求 9所述的资源调度方法, 其特征在于, 所述接 收中心管理节点发送的第一协商消息之后, 所述方法还包括:  The resource scheduling method according to claim 9, wherein after the first negotiation message sent by the receiving center management node, the method further includes:
根据所述第一协商消息和第一依据,确定所述待迁移虚拟机的信 息, 其中, 所述第一依据包括物理机的特性、 物理机上运行的虚拟机 的应用特性、 虚拟机的运行信息或虚拟机的调度约束。  Determining information of the virtual machine to be migrated according to the first negotiation message and the first basis, where the first basis includes characteristics of the physical machine, application characteristics of the virtual machine running on the physical machine, and operation information of the virtual machine Or the scheduling constraints of the virtual machine.
1 1、 根据权利要求 9或 1 0所述的资源调度方法, 其特征在于, 所述接收中心管理节点发送的第一协商消息之前, 所述方法还包括: 向所述中心管理节点发送资源调度请求消息; 或者,  The resource scheduling method according to claim 9 or 10, wherein before the receiving the first negotiation message sent by the central management node, the method further comprises: sending a resource scheduling to the central management node. Request message; or,
向所述中心管理节点发送自身的资源占用信息。  Sending its own resource occupation information to the central management node.
1 2、 一种中心管理节点, 其特征在于, 包括:  1 2. A central management node, which is characterized by comprising:
确定单元, 用于根据物理机集群的物理机的信息, 确定虚拟机迁 移操作的源物理机和目标物理机;  a determining unit, configured to determine, according to information of a physical machine of the physical machine cluster, a source physical machine and a target physical machine of the virtual machine migration operation;
发送单元,用于向所述确定单元确定的所述源物理机发送第一协 商消息;  a sending unit, configured to send a first negotiation message to the source physical machine determined by the determining unit;
接收单元,用于接收所述源物理机发送的第一协商消 ,包、的响应消 息, 所述第一协商消息的响应消息携带所述源物理机确定的待迁移虚 拟机的信息;  a receiving unit, configured to receive a first negotiation cancellation packet, a response message sent by the source physical machine, where the response message of the first negotiation message carries information about the virtual machine to be migrated determined by the source physical machine;
迁移单元,用于根据所述接收单元接收的所述源物理机确定的待 目标物理机。  And a migration unit, configured to determine a target physical machine according to the source physical machine received by the receiving unit.
1 3、 根据权利要求 1 2所述的中心管理节点, 其特征在于, 所述确定单元, 具体用于根据所述物理机集群的物理机的信息, 确定所述物理机集群中的轻载物理机, 并选择允许下电操作的轻载物 理机作为所述源物理机; The central management node according to claim 12, wherein the determining unit is specifically configured to use information about a physical machine of the physical machine cluster, Determining a light-load physical machine in the physical machine cluster, and selecting a light-load physical machine that allows a power-off operation as the source physical machine;
所述发送单元,还用于向所述确定单元确定的所述物理机集群中 的轻载物理机发送第二协商消息, 所述第二协商消息用于询问所述物 理机集群中的轻载物理机是否允许进行下电操作。  The sending unit is further configured to send a second negotiation message to the light-loading physical machine in the physical machine cluster determined by the determining unit, where the second negotiation message is used to query the light load in the physical machine cluster Whether the physical machine is allowed to perform the power-off operation.
1 4、 根据权利要求 1 2或 1 3所述的中心管理节点, 其特征在于, 所述确定单元, 具体用于根据所述物理机集群的物理机的信息, 确定所述物理机集群中的重载物理机, 并选择允许减负操作的重载物 理机作为所述源物理机;  The central management node according to claim 12 or 13, wherein the determining unit is specifically configured to determine, according to information of the physical machine of the physical machine cluster, the physical machine cluster Reloading the physical machine, and selecting a heavy-duty physical machine that allows the offload operation to be the source physical machine;
所述发送单元,还用于向所述确定单元确定的所述物理机集群中 的重载物理机发送第三协商消息, 所述第三协商消息用于询问所述物 理机集群中的重载物理机是否允许进行减负操作。  The sending unit is further configured to send a third negotiation message to the reloading physical machine in the physical machine cluster determined by the determining unit, where the third negotiation message is used to query an overload in the physical machine cluster Whether the physical machine is allowed to perform the burden reduction operation.
1 5、 根据权利要求 1 2 - 1 4任一项所述的中心管理节点, 其特征在 目标物理机之前:  The central management node according to any one of claims 1 2 to 14 wherein the target physical machine is:
所述发送单元, 还用于向所述目标物理机发送第四协商消息, 所 述第四协商消息携带所述源物理机确定的待迁移虚拟机的信息;  The sending unit is further configured to send a fourth negotiation message to the target physical machine, where the fourth negotiation message carries information about the virtual machine to be migrated determined by the source physical machine;
所述接收单元,还用于接收所述目标物理机发送的第四协商消息 的响应消息, 所述第四协商消息的响应消息携带所述目标物理机接受 的待迁移虚拟机的信息;  The receiving unit is further configured to receive a response message of the fourth negotiation message sent by the target physical machine, where the response message of the fourth negotiation message carries information about the virtual machine to be migrated accepted by the target physical machine;
相应地, 所述迁移单元, 具体用于根据所述接收单元接收的所述 第四协商消息的响应消息, 将所述目标物理机接受的待迁移虚拟机从 所述源物理机迁移到所述目标物理机。  Correspondingly, the migrating unit is configured to: migrate, according to the response message of the fourth negotiation message received by the receiving unit, the virtual machine to be migrated accepted by the target physical machine from the source physical machine to the Target physical machine.
1 6、 根据权利要求 1 2或 1 5所述的中心管理节点, 其特征在于, 所述确定单元,具体用于根据根据所述物理机集群的物理机的信 息, 选择第一目标物理机, 并选择所述第一目标物理机中接受虚拟机 迁入的物理机作为所述目标物理机;  The central management node according to claim 12 or 15, wherein the determining unit is specifically configured to select the first target physical machine according to the information of the physical machine according to the physical machine cluster. And selecting, as the target physical machine, a physical machine that accepts a virtual machine to move in the first target physical machine;
所述发送单元,还用于向所述确定单元确定的所述第一目标物理 机发送第五协商消息, 所述第五协商消息用于询问所述第一目标物理 机是否接受虚拟机迁入。 The sending unit is further configured to send a fifth negotiation message to the first target physical machine determined by the determining unit, where the fifth negotiation message is used to query the first target physical Whether the machine accepts virtual machine migration.
1 7、 根据权利要求 1 6所述的中心管理节点, 其特征在于, 所述确定单元, 还用于在选择第一目标物理机之前, 上电至少一 台物理机, 并将上电的所述至少一台物理机作为所述第一目标物理 机。  The central management node according to claim 16, wherein the determining unit is further configured to: power on at least one physical machine before selecting the first target physical machine, and power on the device At least one physical machine is described as the first target physical machine.
1 8、 根据权利要求 1 2所述的中心管理节点, 其特征在于, 所述迁移单元,若所述源物理机上的虚拟机被完全迁移到所述目 标物理机, 还用于对所述源物理机进行下电操作。  The central management node according to claim 12, wherein the migration unit is further configured to: if the virtual machine on the source physical machine is completely migrated to the target physical machine The physical machine is powered off.
1 9、 根据权利要求 1 2所述的中心管理节点, 其特征在于, 所述接收单元,还用于获取所述物理机集群的物理机的实时资源 占用信息, 或者获取所述物理机集群的物理机发送的资源调度请求消 息, 所述资源调度请求消息由轻载或重载物理机发送;  The central management node according to claim 12, wherein the receiving unit is further configured to acquire real-time resource occupation information of a physical machine of the physical machine cluster, or acquire the physical machine cluster. a resource scheduling request message sent by the physical machine, where the resource scheduling request message is sent by a light load or a heavy load physical machine;
所述确定单元,具体用于根据所述接收单元获取的所述物理机集 群的物理机的实时资源占用信息或者所述资源调度请求消息, 确定所 述源物理机和所述目标物理机。  The determining unit is specifically configured to determine the source physical machine and the target physical machine according to the real-time resource occupation information of the physical machine of the physical machine cluster acquired by the receiving unit or the resource scheduling request message.
2 0、 一种物理机, 其特征在于, 包括:  2 0. A physical machine, comprising:
接收单元, 用于接收中心管理节点发送的第一协商消息; 发送单元,用于向所述中心管理节点发送第一协商消息的响应消 息, 所述第一协商消息的响应消息携带待迁移虚拟机的信息, 以使得 所述中心管理节点根据所述待迁移虚拟机的信息对所述待迁移虚拟 机进行迁移。  a receiving unit, configured to receive a first negotiation message sent by the central management node, and a sending unit, configured to send a response message of the first negotiation message to the central management node, where the response message of the first negotiation message carries the virtual machine to be migrated The information is such that the central management node migrates the virtual machine to be migrated according to the information of the virtual machine to be migrated.
2 1、 根据权利要求 2 0所述的物理机, 其特征在于, 所述物理机 还包括:  The physical machine according to claim 20, wherein the physical machine further comprises:
确定单元,用于根据所述接收单元接收的所述第一协商消息和第 一依据, 确定所述待迁移虚拟机的信息, 其中, 所述第一依据包括物 理机的特性、 物理机上运行的虚拟机的应用特性、 虚拟机的运行信息 或虚拟机的调度约束。  a determining unit, configured to determine, according to the first negotiation message and the first basis received by the receiving unit, information about the virtual machine to be migrated, where the first basis includes a characteristic of a physical machine, and is running on a physical machine The application characteristics of the virtual machine, the running information of the virtual machine, or the scheduling constraints of the virtual machine.
1 1、 根据权利要求 2 0或 2 1所述的物理机, 其特征在于, 所述发送单元,还用于在所述接收单元接收中心管理节点发送的 第一协商消息之前, 向所述中心管理节点发送资源调度请求消息或者 自身的资源占用信息。 The physical machine according to claim 20 or 21, wherein the sending unit is further configured to receive, by the receiving unit, a central management node, Before the first negotiation message, the resource scheduling request message or its own resource occupation information is sent to the central management node.
2 3、 一种中心管理节点, 其特征在于, 包括: 处理器、 存储器、 总线和通信接口;  2 3. A central management node, comprising: a processor, a memory, a bus, and a communication interface;
所述存储器用于存储计算机执行指令,所述处理器与所述存储器 通过所述总线连接, 当所述中心管理节点运行时, 所述处理器执行所 述存储器存储的所述计算机执行指令, 以使所述中心管理节点执行权 利要求 1 - 8任意一项所述的资源调度方法。  The memory is configured to store a computer execution instruction, the processor is connected to the memory through the bus, and when the central management node is running, the processor executes the computer execution instruction stored in the memory, to The central management node is caused to perform the resource scheduling method according to any one of claims 1-8.
2 4、 一种可读介质, 其特征在于, 包括计算机执行指令, 当中心 管理节点的处理器执行所述计算机执行指令时, 所述中心管理节点执 行权利要求 1 - 8任意一项所述的资源调度方法。  A readable medium, comprising: a computer executing instruction, when the processor of the central management node executes the computer execution instruction, the central management node performs the method of any one of claims 1-8 Resource scheduling method.
2 5、 一种物理机, 其特征在于, 包括: 处理器、 存储器、 总线和 通信接口;  2 5. A physical machine, comprising: a processor, a memory, a bus, and a communication interface;
所述存储器用于存储计算机执行指令,所述处理器与所述存储器 通过所述总线连接, 当所述物理机运行时, 所述处理器执行所述存储 器存储的所述计算机执行指令, 以使所述物理机执行权利要求 9 - 1 1 任意一项所述的资源调度方法。  The memory is configured to store a computer execution instruction, the processor is connected to the memory through the bus, and when the physical machine is running, the processor executes the computer execution instruction stored in the memory, so that The physical machine performs the resource scheduling method according to any one of claims 9-1.
2 6、 一种可读介质, 其特征在于, 包括计算机执行指令, 当物理 机的处理器执行所述计算机执行指令时, 所述物理机执行权利要求 9 - 1 1任意一项所述的资源调度方法。  A readable medium, comprising: a computer executing instructions, when the processor of the physical machine executes the computer to execute an instruction, the physical machine executes the resource according to any one of claims 9-1 Scheduling method.
2 7、 一种资源调度系统, 其特征在于, 包括:  2 7. A resource scheduling system, comprising:
中心管理节点, 用于根据物理机集群的物理机的信息, 确定虚拟 机迁移操作的源物理机和目标物理机后, 向所述源物理机发送第一协 商消息, 并接收所述源物理机发送的第一协商消息的响应消息, 所述 第一协商消息的响应消, 携带所述源物理机确定的待迁移虚拟机的 信息, 以及根据所述源物理机确定的待迁移虚拟机的信息, 将所述待 所述源物理机, 用于接收中心管理节点发送的第一协商消息, 并 向所述中心管理节点发送第一协商消息的响应消息; 所述目标物理机, 用于接收所述待迁移虚拟机的迁入。 a central management node, configured to send a first negotiation message to the source physical machine after receiving the source physical machine and the target physical machine of the virtual machine migration operation according to the information of the physical machine of the physical machine cluster, and receive the source physical machine And the response message of the first negotiation message sent by the source physical machine, and the information about the virtual machine to be migrated determined according to the source physical machine And the source physical machine to be used to receive the first negotiation message sent by the central management node, and send a response message of the first negotiation message to the central management node; The target physical machine is configured to receive the migration of the virtual machine to be migrated.
28、 根据权利要求 27所述的资源调度系统, 其特征在于, 所述中心管理节点,具体用于根据所述物理机集群的物理机的信 息, 确定所述物理机集群中的轻载物理机, 并向所述物理机集群中的 轻载物理机发送第二协商消息, 所述第二协商消息用于询问所述物理 机集群中的轻载物理机是否允许进行下电操作, 以及选择允许下电操 作的轻载物理机作为所述源物理机。  The resource scheduling system according to claim 27, wherein the central management node is specifically configured to determine a light-load physical machine in the physical machine cluster according to information of a physical machine of the physical machine cluster And sending a second negotiation message to the light-loading physical machine in the physical machine cluster, where the second negotiation message is used to query whether the light-load physical machine in the physical machine cluster is allowed to perform a power-off operation, and select permission A light-loaded physical machine that is powered down operates as the source physical machine.
29、 根据权利要求 27或 28所述的资源调度系统, 其特征在于, 所述中心管理节点,具体用于根据所述物理机集群的物理机的信 息, 确定所述物理机集群中的重载物理机, 并向所述物理机集群中的 重载物理机发送第三协商消息, 所述第三协商消息用于询问所述物理 机集群中的重载物理机是否允许进行减负操作, 以及选择允许减负操 作的重载物理机作为所述源物理机。  The resource scheduling system according to claim 27 or 28, wherein the central management node is specifically configured to determine an overload in the physical machine cluster according to information of a physical machine of the physical machine cluster. a physical machine, and sending a third negotiation message to the overloaded physical machine in the physical machine cluster, where the third negotiation message is used to query whether the overloaded physical machine in the physical machine cluster is allowed to perform the subtraction operation, and select A heavy physical machine that allows the offload operation is used as the source physical machine.
30、 根据权利要求 27- 29任一项所述的资源调度系统, 其特征在 于, 所述目标物理机之前, 还用于向所述目标物理机发送第四协商消息, 所述第四协商消息携带所述源物理机确定的待迁移虚拟机的信息, 并 接收所述目标物理机发送的第四协商消息的响应消息, 所述第四协商 消息的响应消息携带所述目标物理机接受的待迁移虚拟机的信息; 相应地, 所述中心管理节点, 具体用于根据所述第四协商消息的 响应消息, 将所述目标物理机接受的待迁移虚拟机从所述源物理机迁 移到所述目标物理机。  The resource scheduling system according to any one of claims 27 to 29, wherein the target physical machine is further configured to send a fourth negotiation message to the target physical machine, where the fourth negotiation message is And carrying the information about the virtual machine to be migrated determined by the source physical machine, and receiving a response message of the fourth negotiation message sent by the target physical machine, where the response message of the fourth negotiation message carries the The information of the virtual machine is migrated; correspondingly, the central management node is configured to: migrate the virtual machine to be migrated accepted by the target physical machine from the source physical machine to the location according to the response message of the fourth negotiation message The target physical machine.
31、 根据权利要求 27或 30所述的资源调度系统, 其特征在于, 所述中心管理节点,具体用于根据所述物理机集群的物理机的信 息, 选择第一目标物理机, 并向所述第一目标物理机发送第五协商消 息, 所述第五协商消息用于询问所述第一目标物理机是否接受虚拟机 迁入, 以及选择所述第一目标物理机中接受虚拟机迁入的物理机作为 所述目标物理机。 32、 根据权利要求 31所述的资源调度系统, 其特征在于, 所述中心管理节点, 在选择第一目标物理机之前, 还用于上电至 少一台物理机, 并将上电的所述至少一台物理机作为所述第一目标物 理机。 The resource scheduling system according to claim 27 or 30, wherein the central management node is specifically configured to select a first target physical machine according to information of a physical machine of the physical machine cluster, and The first target physical machine sends a fifth negotiation message, where the fifth negotiation message is used to query whether the first target physical machine accepts virtual machine migration, and selects the first target physical machine to accept virtual machine migration The physical machine acts as the target physical machine. The resource scheduling system according to claim 31, wherein the central management node is further configured to power on at least one physical machine before selecting the first target physical machine, and to power on the At least one physical machine acts as the first target physical machine.
3 3、 根据权利要求 27所述的资源调度系统, 其特征在于, 所述中心管理节点,若所述源物理机上的虚拟机被完全迁移到所 述目标物理机, 还用于对所述源物理机进行下电操作。  The resource scheduling system according to claim 27, wherein the central management node is further configured to: if the virtual machine on the source physical machine is completely migrated to the target physical machine The physical machine is powered off.
34、 根据权利要求 27所述的资源调度系统, 其特征在于, 所述中心管理节点,还用于获取所述物理机集群的物理机的实时 资源占用信息, 或者获取所述物理机集群的物理机发送的资源调度请 求消息, 所述资源调度请求消息由轻载或重载物理机发送;  The resource scheduling system according to claim 27, wherein the central management node is further configured to acquire real-time resource occupation information of a physical machine of the physical machine cluster, or acquire physicality of the physical machine cluster. a resource scheduling request message sent by the machine, where the resource scheduling request message is sent by a light load or a heavy load physical machine;
其中, 所述中心管理节点, 具体用于根据所述物理机集群的物理 机的实时资源占用信息或者所述资源调度请求消息, 确定所述源物理 机和所述目标物理机;  The central management node is specifically configured to determine the source physical machine and the target physical machine according to real-time resource occupation information of the physical machine of the physical machine cluster or the resource scheduling request message;
所述源物理机, 在接收中心管理节点发送的第一协商消息之前, 还用于向所述中心管理节点发送资源调度请求消息。  The source physical machine is further configured to send a resource scheduling request message to the central management node before receiving the first negotiation message sent by the central management node.
35、 根据权利要求 27所述的资源调度系统, 其特征在于, 所述源物理机, 还用于根据所述第一协商消息及第一依据, 确定 所述待迁移虚拟机的信息, 所述第一依据包括包括物理机的特性、 物 理机上运行的虚拟机的应用特性、虚拟机的运行信息或虚拟机的调度 约束。  The resource scheduling system according to claim 27, wherein the source physical machine is further configured to determine information about the virtual machine to be migrated according to the first negotiation message and the first basis, where The first basis includes the characteristics of the physical machine, the application characteristics of the virtual machine running on the physical machine, the running information of the virtual machine, or the scheduling constraint of the virtual machine.
PCT/CN2013/081064 2013-08-08 2013-08-08 Method, device and system for scheduling resources WO2015018023A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/081064 WO2015018023A1 (en) 2013-08-08 2013-08-08 Method, device and system for scheduling resources
CN201380077681.5A CN105359489A (en) 2013-08-08 2013-08-08 Method, device and system for scheduling resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/081064 WO2015018023A1 (en) 2013-08-08 2013-08-08 Method, device and system for scheduling resources

Publications (1)

Publication Number Publication Date
WO2015018023A1 true WO2015018023A1 (en) 2015-02-12

Family

ID=52460525

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/081064 WO2015018023A1 (en) 2013-08-08 2013-08-08 Method, device and system for scheduling resources

Country Status (2)

Country Link
CN (1) CN105359489A (en)
WO (1) WO2015018023A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684074A (en) * 2018-11-12 2019-04-26 平安科技(深圳)有限公司 Physical machine resource allocation methods and terminal device
CN112134917B (en) * 2020-08-04 2023-11-14 中兴系统技术有限公司 Remote disaster recovery method based on super-fusion cloud
CN112416530B (en) * 2020-12-08 2023-12-22 西藏宁算科技集团有限公司 Method and device for elastically managing cluster physical machine nodes and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876921A (en) * 2009-04-29 2010-11-03 华为技术有限公司 Method, device and system for migration decision-making of virtual machine
WO2012067431A2 (en) * 2010-11-18 2012-05-24 Wisetodd Pte. Ltd. Resource distribution apparatus and method in cloud computing
CN102724277A (en) * 2012-05-04 2012-10-10 华为技术有限公司 Virtual machine thermomigration method, virtual machine arrangement method, server and cluster system
US20130148654A1 (en) * 2011-12-09 2013-06-13 Brocade Communications Systems, Inc. Port profile analytics

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790793A (en) * 2012-05-08 2012-11-21 北京邮电大学 Decision method and control module facing to cloud computing virtual machine migration
CN102866915B (en) * 2012-08-21 2015-08-26 华为技术有限公司 Virtual cluster integration method, device and system of virtual cluster

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876921A (en) * 2009-04-29 2010-11-03 华为技术有限公司 Method, device and system for migration decision-making of virtual machine
WO2012067431A2 (en) * 2010-11-18 2012-05-24 Wisetodd Pte. Ltd. Resource distribution apparatus and method in cloud computing
US20130148654A1 (en) * 2011-12-09 2013-06-13 Brocade Communications Systems, Inc. Port profile analytics
CN102724277A (en) * 2012-05-04 2012-10-10 华为技术有限公司 Virtual machine thermomigration method, virtual machine arrangement method, server and cluster system

Also Published As

Publication number Publication date
CN105359489A (en) 2016-02-24

Similar Documents

Publication Publication Date Title
CN102427475B (en) Load balance scheduling system in cloud computing environment
WO2013163865A1 (en) Virtual machine hot migration and deployment method, server and cluster system
WO2015165095A1 (en) Method for creating virtual base station, and base station cloud device
CN111897654B (en) Method and device for migrating application to cloud platform, electronic equipment and storage medium
US20130198755A1 (en) Apparatus and method for managing resources in cluster computing environment
WO2015157897A1 (en) Disaster recovery data center configuration method and apparatus in cloud computing architecture
WO2014101010A1 (en) Resource management method of virtual machine system, virtual machine system, and apparatus
CN105868004B (en) Scheduling method and scheduling device of service system based on cloud computing
WO2013097396A1 (en) Virtual cluster integration method, device, and system
WO2014029308A1 (en) Resource allocation method and device
Takouna et al. Communication-aware and energy-efficient scheduling for parallel applications in virtualized data centers
Li et al. Deployment of edge servers in 5G cellular networks
US20230135645A1 (en) Management of workload processing using distributed networked processing units
CN110688213A (en) Resource management method and system based on edge calculation and electronic equipment
Nagendra et al. MMLite: A scalable and resource efficient control plane for next generation cellular packet core
CN103019854A (en) Distributed dynamic process management method and system
WO2015018023A1 (en) Method, device and system for scheduling resources
CN107306230B (en) Method, device, controller and core network equipment for network resource deployment
Whaiduzzaman et al. Pefc: Performance enhancement framework for cloudlet in mobile cloud computing
CN110958297A (en) Data migration method and system
EP3151513A1 (en) Service elastic method and device in cloud computing
CN113822485B (en) Power distribution network scheduling task optimization method and system
Aucinas et al. Energy efficient mobile M2M communications
CN116136799A (en) Computing power dispatching management side device and method, computing power providing side device and method
CN110677301A (en) Software defined transmission control method for single controller with multiple switches in 5G network

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201380077681.5

Country of ref document: CN

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

Ref document number: 13890924

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: 13890924

Country of ref document: EP

Kind code of ref document: A1