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

Method, device and system for scheduling resources Download PDF

Info

Publication number
CN105359489A
CN105359489A CN201380077681.5A CN201380077681A CN105359489A CN 105359489 A CN105359489 A CN 105359489A CN 201380077681 A CN201380077681 A CN 201380077681A CN 105359489 A CN105359489 A CN 105359489A
Authority
CN
China
Prior art keywords
physical machine
machine
information
negotiation message
source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201380077681.5A
Other languages
Chinese (zh)
Inventor
王烽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN105359489A publication Critical patent/CN105359489A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)
  • Mobile Radio Communication Systems (AREA)

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

Method, device and system for scheduling resources
A kind of resource regulating method, apparatus and system technical field
The present invention relates to IT technical fields, more particularly to a kind of resource regulating method, apparatus and system.
Background technology
In cloud computing technology, the energy of physical machine cluster consumption is the main energetic expense for running cluster.Because these physical machines many times are all idle, therefore, in order to reduce the energy of physical machine cluster consumption, virtual machine is generally carried out migration integration by industry, physical machine that will be idle is closed and lower electricity is to be saved, and when business load rises on cloud, then upper electric physical machine.
In the prior art, in the resource scheduling system of physical machine cluster, by global administration's module of centralization to physical machine power-on and power-off, so as to adjust the energy of physical machine cluster consumption.For example, the managing power consumption module by disposing centralization in physical machine cluster, to physical machine power-on and power-off, so as to adjust the energy of physical machine cluster consumption;Or pass through DPM (Dynamic Power Module, dynamic power module)With DRS (Distributed Resource scheduling, distributed resource scheduling)Module coordinates, to physical machine power-on and power-off, so as to adjust the energy of physical machine cluster consumption.
But, in the resource scheduling system of above-mentioned physical machine cluster, managing power consumption module or DPM, DRS module are to concentrate deployment module, the concentration deployment module assume responsibility for all traffic controls, need the information of all physical machines in physical machine cluster and operate in the information of the virtual machine in physical machine and be all pooled in the concentration deployment module, so that the concentration deployment module turns into bottleneck.
The content of the invention
Embodiments of the invention provide a kind of resource regulating method, apparatus and system, can consult to carry out the scheduling of resource of physical machine cluster by central administration node and physical machine, so as to collect the burden of bulk information the need for mitigating central administration node.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that: In a first aspect, the embodiment of the present invention provides a kind of resource regulating method, including:According to the information of the physical machine of physical machine cluster, the source physical machine and target physical machine of virtual machine (vm) migration operation are determined;
First is sent to the source physical machine to consult to disappear,;
Receive the response message for the first negotiation message that the source physical machine is sent, first breath:', ', the information of virtual machine to be migrated that is determined according to the source physical machine, the virtual machine to be migrated is migrated to the target physical machine from the source physical machine.
In the first possible implementation of first aspect,
The information of the physical machine according to physical machine cluster, determines the source physical machine of virtual machine (vm) migration operation, including:
According to the information of the physical machine of the physical machine cluster, the underloading physical machine in the physical machine cluster is determined;
The second negotiation message is sent to the underloading physical machine, second negotiation message is for inquiring it is electrically operated under carrying out whether the underloading physical machine allows;
Selection underloading physical machine electrically operated under allowing is as the source physical machine.
With reference to the first possible implementation of foregoing first aspect or first aspect, in second of possible implementation,
The information of the physical machine according to physical machine cluster, determines the source physical machine of virtual machine (vm) migration operation, including:
According to the information of the physical machine of the physical machine cluster, the heavily loaded physical machine in the physical machine cluster is determined;
The 3rd negotiation message is sent to the heavily loaded physical machine, the 3rd negotiation message is used to inquire whether the heavily loaded physical machine allows to carry out Reduction of Students' Study Load operation;
Selection allows the heavily loaded physical machine that Reduction of Students' Study Load is operated as the source physical machine.
With reference to foregoing first aspect or first aspect the first possible implementation to any of second possible implementation implementation, in the third possible realization side Before machine, methods described also includes:
The 4th negotiation message is sent to the target physical machine, the 4th negotiation message carries the information for the virtual machine to be migrated that the source physical machine is determined;
The response message for the 4th negotiation message that the target physical machine is sent is received, the response message of the 4th negotiation message carries the information for the virtual machine to be migrated that the target physical machine receives;
Correspondingly, according to the response message of the 4th negotiation message, the virtual machine to be migrated of target physical machine receiving is moved into the target physical machine from the source physical machine.
With reference to the third possible implementation of foregoing first aspect or first aspect, in the 4th kind of possible implementation, the information of the physical machine according to physical machine cluster determines the target physical machine of virtual machine (vm) migration operation, including:
According to the information of the physical machine of the physical machine cluster, first object physical machine is selected;The 5th negotiation message is sent to the first object physical machine, the 5th negotiation message is used to inquire whether the first object physical machine receives virtual machine and move into;
Select to receive in the first object physical machine physical machine that virtual machine moves into as the target physical machine.
With reference to the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation, before the selection first object physical machine, methods described also includes:
Be power-up to a few physical machine, and using it is upper it is electric described at least one physical machine be used as the first object physical machine.
In the 6th kind of possible implementation of first aspect, methods described also includes:It is electrically operated under being carried out to the source physical machine if the virtual machine in the source physical machine is completely migrating to the target physical machine.
In the 7th kind of possible implementation of first aspect, before the source physical machine and target physical machine for determining virtual machine (vm) migration operation, methods described also includes:
The real time resources occupied information of the physical machine of the physical machine cluster is obtained, or obtains the resource scheduling request message that the physical machine of the physical machine cluster is sent, the resource scheduling request message is sent by underloading or heavily loaded physical machine;
Wherein, the information of the physical machine according to physical machine cluster, determines virtual machine (vm) migration The source physical machine and target physical machine of operation, including:
According to the real time resources occupied information of the physical machine of the physical machine cluster or the resource scheduling request message, the source physical machine and the target physical machine are determined.
Second aspect, the embodiment of the present invention also provides a kind of resource regulating method, including:Receive the first negotiation message that central administration node is sent;
The response message of the first negotiation message is sent to the central administration node, the response message of first negotiation message carries the information of virtual machine to be migrated, to cause the central administration node to be migrated according to the information of the virtual machine to be migrated to the virtual machine to be migrated.
In the first possible implementation of second aspect, after first negotiation message for receiving central administration node transmission, methods described also includes:
According to first negotiation message and the first foundation, determine the information of the virtual machine to be migrated, wherein, the described first schedule constraints according to the application characteristic of virtual machine, the operation information of virtual machine or the virtual machine run in the characteristic including physical machine, physical machine.
With reference to the first possible implementation of foregoing second aspect or second aspect, in second of possible implementation, before first negotiation message for receiving central administration node transmission, methods described also includes:
Resource scheduling request message is sent to the central administration node;Or,
The resource occupation information of itself is sent to the central administration node.
The third aspect, the embodiment of the present invention provides a kind of central administration node, including:Determining unit, for the information of the physical machine according to physical machine cluster, determines the source physical machine and target physical machine of virtual machine (vm) migration operation;
Transmitting element, the source physical machine for being determined to the determining unit sends the first negotiation message;
Receiving unit, the response message for receiving the first negotiation message that the source physical machine is sent, described first consults to disappear, bag, response disappear, wrap, carry the information for the virtual machine to be migrated that the source physical machine is determined;
Migration units, what the source physical machine for being received according to the receiving unit was determined The target physical machine.
In the first possible implementation of the third aspect,
The determining unit, specifically for the information of the physical machine according to the physical machine cluster, determines the underloading physical machine in the physical machine cluster, and selects underloading physical machine electrically operated under allowing as the source physical machine;
The transmitting element, it is additionally operable to the underloading physical machine into the physical machine cluster of determining unit determination and sends the second negotiation message, it is electrically operated under carrying out that second negotiation message is used to inquire whether the underloading physical machine in the physical machine cluster to allow.
With reference to the first possible implementation of the foregoing third aspect or the third aspect, in second of possible implementation,
The determining unit, specifically for the information of the physical machine according to the physical machine cluster, determines the heavily loaded physical machine in the physical machine cluster, and select the heavily loaded physical machine for allowing Reduction of Students' Study Load to operate as the source physical machine;
The transmitting element, it is additionally operable to the heavily loaded physical machine into the physical machine cluster of determining unit determination and sends the 3rd negotiation message, the 3rd negotiation message is used to inquire whether the heavily loaded physical machine in the physical machine cluster to allow to carry out Reduction of Students' Study Load operation.
With reference to the foregoing third aspect or the third aspect the first possible implementation to any of second possible implementation implementation, before the third possible described target physical machine in realization side:
The transmitting element, is additionally operable to send the 4th negotiation message to the target physical machine, the 4th negotiation message carries the information for the virtual machine to be migrated that the source physical machine is determined;The receiving unit, is additionally operable to receive the response message for the 4th negotiation message that the target physical machine is sent, and the response message of the 4th negotiation message carries the information for the virtual machine to be migrated that the target physical machine receives;
Correspondingly, the migration units, specifically for the response message of the 4th negotiation message received according to the receiving unit, the target physical machine is moved to by the virtual machine to be migrated of target physical machine receiving from the source physical machine.
With reference to the third possible implementation of the foregoing third aspect or the third aspect, In 4th kind of possible implementation,
The determining unit, specifically for the information according to the physical machine according to the physical machine cluster, selects first object physical machine, and selects to receive in the first object physical machine physical machine that virtual machine moves into as the target physical machine;
The transmitting element, is additionally operable to send the 5th negotiation message to the first object physical machine that the determining unit is determined, the 5th negotiation message is used to inquire whether the first object physical machine receives virtual machine and move into.
With reference to the 4th kind of possible implementation of the third aspect, in the 5th kind of possible implementation,
The determining unit, is additionally operable to before selection first object physical machine, is power-up to a few physical machine, and using it is upper it is electric described at least one physical machine be used as the first object physical machine.
In the 6th kind of possible implementation of the third aspect, target physical machine is additionally operable to electrically operated under being carried out to the source physical machine.
In the 7th kind of possible implementation of the third aspect,
The receiving unit, it is additionally operable to obtain the real time resources occupied information of the physical machine of the physical machine cluster, or the resource scheduling request message that the physical machine of the physical machine cluster is sent is obtained, the resource scheduling request message is sent by underloading or heavily loaded physical machine;
The determining unit, specifically for the real time resources occupied information of the physical machine of the physical machine cluster obtained according to the receiving unit or the resource scheduling request message, determines the source physical machine and the target physical machine.
Fourth aspect, the embodiment of the present invention provides a kind of physical machine, including:
Receiving unit, the first negotiation message for receiving central administration node transmission;Transmitting element, response message for sending from the first negotiation message to the central administration node, the response message of first negotiation message carries the information of virtual machine to be migrated, to cause the central administration node to be migrated according to the information of the virtual machine to be migrated to the virtual machine to be migrated.
In the first possible implementation of fourth aspect, the physical machine also includes: Determining unit, for first negotiation message and the first foundation received according to the receiving unit, determine the information of the virtual machine to be migrated, wherein, the described first schedule constraints according to the application characteristic of virtual machine, the operation information of virtual machine or the virtual machine run in the characteristic including physical machine, physical machine.
With reference to the first possible implementation of foregoing fourth aspect or fourth aspect, in second of possible implementation,
The transmitting element, is additionally operable to before the receiving unit receives the first negotiation message that central administration node is sent, and sending resource scheduling request to the central administration node disappears, bag or the resource occupation information of itself.
5th aspect, the embodiment of the present invention provides a kind of central administration node, including:Processor, memory, bus and communication interface;
The memory is used to store computer executed instructions, the processor is connected with the memory by the bus, when the central administration node is run, the computer executed instructions of memory storage described in the computing device, so that the central administration node perform claim requires the resource regulating method described in 1-8 any one.
6th aspect, embodiments of the invention provide a kind of computer-readable recording medium, including computer executed instructions, when computer executed instructions described in the computing device of central administration node, the central administration node perform claim requires the resource regulating method described in 1-8 any one.
7th aspect, embodiments of the invention provide a kind of physical machine, including:Processor, memory, bus and communication interface;
The memory is used to store computer executed instructions, the processor is connected with the memory by the bus, when the physical machine is run, the computer executed instructions of memory storage described in the computing device, so that the physical machine perform claim requires the resource regulating method described in 9-1 1 any one.
Eighth aspect, embodiments of the invention provide a kind of computer-readable recording medium, including computer executed instructions, when computer executed instructions described in the computing device of physical machine, the physical machine perform claim requires the resource regulating method described in 9-1 1 any one.
9th aspect, embodiments of the invention provide a kind of resource scheduling system, including:Central administration node, for the information of the physical machine according to physical machine cluster, it is determined that empty After the source physical machine and target physical machine of plan machine migration operation, the first negotiation message is sent to the source physical machine, and receive the response message for the first negotiation message that the source physical machine is sent, the response of first negotiation message disappears, wrap, carry the information for the virtual machine to be migrated that the source physical machine is determined, and the information of the virtual machine to be migrated determined according to the source physical machine, by the source physical machine, consult to disappear for receiving the first of central administration node transmission,, and to the central administration node send the first negotiation message response message;
The target physical machine, for receiving moving into for the virtual machine to be migrated.
In the first possible implementation of the 9th aspect,
The central administration node, specifically for the information of the physical machine according to the physical machine cluster, determine the underloading physical machine in the physical machine cluster, and the underloading physical machine into the physical machine cluster sends the second negotiation message, it is electrically operated under carrying out that second negotiation message is used to inquire whether the underloading physical machine in the physical machine cluster to allow, and selects underloading physical machine electrically operated under allowing as the source physical machine.
With reference to the first possible implementation of foregoing the 9th aspect or the 9th aspect, in second of possible implementation,
The central administration node, specifically for the information of the physical machine according to the physical machine cluster, determine the heavily loaded physical machine in the physical machine cluster, and the heavily loaded physical machine into the physical machine cluster sends the 3rd negotiation message, 3rd negotiation message is used to inquire whether the heavily loaded physical machine in the physical machine cluster to allow to carry out Reduction of Students' Study Load operation, and selection allows the heavily loaded physical machine that Reduction of Students' Study Load is operated as the source physical machine.
With reference to foregoing 9th aspect or the 9th aspect the first possible implementation to any of second possible implementation implementation, in the third possible implementation, before to the target physical machine, it is additionally operable to send the 4th negotiation message to the target physical machine, 4th negotiation message carries the information for the virtual machine to be migrated that the source physical machine is determined, and receive the response message for the 4th negotiation message that the target physical machine is sent, the response message of 4th negotiation message carries the virtual machine to be migrated that the target physical machine receives Information;
Correspondingly, the central administration node, specifically for the response message according to the 4th negotiation message, the target physical machine is moved to by the virtual machine to be migrated of target physical machine receiving from the source physical machine.
With reference to the third possible implementation of foregoing the 9th aspect or the 9th aspect, in the 4th kind of possible implementation,
The central administration node, specifically for the information of the physical machine according to the physical machine cluster, select first object physical machine, and send the 5th negotiation message to the first object physical machine, 5th negotiation message is used to inquire whether the first object physical machine receives virtual machine and move into, and receives physical machine that virtual machine moves into the selection first object physical machine as the target physical machine.
With reference to the 4th kind of possible implementation of the 9th aspect, in the 5th kind of possible implementation,
The central administration node, before selection first object physical machine, is additionally operable to be power-up to a few physical machine, and using it is upper it is electric described at least one physical machine be used as the first object physical machine.
In the 6th kind of possible implementation of the 9th aspect, the target physical machine is additionally operable to electrically operated under being carried out to the source physical machine.
In the 7th kind of possible implementation of the 9th aspect,
The central administration node, it is additionally operable to obtain the real time resources occupied information of the physical machine of the physical machine cluster, or the resource scheduling request message that the physical machine of the physical machine cluster is sent is obtained, the resource scheduling request message is sent by underloading or heavily loaded physical machine;Wherein, the central administration node, real time resources occupied information or the resource scheduling request message specifically for the physical machine according to the physical machine cluster, determines the source physical machine and the target physical machine;
Before the source physical machine, the first negotiation message that heart management node is sent in the reception, it is additionally operable to send resource scheduling request message to the central administration node.
In the 8th kind of possible implementation of the 9th aspect, The source physical machine, it is additionally operable to according to first negotiation message and the first foundation, determine the information of the virtual machine to be migrated, the described first schedule constraints according to the application characteristic of virtual machine, the operation information of virtual machine or the virtual machine for including the characteristic of physical machine, running in physical machine.
The embodiment of the present invention provides a kind of resource regulating method, apparatus and system, pass through the information of the physical machine according to physical machine cluster, after the source physical machine and target physical machine that determine virtual machine (vm) migration operation, the first negotiation message is sent to source physical machine, and receive the response message for the first negotiation message that source physical machine is sent, the response message of first negotiation message carries the information for the virtual machine to be migrated that source physical machine is determined, and the information of the virtual machine to be migrated determined according to source physical machine, virtual machine to be migrated is migrated to target physical machine from source physical machine.Pass through the program, because central administration node only needs to tentatively judge the source physical machine of virtual machine (vm) migration, again by consulting which virtual machine in the physical machine of determination source needs migration with source physical machine, and the scheduling of resource of physical machine cluster is finally carried out, so as to collect the burden of the virtual machine information in a large amount of physical machines the need for mitigating central administration node.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, the required accompanying drawing used in embodiment or description of the prior art will be briefly described below, it should be evident that drawings in the following description are only some embodiments of the present invention.
Fig. 1 is the Organization Chart one of resource scheduling system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart one of resource regulating method provided in an embodiment of the present invention;Fig. 3 is a kind of flowchart 2 of resource regulating method provided in an embodiment of the present invention;Fig. 4 is a kind of flow chart 3 of resource regulating method provided in an embodiment of the present invention;Fig. 5 is the structural representation one of central administration node provided in an embodiment of the present invention;Fig. 6 is the structural representation one of physical machine provided in an embodiment of the present invention;
Fig. 7 is the structural representation two of physical machine provided in an embodiment of the present invention;
Fig. 8 is the structural representation two of central administration node provided in an embodiment of the present invention;Fig. 9 is the structural representation three of physical machine provided in an embodiment of the present invention;
Fig. 10 is the Organization Chart two of resource scheduling system provided in an embodiment of the present invention;Fig. 11 is the Organization Chart three of resource scheduling system provided in an embodiment of the present invention; Fig. 12 is the Organization Chart four of resource scheduling system provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.
Embodiment one
As shown in Figure 1, for a resource scheduling system Organization Chart provided in an embodiment of the present invention, the resource scheduling system include by many or a physics unit into physical machine cluster and central administration node, in the present embodiment by taking 3 physical machines as an example, software may be all virtualized in every physical machine and fictionalizes many virtual machines, distributed agent is all disposed in every physical machine, the distributed agent can be used for the attribute information and operation information for collecting this TV station physical machine, and the information of every virtual machine in this TV station physical machine, central administration node is used for the resource occupation information for collecting every physical machine of the physical machine cluster of its management, the resource optimization strategy of physical machine cluster is determined according to the resource occupation information of every physical machine, or for the resource scheduling request for the physical machine for collecting its physical machine cluster managed, the resource optimization strategy of physical machine cluster is determined according to the resource scheduling request of collection, determine which platform physical machine can be carried out down electrically operated with the consumption that economizes on resources, which platform physical machine can receive moving into for virtual machine, and held consultation according to the resource optimization strategy of the physical machine cluster of determination with the distributed agent in corresponding physical machine, the information for the virtual machine that the information and receiving for obtaining the virtual machine to be migrated that physical machine itself is determined are moved into, and the migration of virtual machine is carried out according to the information of acquisition.
Resource scheduling system according to Fig. 1, as shown in Fig. 2 the embodiment of the present invention provides a kind of resource regulating method, is related to central administration node side, this method can include:
S 1 01, central administration node determine the source physical machine and target physical machine of virtual machine (vm) migration operation according to the information of the physical machine of physical machine cluster.
Resource scheduling system provided in an embodiment of the present invention includes the physical machine of central administration node and the physical machine cluster managed by central administration node.Wherein, the physical machine for the physical machine cluster that central administration node can be managed with it is communicated, and obtains the information of the physical machine of physical machine cluster, including:The resource occupation information of the physical machine of physical machine cluster, CPU (the C en t r a l P r o c e s s i ng Un i t, central processing unit of such as physical machine), internal memory, network The current utilization of resource, or physical machine load information;Or the physical machine request central administration node of the resource scheduling request message that the physical machine of physical machine cluster is sent, i.e. physical machine cluster carries out scheduling of resource to it.
Exemplary, when some physical machine light loads of physical machine cluster, central administration node can be migrated to the virtual machine run in these underloading physical machines, and these lower electric underloading physical machines, so that the purpose to reach energy-conservation;When some physical machine heavier loads of physical machine cluster, central administration node can be by the virtual machine (vm) migration run in these heavily loaded physical machines to other underloading physical machines, so that the virtual machine run in physical machine in physical machine cluster is balanced, ensure application Qo S (Qua l i t y o f S e r v i c e, service quality), and then complete the scheduling of resource of intelligence.
Central administration node is obtained after the information of the physical machine of physical machine cluster, and central administration node according to the information of the physical machine of physical machine cluster, can determine the source physical machine of virtual machine (vm) migration operation.Alternatively, it is also possible to determine and target physical machine.Specifically, source physical machine is the physical machine for needing to move out virtual machine, target physical machine is the physical machine that virtual machine is moved into.
Optionally, central administration node can determine single source physical machine and single target physical machine;Single source physical machine and multiple target physical machines;Multiple source physical machines and single target physical machine;Or multiple source physical machines and multiple target physical machines, it is of the invention not to be limited.
51 02, central administration node sends the first negotiation message to source physical machine.
Central administration node is determined after the physical machine of source, and central administration node sends the first negotiation message to source physical machine.
51 03, central administration node receives the response message for the first negotiation message that source physical machine is sent, and the response message of the first negotiation message carries the information for the virtual machine to be migrated that source physical machine is determined.
Central administration node is sent after the first negotiation message to source physical machine, central administration node can receive the response message for the first negotiation message that source physical machine is sent, wherein, the information for the virtual machine to be migrated that source physical machine is determined is carried in the response message of first negotiation message, the virtual machine to be migrated is the virtual machine run in the physical machine of source.
Held consultation it should be noted that central administration node can send the first negotiation message to source physical machine, for obtaining the information for the virtual machine to be migrated that source virtual machine is determined. 51 04, the information for the virtual machine to be migrated that central administration node is determined according to source physical machine, virtual machine to be migrated is migrated to target physical machine from source physical machine.
Central administration node is received after the information for the virtual machine to be migrated that source physical machine is determined, the information for the virtual machine to be migrated that central administration node can be determined according to the source physical machine, virtual machine to be migrated is moved to the target physical machine of central administration node determination from the source physical machine, so as to complete the migration operation of virtual machine to be migrated.
Resource scheduling system according to Fig. 1, as shown in figure 3, the embodiment of the present invention also provides a kind of resource regulating method, is related to source physics pusher side, this method can include:
5201, source physical machine receives the first negotiation message that central administration node is sent.
Source physical machine receives the first negotiation message from central administration node, wherein, management node is determined according to the information of the physical machine of physical machine cluster centered on the physical machine of source.
S 202, source physical machine send the response message of the first negotiation message to central administration node, the response message of first negotiation message carries the information of virtual machine to be migrated, to cause central administration node according to the letter of the virtual machine to be migrated, to be migrated to virtual machine to be migrated.
Source physical machine is received after the first negotiation message of central administration node transmission, source physical machine can return to the response message of the first negotiation message to central administration node, to allow the letter of virtual machine to be migrated that central administration node determines according to source physical machine, the virtual machine to be migrated is migrated, so as to complete the migration operation of virtual machine to be migrated, wherein, the information for the virtual machine to be migrated that source physical machine is determined is carried in the response message of the first negotiation message.
The embodiment of the present invention provides a kind of resource regulating method, pass through the information of the physical machine according to physical machine cluster, after the source physical machine and target physical machine that determine virtual machine (vm) migration operation, the first negotiation message is sent to source physical machine, and receive the response message for the first negotiation message that source physical machine is sent, the response message of first negotiation message carries the information for the virtual machine to be migrated that source physical machine is determined, and the information of the virtual machine to be migrated determined according to source physical machine, virtual machine to be migrated is migrated to target physical machine from source physical machine.Pass through the program, because central administration node only needs to tentatively judge the source physical machine of virtual machine (vm) migration, again by consulting which virtual machine in the physical machine of determination source needs migration with source physical machine, and the scheduling of resource of physical machine cluster is finally carried out, so as to collect the burden of the virtual machine information in a large amount of physical machines the need for mitigating central administration node. Embodiment two
The embodiment of the present invention provides a kind of resource regulating method, and as shown in Fig. 4, this method can include:
S 301, central administration node obtain the real time resources occupied information of the physical machine of physical machine cluster, or obtain the resource scheduling request message that the physical machine of physical machine cluster is sent, and resource scheduling request message is sent by underloading or heavily loaded physical machine.
Resource scheduling system provided in an embodiment of the present invention includes the physical machine of central administration node and the physical machine cluster managed by central administration node.Wherein, the physical machine for the physical machine cluster that central administration node can be managed with it is communicated, and obtains the information of the physical machine of physical machine cluster, including:The load information of the resource occupation information of the physical machine of physical machine cluster, C P U, internal memory, the current utilization of Internet resources of such as physical machine, or physical machine;Or the physical machine request central administration node of the resource scheduling request message that the physical machine of physical machine cluster is sent, i.e. physical machine cluster carries out scheduling of resource to it.Wherein, resource scheduling request message is sent by underloading or the physical machine of heavy duty.
Exemplary, when some physical machine light loads of physical machine cluster, central administration node can be migrated to the virtual machine run in these underloading physical machines, and these lower electric underloading physical machines, so that the purpose to reach energy-conservation;When some physical machine heavier loads of physical machine cluster, central administration node can be by the virtual machine (vm) migration run in these heavily loaded physical machines to other underloading physical machines, so that the virtual machine run in physical machine in physical machine cluster is balanced, ensure to apply Q o S, and then complete the scheduling of resource of intelligence.
It should be noted that, when the C P U, internal memory, Internet resources of some physical machines of physical machine cluster current utilization are relatively low, resource scheduling request message can be transmitted to central administration node in these physical machines, to tell these physical machines of central administration node as underloading physical machine;Accordingly, when the C P U, internal memory, Internet resources of some physical machines of physical machine cluster current utilization are higher, resource scheduling request message can be transmitted to central administration node in these physical machines, to tell these physical machines of central administration node as heavy loading object reason machine.
Optionally, the method that central administration node obtains the information of the physical machine of physical machine cluster can be following one kind:
(1) physical machine of physical machine cluster directly reports the information of the physical machine to centre management Node.
(2) physical machine of physical machine cluster sends the information reporting of the physical machine to central administration node to other physical server cluster monitoring modules, then by other physical server cluster monitoring modules.
Optionally, while above-mentioned central administration node obtains the information of the physical machine of physical machine cluster, the information of the virtual machine run in the physical machine that physical machine cluster can also be obtained, more accurately to determine the need for the migration operation for carrying out virtual machine.Compared with prior art, the embodiment of the present invention can need not also obtain the information of the virtual machine run in the physical machine of physical machine cluster, to reduce the burden that central administration node obtains information, so as to improve computational efficiency of the central administration node to information.
S 302, central administration node determine the underloading physical machine and heavily loaded physical machine in physical machine cluster according to the information of the physical machine of physical machine cluster.
Central administration node is got after the information of the physical machine of physical machine cluster, and central administration node can be according to the information of the physical machine of physical machine cluster(Resource occupation information or load information), determine the underloading physical machine and heavily loaded physical machine in physical machine cluster.If for example, the CPU of certain physical machine current utilization is less than default underloading value, it is determined that the physical machine is underloading physical machine;If the CPU of certain physical machine current utilization is more than default underloading value, it is determined that the physical machine is that heavy loading object manages machine;Or, the resource scheduling request message of physical machine is received, if the resource scheduling request message represents to need to increase resource, the physical machine is that heavy loading object manages machine, if the resource scheduling request message represents that resource space is not busy, the physical machine is underloading physical machine.
S 303, central administration node send the second negotiation message to underloading physical machine, and the second negotiation message is for inquiring it is electrically operated under carrying out whether underloading physical machine allows.
Central administration node determines after the underloading physical machine in physical machine cluster that central administration node sends the second negotiation message to these underloading physical machines, wherein, the second negotiation message is for inquiring it is electrically operated under carrying out whether underloading physical machine allows.
Underloading physical machine is received after the second negotiation message of central administration node transmission, underloading physical machine can determine whether underloading physical machine allows lower electricity according to the first foundation, and the first result relative to the second negotiation message is returned to central administration node, wherein, the first result can For indicating whether underloading physical machine allows lower electricity.
Optionally, the first operation information or schedule constraints according to the virtual machine run on the application characteristic or underloading physical machine of the virtual machine that can include the characteristic of underloading physical machine, run in underloading physical machine.
Specifically, the characteristic of underloading physical machine can include whether having BMC (Baseboard Management Controller, baseboard management controller in underloading physical machine), or whether underloading physical machine can be by long-range lower electricity;Whether the virtual machine that the application characteristic of the virtual machine run in underloading physical machine can include running in underloading physical machine allows to be migrated;It is less than or equal to 10 minutes if the schedule constraints of the virtual machine run in underloading physical machine can include electric run time in underloading physical machine, does not allow to electricity under underloading physical machine, in order to avoid cause concussion.
Optionally, the source physical machine that the first result can also include estimating completes the lower electricity required time.
S 304, central administration node send the 3rd negotiation message to heavily loaded physical machine, and the 3rd negotiation message is used to inquire whether heavily loaded physical machine allows to carry out Reduction of Students' Study Load operation.
Central administration node determines after the heavily loaded physical machine in physical machine cluster that central administration node sends the 3rd negotiation message to these heavily loaded physical machines, wherein, the 3rd negotiation message is used to inquire whether heavily loaded physical machine allows to carry out Reduction of Students' Study Load operation.
Heavily loaded physical machine is received after the 3rd negotiation message of central administration node transmission, whether heavily loaded physical machine can allow to lighten the burden according to second according to the heavily loaded physical machine of determination, and the second result relative to the 3rd negotiation message is returned to central administration node, wherein, the second result may be used to indicate whether heavily loaded physical machine allows Reduction of Students' Study Load.
Optionally, the second schedule constraints according to the virtual machine run on the application characteristic or heavily loaded physical machine of the virtual machine that can include the characteristic of heavily loaded physical machine, run in heavily loaded physical machine.
Specifically, whether the characteristic of heavily loaded physical machine can heavily loaded including heavily loaded physical machine;Whether the virtual machine that the application characteristic of the virtual machine run in heavily loaded physical machine can include running in heavily loaded physical machine allows to be migrated;The schedule constraints of the virtual machine run in heavily loaded physical machine can include whether violating alternative between the virtual machine that is run in heavily loaded physical machine, and such as some virtual machines can not be operated in same physical machine simultaneously. It should be noted that, above-mentioned steps 303 and 3 04 are optional step, system can perform one of any among step 30 3 and 304 or perform both, and the order performed not immobilizes, step 30 3 can be first carried out and perform step 304 again, step 304 can also be first carried out and perform step 303 again.The present embodiment is example to first carry out step 303 to perform step 304 again.
S 305, central administration node selection underloading physical machine electrically operated under allowing and the heavily loaded physical machine operated that allows to lighten the burden are as source physical machine.
Central administration node is received after the first result and the second result that underloading physical machine and heavily loaded physical machine return respectively, central administration node can be respectively according to the first result and the second result, selection underloading physical machine electrically operated under allowing allows the heavily loaded physical machine that Reduction of Students' Study Load is operated as source physical machine as source physical machine, and selection.
Central administration node is obtained after the information of the physical machine of physical machine cluster, and central administration node according to the information of the physical machine of physical machine cluster, can determine the source physical machine and target physical machine of virtual machine (vm) migration operation.Specifically, source physical machine is the physical machine for having virtual machine to be migrated, target physical machine is the physical machine that virtual machine is moved into.
Optionally, central administration node can determine single source physical machine and single target physical machine;Single source physical machine and multiple target physical machines;Multiple source physical machines and single target physical machine;Or multiple source physical machines and multiple target physical machines, the embodiment of the present invention is not limited.
S 306, central administration node select first object physical machine according to the information of the physical machine of physical machine cluster.
Central administration node can select first object physical machine according to the information of the physical machine of the physical machine cluster of acquisition.Wherein, first object physical machine can be the physical machine of the light load of physical machine cluster.
Optionally, central administration node can also go up at least one physical machine of electric physical machine cluster, and regard at least one physical machine as first object physical machine.
S 307, central administration node send the 5th negotiation message to first object physical machine, and the 5th negotiation message is used to inquire whether first object physical machine receives virtual machine and move into.
Central administration node determines after first object physical machine that central administration node can be to first Target physical machine sends the 5th negotiation message, and the 5th negotiation message can be used for inquiring whether first object physical machine receives virtual machine and move into.
First object physical machine is received after the 5th negotiation message of central administration node transmission, first object physical machine can be moved into according to determining if to allow to receive virtual machine according to the 3rd, and the 3rd result is returned to central administration node, wherein, the 3rd result, which may be used to indicate first object physical machine and whether receive virtual machine, moves into.
3rd schedule constraints according to the virtual machine that can include running in the resource information or first object physical machine of first object physical machine.
Specifically, the resource information of first object physical machine can include first object physical machine resource whether enough operation source physical machine on virtual machine to be migrated;The schedule constraints of the virtual machine run in first object physical machine can include whether violating alternative between these virtual machines, and such as some virtual machines can not be operated in same physical machine simultaneously.Wherein, these above-mentioned virtual machines can include the virtual machine run on the virtual machine to be migrated and first object physical machine in the physical machine of source.
Receive physical machine that virtual machine moves into S 308, central administration node selection first object physical machine as target physical machine.
The 3rd result that central administration node can be returned according to first object physical machine, selection allows to receive physical machine that virtual machine moves into as target physical machine.
S 309, central administration node send the first negotiation message to source physical machine.
Central administration node determines after the physical machine of source that central administration node can send the migration that the first negotiation message consults virtual machine with source physical machine to source virtual machine.
S 31 0, source physical machine determine the information of virtual machine to be migrated.
Source physical machine is received after the first negotiation message of central administration node transmission, and source physical machine can be according to the first negotiation message and first according to the information for determining the virtual machine to be migrated in the physical machine of source.First foundation can the characteristic including physical machine, the schedule constraints of the application characteristic of virtual machine, the operation information of virtual machine or the virtual machine that are run in physical machine.
S 31 1, source physical machine send the response message of the first negotiation message to central administration node, wherein, the information of virtual machine to be migrated is carried in the response message of the first negotiation message.
Source physical machine determined after the information of the virtual machine to be migrated in the physical machine of source, source physics The information of the virtual machine to be migrated can be carried and sent in the response message of the first negotiation message to central administration node by machine, to allow central administration node to know which virtual machine is migrated in the physical machine of source according to the information of the virtual machine to be migrated.
Optionally, the information of the virtual machine to be migrated carried in the response message of the first negotiation message can include the real time resources occupied information of specification, the schedule constraints of virtual machine to be migrated and the virtual machine to be migrated of virtual machine to be migrated.
Further, the specification of virtual machine to be migrated can include model of virtual machine to be migrated etc.;The schedule constraints of virtual machine to be migrated can include alternative etc. whether is violated between virtual machine to be migrated and other virtual machines, and such as some virtual machines can not be operated in same physical machine simultaneously;The real time resources occupied information of virtual machine to be migrated can include virtual machine to be migrated
CPU, internal memory, current utilization of Internet resources etc..
It should be noted that above-mentioned steps 309-31 1 can also simultaneously be performed before step 306, or with step 306-308.
5 31 2, central administration node sends the 4th negotiation message to target physical machine, and the 4th consults to disappear, and carries the information for the virtual machine to be migrated that source physical machine is determined.
Central administration node is got after the information of the virtual machine to be migrated in the physical machine of source, central administration node can send the 4th negotiation message to target physical machine, whether allow to receive the virtual machine to be migrated for inquiry target physical machine, wherein, the 4th negotiation message carries the information for the virtual machine to be migrated that source physical machine is determined.
5 31 3, the response message of the 4th negotiation message of target physical machine transmission is to central administration node, and the response message of the 4th negotiation message carries the information for the virtual machine to be migrated that target physical machine receives.
Target physical machine is received after the 4th negotiation message of central administration node transmission, target physical machine according to the second basis can determine if that the virtual machine to be migrated can be received, and allowed the information carrying of the virtual machine to be migrated received to be sent in the response message of the 4th negotiation message to central administration node, so that central administration node can determine that target physical machine allows to receive which of the virtual machine to be migrated virtual machine according to the response message of the 4th negotiation message.
Optionally, the target physical machine carried in the response message of the 4th negotiation message allows to connect The schedule constraints and target physical machine that the information for the virtual machine to be migrated received can include the virtual machine to be migrated that target physical machine allows the specification of the virtual machine to be migrated received, target physical machine to allow receiving allow the real time resources occupied information of the virtual machine to be migrated received.
Further, target physical machine, which allows the specification of the virtual machine to be migrated received to include target physical machine, allows model of virtual machine to be migrated of receiving etc.;Target physical machine allows the schedule constraints of the virtual machine to be migrated received to include target physical machine allows whether violate alternative etc. between the virtual machine to be migrated and other virtual machines that receive, and such as some virtual machines can not be operated in same physical machine simultaneously;Target physical machine, which allows the real time resources occupied information of the virtual machine to be migrated received to include target physical machine, allows CPU, internal memory, current utilization of Internet resources of virtual machine to be migrated of receiving etc..
Target physical machine is allowed the virtual machine to be migrated received to be migrated from source physical machine to target physical machine by S314, central administration node according to the response message of the 4th negotiation message.
Central administration node knows the information of the virtual machine to be migrated in the physical machine of source, and target physical machine allows after the information of the virtual machine to be migrated of receiving, target physical machine is allowed the virtual machine to be migrated received to move to target physical machine from source virtual machine by central administration node.
Optionally, if the virtual machine in the physical machine of source is completely migrating to target physical machine, central administration node is electrically operated under can then being carried out to source physical machine, so as to reach the purpose of energy-conservation.
Optionally, central administration node can pass through HTTP (Hyper Text Transport Protocol, HTTP), WAP (Wireless Application Protocol, WAP)The first negotiation message, the second negotiation message, the 3rd negotiation message, the 4th negotiation message or the 5th negotiation message are sent etc. mode.
Particularly, target physical machine is subjected to the whole virtual machine to be migrated in the physical machine of source, also can only receive the whole virtual machine to be migrated in the physical machine of source.Specifically, the quantity that target physical machine receives the virtual machine to be migrated in the physical machine of source can be determined according to the resource information of target physical machine itself and the schedule constraints of virtual machine to be migrated, the present invention is not limited.
It should be noted that, if there are many underloading physical machines to allow lower electric, there is Duo Tai sources physical machine, central administration node can migrate the virtual machine run in the physical machine of source and lower power supply physical machine in the way of once selecting a source physical machine, the virtual machine run in the physical machine of source and lower power supply physical machine can also be migrated in the way of the whole source physical machines of a Sexual behavior mode, this Invention is not limited.
Accordingly, if there are many heavily loaded physical machines to allow Reduction of Students' Study Load, there is Duo Tai sources physical machine, central administration node can migrate the virtual machine run in the physical machine of source in the way of once selecting a source physical machine, the virtual machine run in the physical machine of source can also be migrated in the way of the whole source physical machines of a Sexual behavior mode, the present invention is not limited.
Resource regulating method provided in an embodiment of the present invention, central administration node by with physical machine Negotiation Decision Making scheduling of resource, so as to mitigate the burden that central administration node need to collect the information of virtual machine in physical machine, the bottleneck problem of central administration node in the prior art is avoided, and then supports large-scale physical machine cluster.
The embodiment of the present invention provides a kind of resource regulating method, pass through the information of the physical machine according to physical machine cluster, after the source physical machine and target physical machine that determine virtual machine (vm) migration operation, the first negotiation message is sent to source physical machine, and receive the response message for the first negotiation message that source physical machine is sent, the response message of first negotiation message carries the information for the virtual machine to be migrated that source physical machine is determined, and the information of the virtual machine to be migrated determined according to source physical machine, virtual machine to be migrated is migrated to target physical machine from source physical machine.Pass through the program, because central administration node can interpolate that out the source physical machine and target physical machine of virtual machine (vm) migration, and held consultation respectively with source physical machine and target physical machine, to determine which virtual machine needs migration in the physical machine of source, and which target physical machine can receive the virtual machine to be migrated on source virtual machine, the burden of the virtual machine information in a large amount of physical machines is collected the need for so as to carry out the scheduling of resource of physical machine cluster, and then mitigation central administration node eventually through the result with source physical machine and the negotiation of target physical machine.
Embodiment three
As shown in Fig. 5, the embodiment of the present invention provides a kind of central administration node 1, and the central administration node 1 can include:
Determining unit 10, for the information of the physical machine according to physical machine cluster, determines the source physical machine and target physical machine of virtual machine (vm) migration operation.
Transmitting element 11, the source physical machine for being determined to the determining unit 10 sends the first negotiation message.
Receiving unit 12, the sound for receiving the first negotiation message that the source physical machine is sent Message is answered, the response message of first negotiation message carries the information for the virtual machine to be migrated that the source physical machine is determined.
Migration units 13, the information for the virtual machine to be migrated that the source physical machine for being received according to the receiving unit 12 is determined, the virtual machine to be migrated is migrated to the target physical machine from the source physical machine.
Optionally, the determining unit 10, specifically for the information of the physical machine according to the physical machine cluster, determine the underloading physical machine in the physical machine cluster, and underloading physical machine electrically operated under allowing is selected as the source physical machine, and the transmitting element 11, it is additionally operable to the underloading physical machine into the physical machine cluster of the determining unit 10 determination and sends the second negotiation message, it is electrically operated under carrying out that second negotiation message is used to inquire whether the underloading physical machine in the physical machine cluster to allow..
Optionally, the determining unit 10, specifically for the information of the physical machine according to the physical machine cluster, determine the heavily loaded physical machine in the physical machine cluster, and the heavily loaded physical machine for allowing Reduction of Students' Study Load to operate is selected as the source physical machine, and the transmitting element 11, it is additionally operable to the heavily loaded physical machine into the physical machine cluster of the determining unit 10 determination and sends the 3rd negotiation message, the 3rd negotiation message is used to inquire whether the heavily loaded physical machine in the physical machine cluster to allow to carry out Reduction of Students' Study Load operation.
Optionally, the virtual machine to be migrated is migrated to before the target physical machine from the source physical machine in the migration units 13:
The transmitting element 11, it is additionally operable to send the 4th negotiation message to the target physical machine, 4th negotiation message carries the information for the virtual machine to be migrated that the source physical machine is determined, and the receiving unit 12, it is additionally operable to receive the response message for the 4th negotiation message that the target physical machine is sent, the response message of the 4th negotiation message carries the information for the virtual machine to be migrated that the target physical machine receives;Correspondingly, the migration units 13, specifically for the response message of the 4th negotiation message received according to the receiving unit 12, the target physical machine is moved to by the virtual machine to be migrated of target physical machine receiving from the source physical machine.
Optionally, the determining unit 10, specifically for the information according to the physical machine according to the physical machine cluster, selects first object physical machine, and select the first object physics Receive physical machine that virtual machine moves into machine as the target physical machine, and the transmitting element 11, it is additionally operable to send the 5th negotiation message to the first object physical machine that the determining unit 10 is determined, the 5th negotiation message is used to inquire whether the first object physical machine receives virtual machine and move into.
The determining unit 10, is additionally operable to before selection first object physical machine, is power-up to a few physical machine, and using it is upper it is electric described at least one physical machine be used as the first object physical machine.Target physical machine is stated, is additionally operable to electrically operated under being carried out to the source physical machine.
The receiving unit 12, it is additionally operable to obtain the real time resources occupied information of the physical machine of the physical machine cluster, or obtain the resource scheduling request message that the physical machine of the physical machine cluster is sent, the resource scheduling request message is sent by underloading or heavily loaded physical machine, and the determining unit 10, specifically for the real time resources occupied information of the physical machine of the physical machine cluster obtained according to the receiving unit 12 or the resource scheduling request message, the source physical machine and the target physical machine are determined.
Optionally, central administration node provided in an embodiment of the present invention can include physical machine, virtual machine, ARM (Advanced reduced instruction set computer Machines, advanced RISC machines platform), DSP (Digital Signal Processing, Digital Signal Processing)Platform, embedded system and single-chip microcomputer.
The embodiment of the present invention provides a kind of central administration node, the central administration node is according to the information of the physical machine of physical machine cluster, after the source physical machine and target physical machine that determine virtual machine (vm) migration operation, the central administration node sends the first negotiation message to source physical machine, and receive the response message for the first negotiation message that source physical machine is sent, the response message of first negotiation message carries the information for the virtual machine to be migrated that source physical machine is determined, and the information of virtual machine to be migrated that the central administration node is determined according to source physical machine, virtual machine to be migrated is migrated to target physical machine from source physical machine.Pass through the program, because central administration node can interpolate that out the source physical machine and target physical machine of virtual machine (vm) migration, and held consultation respectively with source physical machine and target physical machine, to determine which virtual machine needs migration in the physical machine of source, and which target physical machine can receive the virtual machine to be migrated on source virtual machine, so that eventually through The result consulted with source physical machine and target physical machine collected the need for the scheduling of resource of physical machine cluster, and then mitigation central administration node the burden of the virtual machine information in a large amount of physical machines.
As shown in Fig. 6, the embodiment of the present invention provides a kind of physical machine 2, and the physical machine 2 can include:
Receiving unit 20, the first negotiation message for receiving central administration node transmission.Transmitting element 21, response message for sending from the first negotiation message to the central administration node, the response message of first negotiation message carries the information of virtual machine to be migrated, to cause the central administration node to be migrated according to the information of the virtual machine to be migrated to the virtual machine to be migrated.
Optionally, as shown in fig. 7, physical machine provided in an embodiment of the present invention 2 also includes:Determining unit 22, for first negotiation message and the first foundation received according to the receiving unit 20, determine the information of the virtual machine to be migrated, wherein, the described first schedule constraints according to the application characteristic of virtual machine, the operation information of virtual machine or the virtual machine run in the characteristic including physical machine, physical machine.
Optionally, the transmitting element 21, is additionally operable to before the receiving unit 20 receives the first negotiation message that central administration node is sent, resource scheduling request message or the resource occupation information of itself is sent to the central administration node.
Optionally, physical machine 2 provided in an embodiment of the present invention can include entity computer.The embodiment of the present invention provides a kind of physical machine, the physical machine receives the first negotiation message that central administration node is sent, and the response message of the first negotiation message is sent to central administration node, the response message of first negotiation message carries the information of virtual machine to be migrated, to cause central administration node according to the letter of virtual machine to be migrated, ^ is migrated to virtual machine to be migrated.Pass through the program, because physical machine can return to the response message of the first negotiation message after the first negotiation message of central administration node transmission is received, and the information for the virtual machine that migration is needed in physical machine is carried in the response message of the first negotiation message, so that the first negotiation that central administration node can be returned according to physical machine disappears, response message carry out the scheduling of resource of physical machine cluster, and then the burden of virtual machine information in a large amount of physical machines is collected the need for mitigating central administration node. Example IV
It is the structure composition schematic diagram of central administration node provided in an embodiment of the present invention as shown in Fig. 8, the central administration node of the embodiment of the present invention can include processor 14, memory 15, system bus 16 and communication interface 17.Connected between processor 14, memory 15 and communication interface 17 by system bus 16 and complete mutual communication.
Processor 14 may be monokaryon or multinuclear CPU, be either specific integrated circuit or one or more integrated circuits to be configured to implement the embodiment of the present invention.
Memory 15 can be high-speed RAM memory, or nonvolatile memory (non-volat i le memory), for example, at least one magnetic disk storage.
Memory 15 is used to store computer executed instructions.Specifically, program code can be included in computer executed instructions.
When central administration node is run, the operation computer executed instructions of processor 14, can perform Fig. 2 or Fig. 4 it is one of any described in method flow, specifically include:
The processor 14, information for the physical machine according to physical machine cluster, determine the source physical machine and target physical machine of virtual machine (vm) migration operation, and the first negotiation message is sent to the source physical machine by the system bus 16 and the communication interface 17, and the response message for the first negotiation message that the source physical machine is sent is received by the system bus 16 and the communication interface 17, the response message of first negotiation message carries the information for the virtual machine to be migrated that the source physical machine is determined, and the processor 14, for the information of the virtual machine to be migrated determined according to the source physical machine, the virtual machine to be migrated is migrated to the target physical machine from the source physical machine, the memory 15, program code available for the information of the physical machine of storage physical machine cluster, the program code of first negotiation message, the program code of the response message of first negotiation message, and the control processor 14 completes the computer instruction of above-mentioned steps, so that the processor 14 is instructed by performing above computer and calls each above-mentioned program code to complete above-mentioned steps.
Optionally, the processor 14, specifically for the information of the physical machine according to the physical machine cluster, determine the underloading physical machine in the physical machine cluster, and the second negotiation message is sent by the underloading physical machine of the system bus 16 and the communication interface 17 into the physical machine cluster, second negotiation message is used to inquire light in the physical machine cluster It is electrically operated under carrying out whether load physical machine allows, and selects underloading physical machine electrically operated under allowing as the source physical machine.
Optionally, the processor 14, specifically for the information of the physical machine according to the physical machine cluster, determine the heavily loaded physical machine in the physical machine cluster, and the 3rd negotiation message is sent by the heavily loaded physical machine of the system bus 16 and the communication interface 17 into the physical machine cluster, 3rd negotiation message is used to inquire whether the heavily loaded physical machine in the physical machine cluster to allow to carry out Reduction of Students' Study Load operation, and selection allows the heavily loaded physical machine that Reduction of Students' Study Load is operated as the source physical machine.Before mark physical machine:
The processor 14, it is additionally operable to send the 4th negotiation message to the target physical machine by the system bus 16 and the communication interface 17,4th negotiation message carries the information for the virtual machine to be migrated that the source physical machine is determined, and the response message for the 4th negotiation message that the target physical machine is sent is received by the system bus 16 and the communication interface 17, the response message of the 4th negotiation message carries the information for the virtual machine to be migrated that the target physical machine receives;Correspondingly, the processor 14, specifically for the response message according to the 4th negotiation message, the target physical machine is moved to by the virtual machine to be migrated of target physical machine receiving from the source physical machine.
Optionally, the processor, specifically for the information according to the physical machine according to the physical machine cluster, select first object physical machine, and the 5th negotiation message is sent to the first object physical machine by the system bus 16 and the communication interface 17,5th negotiation message is used to inquire whether the first object physical machine receives virtual machine and move into, and receives physical machine that virtual machine moves into the selection first object physical machine as the target physical machine.
Optionally, the processor 14, is additionally operable to before selection first object physical machine, is power-up to a few physical machine, and using it is upper it is electric described at least one physical machine be used as the first object physical machine.
Optionally, the processor 14, if the virtual machine in the source physical machine is completely migrating to the target physical machine, is additionally operable to electrically operated under being carried out to the source physical machine. Optionally, the processor 14, it is additionally operable to obtain the real time resources occupied information of the physical machine of the physical machine cluster by the system bus 16 and the communication interface 17, or the resource scheduling request message that the physical machine of the physical machine cluster is sent is obtained, the resource scheduling request message is sent by underloading or heavily loaded physical machine;And the processor 14, real time resources occupied information or the resource scheduling request message specifically for the physical machine according to the physical machine cluster, determine the source physical machine and the target physical machine.
Optionally, central administration node provided in an embodiment of the present invention can include physical machine, virtual machine, ARM, DS P platforms, embedded system and single-chip microcomputer.
The embodiment of the present invention provides a kind of central administration node, the central administration node is according to the information of the physical machine of physical machine cluster, after the source physical machine and target physical machine that determine virtual machine (vm) migration operation, the central administration node sends the first negotiation message to source physical machine, and receive the response message for the first negotiation message that source physical machine is sent, the response message of first negotiation message carries the information for the virtual machine to be migrated that source physical machine is determined, and the information of virtual machine to be migrated that the central administration node is determined according to source physical machine, virtual machine to be migrated is migrated to target physical machine from source physical machine.Pass through the program, because central administration node can interpolate that out the source physical machine and target physical machine of virtual machine (vm) migration, and held consultation respectively with source physical machine and target physical machine, to determine which virtual machine needs migration in the physical machine of source, and which target physical machine can receive the virtual machine to be migrated on source virtual machine, the burden of the virtual machine information in a large amount of physical machines is collected the need for so as to carry out the scheduling of resource of physical machine cluster, and then mitigation central administration node eventually through the result with source physical machine and the negotiation of target physical machine.
As shown in figure 9, being the structure composition schematic diagram of physical machine provided in an embodiment of the present invention, the physical machine of the embodiment of the present invention can include processor 23, memory 24, system bus 25 and communication interface 26.Connected between processor 23, memory 24 and communication interface 26 by system bus 25 and complete mutual communication.
Processor 23 may be monokaryon or multinuclear CPU, be either specific integrated circuit or one or more integrated circuits to be configured to implement the embodiment of the present invention.
Memory 24 can be high-speed RAM memory, or nonvolatile memory, for example, at least one magnetic disk storage. Memory 24 is used to store computer executed instructions.Specifically, program code can be included in computer executed instructions.
When physical machine is run, the operation computer executed instructions of processor 23, can perform Fig. 3 or Fig. 4 it is one of any described in method flow, specifically include:
The processor 23, for receiving the first negotiation message that central administration node is sent by the system bus 25 and the communication interface 26, and the response message of the first negotiation message is sent to the central administration node by the system bus 25 and the communication interface 26, the response message of first negotiation message carries the information of virtual machine to be migrated, to cause the central administration node to be migrated according to the information of the virtual machine to be migrated to the virtual machine to be migrated, the memory 24 can be used for the program code of the first negotiation message of storage, the program code of the response message of first negotiation message, and the control processor 23 completes the computer instruction of above-mentioned steps, so that the processor 23 is instructed by performing above computer and calls each above-mentioned program code to complete above-mentioned steps.
Optionally, the processor 23, for according to first negotiation message stored in the memory 24 and the first foundation, determine the information of the virtual machine to be migrated, wherein, the described first schedule constraints according to the application characteristic of virtual machine, the operation information of virtual machine or the virtual machine run in the characteristic including physical machine, physical machine.
Optionally, the processor 23, it is additionally operable to before the first negotiation message that heart management node is sent in the reception, resource scheduling request message or the resource occupation information of itself is sent to the central administration node by the system bus 25 and the communication interface 26.
Optionally, physical machine 2 provided in an embodiment of the present invention can include entity computer.The embodiment of the present invention provides a kind of physical machine, the physical machine receives the first negotiation message that central administration node is sent, and the response message of the first negotiation message is sent to central administration node, the response message of first negotiation message carries the information of virtual machine to be migrated, to cause central administration node according to the letter of virtual machine to be migrated, ^ is migrated to virtual machine to be migrated.Pass through the program, because physical machine can return to the response message of the first negotiation message after the first negotiation message of central administration node transmission is received, and the information for the virtual machine that migration is needed in physical machine is carried in the response message of the first negotiation message, so that central administration node can be returned according to physical machine first consult to disappear, bag, response message carry out physical machine cluster The burden of the virtual machine information in a large amount of physical machines is collected the need for scheduling of resource, and then mitigation central administration node.
Embodiment five
As shown in Fig. 10, embodiments of the invention provide a kind of resource scheduling system, including central administration node, source physical machine and target physical machine, wherein,
The central administration node, information for the physical machine according to physical machine cluster, after the source physical machine and target physical machine that determine virtual machine (vm) migration operation, the first negotiation message is sent to the source physical machine, and receive that the source physical machine sends first consults to disappear, bag, response message, described first consults to disappear, bag, response disappear, bag, carry the information for the virtual machine to be migrated that the source physical machine is determined, and the letter source physical machine of the virtual machine to be migrated determined according to the source physical machine, consult to disappear for receiving the first of central administration node transmission, , and the response message of the first negotiation message is sent to the central administration node;
The target physical machine, for receiving moving into for the virtual machine to be migrated.
Optionally, the central administration node, specifically for the information of the physical machine according to the physical machine cluster, determine the underloading physical machine in the physical machine cluster, and the underloading physical machine into the physical machine cluster sends the second negotiation message, it is electrically operated under carrying out that second negotiation message is used to inquire whether the underloading physical machine in the physical machine cluster to allow, and selects underloading physical machine electrically operated under allowing as the source physical machine.
Optionally, the central administration node, specifically for the information of the physical machine according to the physical machine cluster, determine the heavily loaded physical machine in the physical machine cluster, and the heavily loaded physical machine into the physical machine cluster sends the 3rd negotiation message, 3rd negotiation message is used to inquire whether the heavily loaded physical machine in the physical machine cluster to allow to carry out Reduction of Students' Study Load operation, and selection allows the heavily loaded physical machine that Reduction of Students' Study Load is operated as the source physical machine.
Optionally, the central administration node, the virtual machine to be migrated is migrated to before the target physical machine from the source physical machine, it is additionally operable to send the 4th negotiation message to the target physical machine, 4th negotiation message carries the information for the virtual machine to be migrated that the source physical machine is determined, and receive the 4th negotiation that the target physical machine sends and disappear, response message, what the response message of the 4th negotiation message carried that the target physical machine receives waits to move Move the information of virtual machine;Correspondingly, the central administration node, specifically for the response message according to the 4th negotiation message, the target physical machine is moved to by the virtual machine to be migrated of target physical machine receiving from the source physical machine.
Optionally, the central administration node, specifically for the information of the physical machine according to the physical machine cluster, select first object physical machine, and send the 5th negotiation message to the first object physical machine, 5th negotiation message is used to inquire whether the first object physical machine receives virtual machine and move into, and receives physical machine that virtual machine moves into the selection first object physical machine as the target physical machine.
Optionally, the central administration node, before selection first object physical machine, is additionally operable to be power-up to a few physical machine, and using it is upper it is electric described at least one physical machine be used as the first object physical machine.
Optionally, the central administration node, if the virtual machine in the source physical machine is completely migrating to the target physical machine, is additionally operable to electrically operated under being carried out to the source physical machine.
Optionally, the central administration node, it is additionally operable to obtain the real time resources occupied information of the physical machine of the physical machine cluster, or obtains the resource scheduling request message that the physical machine of the physical machine cluster is sent, the resource scheduling request message is sent by underloading or heavily loaded physical machine;Wherein, the central administration node, real time resources occupied information or the resource scheduling request message specifically for the physical machine according to the physical machine cluster, determines the source physical machine and the target physical machine;And the source physical machine, in the reception before the first negotiation message of heart management node transmission, it is additionally operable to send resource scheduling request message to the central administration node.
Optionally, the source physical machine, it is additionally operable to according to first negotiation message and the first foundation, determine the information of the virtual machine to be migrated, the described first schedule constraints according to the application characteristic of virtual machine, the operation information of virtual machine or the virtual machine for including the characteristic of physical machine, running in physical machine.
Below by taking resource scheduling system provided in an embodiment of the present invention as an example, it is divided to two scenes(Scene one and scene two)Further illustrate resource regulating method provided in an embodiment of the present invention.Specifically, resource scheduling system provided in an embodiment of the present invention can include central administration node and physical machine, operation has virtual machine wherein in physical machine. Scene one:It is electric under physical machine
As shown in figure 11, resource scheduling system includes the physical machine cluster that physical machine 01, physical machine 02 and physical machine 03 are constituted(Physical machine cluster can include multiple physical machines, exemplified by this sentences physical machine cluster including three physical machines);The virtual machine 01 run in physical machine 01;The virtual machine 02 and virtual machine 03 run in physical machine 02;The virtual machine 04 run in physical machine 03;And central administration node.Wherein, software module, such as distributed agent are deployed with physical machine 01, physical machine 02 and physical machine 03.
Exemplary, because the virtual machine run in physical machine 01 and physical machine 03 is less, therefore, in actual use, energy consumption can be saved by re-starting scheduling following electric physical machine 01 or physical machine 03 to the virtual machine in each physical machine.Specific steps can include:
(1) the physics machine information that central administration node is reported according to 3 physical machines, determines underloading physical machine.In this example, central administration node finds that internal memory is minimum used in physical machine 01, and moving costs is minimum, therefore, and central administration node determines to electrically operated under the progress of physical machine 01, i.e., to regard physical machine 01 as underloading physical machine;Central administration node can determine that other physical machines in addition to physical machine 01 as first object physical machine, you can determine physical machine 02 and physical machine 03 as first object physical machine.
(2) central administration node determines physical machine 01 for after underloading physical machine, central administration node sends the second negotiation message to physical machine 01, whether allow for inquiry physical machine 01 electrically operated under carrying out, for example, if physical machine 01 allow carry out under it is electrically operated, central administration node selection physical machine 01 be used as source physical machine.
(3) central administration node sends the first negotiation information to physical machine 01;And the response message of the first negotiation message of the return of physical machine 01 is received, wherein, the response message of the first negotiation message carries the information of the information, such as virtual machine 01 of the virtual machine to be migrated that physical machine 01 is determined.
(4) central administration node sends the 5th negotiation message to physical machine 02 and physical machine 03, reception virtual machine whether is allowed to move into for inquiry physical machine 02 and physical machine 03, for example, if the refusal of physical machine 02 receives virtual machine and moved into, physical machine 03 agrees to that receiving virtual machine moves into, then central administration node selection physical machine 03 is used as target physical machine.
(5) central administration node sends the 4th negotiation message to physical machine 03, and the 4th consults Message carries the information for the virtual machine to be migrated that physical machine 01 is determined, that is the information of virtual machine 01, and receive the response message of the 4th negotiation message of the transmission of physical machine 03, the response message of 4th negotiation message carries the information of the information, such as virtual machine 01 for the virtual machine to be migrated that physical machine 03 receives.
(6) central administration node migrates the virtual machine 01 run in physical machine 01 to physical machine 03 according to the response message of the 4th negotiation message.
(7) central administration node is electrically operated under being carried out to physical machine 01, to reach the purpose for saving energy consumption.
Resource scheduling system provided in an embodiment of the present invention, if energy consumption need to be saved to electricity under the physical machine of underloading, central administration node then can by with physical machine Negotiation Decision Making scheduling of resource, so as to mitigate the burden that central administration node need to collect the information of virtual machine in physical machine, the bottleneck problem of central administration node in the prior art is avoided, and then supports large-scale physical machine cluster.
Scene two:It is electric in physical machine
As shown in Fig. 12, resource scheduling system includes the physical machine cluster that physical machine 01, physical machine 02 and physical machine 03 are constituted(Physical machine cluster can include multiple physical machines, exemplified by this sentences physical machine cluster including three physical machines;);The virtual machine 02 and virtual machine 03 run in physical machine 02;The virtual machine 01 and virtual machine 04 run in physical machine 03;And central administration node.Wherein, physical machine 01 is to be deployed with software module, such as distributed agent in lower electric physical machine, physical machine 01, physical machine 02 and physical machine 03.
Exemplary, because the virtual machine run in physical machine 03 is more, and the resource of physical machine 03 can not meet the resource requirement of these virtual machines, therefore, in actual use, it can migrate to physical machine 01 to carry out the balanced of virtual machine and ensure application Qo S by upper electric physical machine 01, and by the partial virtual machine run in physical machine 03.Specific steps can include:
(1) the physics machine information that central administration node is reported according to 3 physical machines, it is determined that heavily loaded physical machine.In this example, central administration node finds that the average resource of physical machine 02 and physical machine 03 is higher than default wealthy value, therefore, determine to carry out migration equilibrium to the virtual machine run in physical machine 02 and physical machine 03, i.e., regard physical machine 02 and physical machine 03 as heavily loaded physical machine;Central administration node can be to electricity in the physical machine 01 of lower electricity, and by physical machine 01 is used as first object physical machine.
(2) central administration node determines physical machine 02 and physical machine 03 for after heavy loading object reason machine, central administration node sends the 3rd negotiation message respectively to physical machine 02 and physical machine 03, whether allow to carry out Reduction of Students' Study Load operation for inquiry physical machine 02 and physical machine 03, for example, if physical machine 02 and physical machine 03 allow to carry out Reduction of Students' Study Load operation, central administration node selection physical machine 02 and physical machine 03 are used as source physical machine.
(3) central administration node sends the first negotiation information respectively to physical machine 02 and physical machine 03;And receive the response message for the first negotiation message that physical machine 02 and physical machine 03 are returned respectively, wherein, the response message of first negotiation message carries the information of the virtual machine 01 run in the information and physical machine 03 of the virtual machine 02 run in the information for the virtual machine to be migrated that physical machine 02 and physical machine 03 are determined, such as physical machine 02.
(4) central administration node sends the 5th negotiation message to physical machine 01, reception virtual machine whether is allowed to move into for inquiry physical machine 01, for example, if physical machine 01 agrees to that receiving virtual machine moves into, central administration node selection physical machine 01 is used as target physical machine.
Optionally, if also including other physical machines in physical machine cluster, the physical machine of other underloadings also may be selected as target physical machine in central administration node.
(5) central administration node sends the 4th negotiation message to physical machine 01,4th negotiation message carries the information for the virtual machine to be migrated that physical machine 02 and physical machine 03 are determined, that is the information of virtual machine 02 and the information of virtual machine 01, and receive the response message of the 4th negotiation message of the transmission of physical machine 01, the response message of 4th negotiation message carries the information for the virtual machine to be migrated that physical machine 01 receives, such as information of virtual machine 02 and the information of virtual machine 01.
(6) central administration node migrates the virtual machine 02 run in physical machine 02 and the virtual machine 01 run in physical machine 03 to physical machine 01 according to the response message of the 4th negotiation message.
Resource scheduling system provided in an embodiment of the present invention, if need to be lightened the burden to the physical machine of heavy duty, carry out equilibrium to the virtual machine run on heavy loading object reason machine to ensure to apply Qo S, central administration node then can by with physical machine Negotiation Decision Making scheduling of resource, so as to mitigate the burden that central administration node need to collect the information of virtual machine in physical machine, the bottleneck problem of central administration node in the prior art is avoided, and then supports large-scale physical machine cluster. It is apparent to those skilled in the art that, for convenience and simplicity of description, only it is illustrated with the division of above-mentioned each functional module, in practical application, it can as needed and by above-mentioned functions distribute and be completed by different functional modules, the internal structure of device is divided into different functional modules, to complete all or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be realized by another way.For example, device embodiment described above is only schematical, for example, the division of the module or unit, it is only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.Another, it, by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, can be electrical, machinery or other forms that shown or discussed coupling or direct-coupling or communication connection each other, which can be,.
The unit illustrated as separating component can be or may not be physically separate, the part shown as unit can be or may not be physical location, a place can be located at, or can also be distributed on multiple NEs.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each of the invention embodiment can be integrated in a processing unit or unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or in use, can be stored in a computer read/write memory medium.Understood based on such, the part or all or part of the technical scheme that technical scheme substantially contributes to prior art in other words can be embodied in the form of software product, the computer software product is stored in a storage medium, including some instructions are to cause a computer equipment(Can be personal computer, server, or network are set It is standby etc.)Or processor(Processor all or part of step of each embodiment methods described of the invention) is performed.And foregoing storage medium includes:U disks, mobile hard disk, read-only storage(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It is described above; only embodiment of the invention, but protection scope of the present invention is not limited thereto, any one skilled in the art the invention discloses technical scope in; change or replacement can be readily occurred in, should be all included within the scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (1)

  1. Claims
    1st, a kind of resource regulating method, it is characterised in that including:
    According to the information of the physical machine of physical machine cluster, the source physical machine and target physical machine of virtual machine (vm) migration operation are determined;
    The first negotiation message is sent to the source physical machine;
    Receive the response message for the first negotiation message that the source physical machine is sent, described first consults to disappear, bag, response disappear, wrap, carry the information for the virtual machine to be migrated that the source physical machine is determined;The information of the virtual machine to be migrated determined according to the source physical machine, the virtual machine to be migrated is migrated to the target physical machine from the source physical machine.
    2nd, the resource regulating method according to claim 1, it is characterised in that the information of the physical machine according to physical machine cluster, determines the source physical machine of virtual machine (vm) migration operation, including:
    According to the information of the physical machine of the physical machine cluster, the underloading physical machine in the physical machine cluster is determined;
    The second negotiation message is sent to the underloading physical machine, second negotiation message is for inquiring it is electrically operated under carrying out whether the underloading physical machine allows;
    Selection underloading physical machine electrically operated under allowing is as the source physical machine.
    3rd, resource regulating method according to claim 1 or 2, it is characterised in that the information of the physical machine according to physical machine cluster, determines the source physical machine of virtual machine (vm) migration operation, including:
    According to the information of the physical machine of the physical machine cluster, the heavily loaded physical machine in the physical machine cluster is determined;
    The 3rd negotiation message is sent to the heavily loaded physical machine, the 3rd negotiation message is used to inquire whether the heavily loaded physical machine allows to carry out Reduction of Students' Study Load operation;
    Selection allows the heavily loaded physical machine that Reduction of Students' Study Load is operated as the source physical machine.
    4th, the resource regulating method according to any one of claim 1-3, it is characterised in that methods described also includes:
    The 4th negotiation message is sent to the target physical machine, the 4th negotiation message carries institute State the information for the virtual machine to be migrated that source physical machine is determined;
    The response message for the 4th negotiation message that the target physical machine is sent is received, the response message of the 4th negotiation message carries the information for the virtual machine to be migrated that the target physical machine receives;
    Correspondingly, according to the response message of the 4th negotiation message, the virtual machine to be migrated of target physical machine receiving is moved into the target physical machine from the source physical machine.
    5th, the resource regulating method according to claim 1 or 4, it is characterised in that the information of the physical machine according to physical machine cluster, determines the target physical machine of virtual machine (vm) migration operation, including:
    According to the information of the physical machine of the physical machine cluster, first object physical machine is selected;The 5th negotiation message is sent to the first object physical machine, the 5th negotiation message is used to inquire whether the first object physical machine receives virtual machine and move into;
    Select to receive in the first object physical machine physical machine that virtual machine moves into as the target physical machine.
    6th, the resource regulating method according to claim 5, it is characterised in that before the selection first object physical machine, methods described also includes:
    Be power-up to a few physical machine, and using it is upper it is electric described at least one physical machine be used as the first object physical machine.
    7th, the resource regulating method according to claim 1, it is characterised in that methods described also includes:
    It is electrically operated under being carried out to the source physical machine if the virtual machine in the source physical machine is completely migrating to the target physical machine.
    8th, the resource regulating method according to claim 1, it is characterised in that before the source physical machine and target physical machine of the determination virtual machine (vm) migration operation, methods described also includes:The real time resources occupied information of the physical machine of the physical machine cluster is obtained, or obtains the resource scheduling request message that the physical machine of the physical machine cluster is sent, the resource scheduling request message is sent by underloading or heavily loaded physical machine;
    Wherein, the information of the physical machine according to physical machine cluster, determines the source physical machine and target physical machine of virtual machine (vm) migration operation, including: According to the real time resources occupied information of the physical machine of the physical machine cluster or the resource scheduling request message, the source physical machine and the target physical machine are determined.
    9th, a kind of resource regulating method, it is characterised in that including:
    Receive the first negotiation message that central administration node is sent;
    The response message of the first negotiation message is sent to the central administration node, described first consults to disappear, bag, response disappear, the information of virtual machine to be migrated is wrapped, carries, to cause the central administration node to be migrated according to the information of the virtual machine to be migrated to the virtual machine to be migrated.
    10, resource regulating method according to claim 9, it is characterised in that after the first negotiation message that the reception central administration node is sent, methods described also includes:
    According to first negotiation message and the first foundation, determine the information of the virtual machine to be migrated, wherein, the described first schedule constraints according to the application characteristic of virtual machine, the operation information of virtual machine or the virtual machine run in the characteristic including physical machine, physical machine.
    11, the resource regulating method according to claim 9 or 10, it is characterised in that before the first negotiation message that the reception central administration node is sent, methods described also includes:Resource scheduling request message is sent to the central administration node;Or,
    The resource occupation information of itself is sent to the central administration node.
    12, a kind of central administration node, it is characterised in that including:
    Determining unit, for the information of the physical machine according to physical machine cluster, determines the source physical machine and target physical machine of virtual machine (vm) migration operation;
    Transmitting element, the source physical machine for being determined to the determining unit sends the first negotiation message;
    Receiving unit, consults to disappear for receiving the source physical machine is sent first, bag, response message, the response message of first negotiation message carries the information for the virtual machine to be migrated that the source physical machine is determined;
    Migration units, what the source physical machine for being received according to the receiving unit was determined treats target physical machine.
    13, the central administration node according to claim 12, it is characterised in that the determining unit, specifically for the information of the physical machine according to the physical machine cluster, The underloading physical machine in the physical machine cluster is determined, and selects underloading physical machine electrically operated under allowing as the source physical machine;
    The transmitting element, is additionally operable to the underloading physical machine into the physical machine cluster of determining unit determination and sends the second negotiation message, it is electrically operated under carrying out that second negotiation message is used to inquire whether the underloading physical machine in the physical machine cluster to allow.
    14, the central administration node according to claim 12 or 13, it is characterized in that, the determining unit, specifically for the information of the physical machine according to the physical machine cluster, the heavily loaded physical machine in the physical machine cluster is determined, and selects the heavily loaded physical machine for allowing Reduction of Students' Study Load to operate as the source physical machine;
    The transmitting element, is additionally operable to the heavily loaded physical machine into the physical machine cluster of determining unit determination and sends the 3rd negotiation message, the 3rd negotiation message is used to inquire whether the heavily loaded physical machine in the physical machine cluster to allow to carry out Reduction of Students' Study Load operation.
    15, the central administration node according to any one of claim 1 2-1 4, its feature is before target physical machine:
    The transmitting element, is additionally operable to send the 4th negotiation message to the target physical machine, the 4th negotiation message carries the information for the virtual machine to be migrated that the source physical machine is determined;
    The receiving unit, is additionally operable to receive the response message for the 4th negotiation message that the target physical machine is sent, and the response message of the 4th negotiation message carries the information for the virtual machine to be migrated that the target physical machine receives;
    Correspondingly, the migration units, specifically for the response message of the 4th negotiation message received according to the receiving unit, the target physical machine is moved to by the virtual machine to be migrated of target physical machine receiving from the source physical machine.
    16, the central administration node according to claim 12 or 15, it is characterized in that, the determining unit, specifically for the information according to the physical machine according to the physical machine cluster, select first object physical machine, and select to receive in the first object physical machine physical machine that virtual machine moves into as the target physical machine;
    The transmitting element, is additionally operable to send the 5th negotiation message to the first object physical machine that the determining unit is determined, the 5th negotiation message is used to inquire the first object physics Whether machine, which receives virtual machine, is moved into.
    17, the central administration node according to claim 16, characterized in that, the determining unit, is additionally operable to before selection first object physical machine, be power-up to a few physical machine, and using it is upper it is electric described at least one physical machine be used as the first object physical machine.
    18, the central administration node according to claim 12, it is characterised in that the migration units, if the virtual machine in the source physical machine is completely migrating to the target physical machine, is additionally operable to electrically operated under being carried out to the source physical machine.
    19, the central administration node according to claim 12, it is characterized in that, the receiving unit, it is additionally operable to obtain the real time resources occupied information of the physical machine of the physical machine cluster, or the resource scheduling request message that the physical machine of the physical machine cluster is sent is obtained, the resource scheduling request message is sent by underloading or heavily loaded physical machine;
    The determining unit, specifically for the real time resources occupied information of the physical machine of the physical machine cluster obtained according to the receiving unit or the resource scheduling request message, determines the source physical machine and the target physical machine.
    20, a kind of physical machine, it is characterised in that including:
    Receiving unit, the first negotiation message for receiving central administration node transmission;Transmitting element, response message for sending from the first negotiation message to the central administration node, the response message of first negotiation message carries the information of virtual machine to be migrated, to cause the central administration node to be migrated according to the information of the virtual machine to be migrated to the virtual machine to be migrated.
    21, the physical machine according to claim 20, it is characterised in that the physical machine also includes:
    Determining unit, for first negotiation message and the first foundation received according to the receiving unit, determine the information of the virtual machine to be migrated, wherein, the described first schedule constraints according to the application characteristic of virtual machine, the operation information of virtual machine or the virtual machine run in the characteristic including physical machine, physical machine.
    11, the physical machine according to claim 20 or 21, it is characterised in that the transmitting element, is additionally operable to receive what central administration node was sent in the receiving unit Before first negotiation message, resource scheduling request message or the resource occupation information of itself are sent to the central administration node.
    23, a kind of central administration node, it is characterised in that including:Processor, memory, bus and communication interface;
    The memory is used to store computer executed instructions, the processor is connected with the memory by the bus, when the central administration node is run, the computer executed instructions of memory storage described in the computing device, so that the central administration node perform claim requires the resource regulating method described in 1-8 any one.
    24, a kind of computer-readable recording medium, it is characterized in that, including computer executed instructions, when computer executed instructions described in the computing device of central administration node, the central administration node perform claim requires the resource regulating method described in 1-8 any one.
    25, a kind of physical machine, it is characterised in that including:Processor, memory, bus and communication interface;
    The memory is used to store computer executed instructions, the processor is connected with the memory by the bus, when the physical machine is run, the computer executed instructions of memory storage described in the computing device, so that the physical machine perform claim requires the resource regulating method described in 9-1 1 any one.
    26, a kind of computer-readable recording medium, it is characterised in that including computer executed instructions, when computer executed instructions described in the computing device of physical machine, the physical machine perform claim requires the resource regulating method described in 9-1 1 any one.
    27, a kind of resource scheduling system, it is characterised in that including:
    Central administration node, information for the physical machine according to physical machine cluster, after the source physical machine and target physical machine that determine virtual machine (vm) migration operation, the first negotiation message is sent to the source physical machine, and receive the response message for the first negotiation message that the source physical machine is sent, the response of first negotiation message disappears, carry the information for the virtual machine to be migrated that the source physical machine is determined, and the information of the virtual machine to be migrated determined according to the source physical machine, the source physical machine is treated by described, the first negotiation message for receiving central administration node transmission, and the response message of the first negotiation message is sent to the central administration node; The target physical machine, for receiving moving into for the virtual machine to be migrated.
    28th, resource scheduling system according to claim 27, it is characterized in that, the central administration node, specifically for the information of the physical machine according to the physical machine cluster, determine the underloading physical machine in the physical machine cluster, and the underloading physical machine into the physical machine cluster sends the second negotiation message, it is electrically operated under carrying out that second negotiation message is used to inquire whether the underloading physical machine in the physical machine cluster to allow, and selects underloading physical machine electrically operated under allowing as the source physical machine.
    29th, the resource scheduling system according to claim 27 or 28, it is characterized in that, the central administration node, specifically for the information of the physical machine according to the physical machine cluster, determine the heavily loaded physical machine in the physical machine cluster, and the heavily loaded physical machine into the physical machine cluster sends the 3rd negotiation message, 3rd negotiation message is used to inquire whether the heavily loaded physical machine in the physical machine cluster to allow to carry out Reduction of Students' Study Load operation, and selection allows the heavily loaded physical machine that Reduction of Students' Study Load is operated as the source physical machine.
    30th, the resource scheduling system according to any one of claim 27- 29, it is characterized in that, before the target physical machine, it is additionally operable to send the 4th negotiation message to the target physical machine, 4th negotiation message carries the information for the virtual machine to be migrated that the source physical machine is determined, and the response message for the 4th negotiation message that the target physical machine is sent is received, the response message of the 4th negotiation message carries the information for the virtual machine to be migrated that the target physical machine receives;Correspondingly, the central administration node, specifically for the response message according to the 4th negotiation message, the target physical machine is moved to by the virtual machine to be migrated of target physical machine receiving from the source physical machine.
    31st, the resource scheduling system according to claim 27 or 30, it is characterized in that, the central administration node, specifically for the information of the physical machine according to the physical machine cluster, select first object physical machine, and send the 5th negotiation message to the first object physical machine, 5th negotiation message is used to inquire whether the first object physical machine receives virtual machine and move into, and receives physical machine that virtual machine moves into the selection first object physical machine as the target physical machine. 32nd, resource scheduling system according to claim 31, characterized in that, the central administration node, before selection first object physical machine, be additionally operable to be power-up to a few physical machine, and using it is upper it is electric described at least one physical machine be used as the first object physical machine.
    33, resource scheduling system according to claim 27, it is characterised in that the central administration node, if the virtual machine in the source physical machine is completely migrating to the target physical machine, is additionally operable to electrically operated under being carried out to the source physical machine.
    34th, resource scheduling system according to claim 27, it is characterized in that, the central administration node, it is additionally operable to obtain the real time resources occupied information of the physical machine of the physical machine cluster, or the resource scheduling request message that the physical machine of the physical machine cluster is sent is obtained, the resource scheduling request message is sent by underloading or heavily loaded physical machine;
    Wherein, the central administration node, real time resources occupied information or the resource scheduling request message specifically for the physical machine according to the physical machine cluster, determines the source physical machine and the target physical machine;
    Before the source physical machine, the first negotiation message that heart management node is sent in the reception, it is additionally operable to send resource scheduling request message to the central administration node.
    35th, resource scheduling system according to claim 27, it is characterized in that, the source physical machine, it is additionally operable to according to first negotiation message and the first foundation, determine the information of the virtual machine to be migrated, the described first schedule constraints according to the application characteristic of virtual machine, the operation information of virtual machine or the virtual machine for including the characteristic of physical machine, running in physical machine.
CN201380077681.5A 2013-08-08 2013-08-08 Method, device and system for scheduling resources Pending CN105359489A (en)

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
CN105359489A true CN105359489A (en) 2016-02-24

Family

ID=52460525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380077681.5A Pending CN105359489A (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)

Cited By (4)

* 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
CN112134917A (en) * 2020-08-04 2020-12-25 深圳市中兴系统集成技术有限公司 Remote disaster recovery method based on super-fusion cloud
CN112416530A (en) * 2020-12-08 2021-02-26 西藏宁算科技集团有限公司 Method and device for flexibly managing cluster physical machine nodes and electronic equipment
CN113138849A (en) * 2020-01-20 2021-07-20 阿里巴巴集团控股有限公司 Computing resource scheduling and migrating method, related device and system

Citations (6)

* 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
CN102790793A (en) * 2012-05-08 2012-11-21 北京邮电大学 Decision method and control module facing to cloud computing virtual machine migration
CN102866915A (en) * 2012-08-21 2013-01-09 华为技术有限公司 Virtualization cluster integration method and device, and virtualization cluster system
US20130148654A1 (en) * 2011-12-09 2013-06-13 Brocade Communications Systems, Inc. Port profile analytics

Patent Citations (6)

* 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
CN102790793A (en) * 2012-05-08 2012-11-21 北京邮电大学 Decision method and control module facing to cloud computing virtual machine migration
CN102866915A (en) * 2012-08-21 2013-01-09 华为技术有限公司 Virtualization cluster integration method and device, and virtualization cluster system

Cited By (7)

* 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
CN113138849A (en) * 2020-01-20 2021-07-20 阿里巴巴集团控股有限公司 Computing resource scheduling and migrating method, related device and system
CN113138849B (en) * 2020-01-20 2024-04-26 阿里巴巴集团控股有限公司 Computing resource scheduling and migration method, related device and system
CN112134917A (en) * 2020-08-04 2020-12-25 深圳市中兴系统集成技术有限公司 Remote disaster recovery method based on super-fusion cloud
CN112134917B (en) * 2020-08-04 2023-11-14 中兴系统技术有限公司 Remote disaster recovery method based on super-fusion cloud
CN112416530A (en) * 2020-12-08 2021-02-26 西藏宁算科技集团有限公司 Method and device for flexibly managing cluster physical machine nodes and electronic equipment
CN112416530B (en) * 2020-12-08 2023-12-22 西藏宁算科技集团有限公司 Method and device for elastically managing cluster physical machine nodes and electronic equipment

Also Published As

Publication number Publication date
WO2015018023A1 (en) 2015-02-12

Similar Documents

Publication Publication Date Title
Xu et al. A balanced virtual machine scheduling method for energy-performance trade-offs in cyber-physical cloud systems
CN102866915B (en) Virtual cluster integration method, device and system of virtual cluster
CN102724277B (en) The method of live migration of virtual machine and deployment, server and group system
Fan et al. A survey of mobile cloud computing
CN106534318B (en) A kind of OpenStack cloud platform resource dynamic scheduling system and method based on flow compatibility
CN104038540A (en) Method and system for automatically selecting application proxy server
CN103516744A (en) A data processing method, an application server and an application server cluster
CN103856512A (en) Cloud computing management server, working host, idle host and resource scheduling method
CN102111337A (en) Method and system for task scheduling
CN103856337A (en) Resource occupation rate acquiring method, providing method, system and server thereof
CN103902593A (en) Data transfer method and device
CN104113576A (en) Method and device for updating client
CN105580407A (en) Network resource deployment method and device
CN105359489A (en) Method, device and system for scheduling resources
CN103747107A (en) Compatible cloud operating platform and realizing method thereof
CN103414767A (en) Method and device for deploying application software on cloud computing platform
CN104679594A (en) Middleware distributed calculating method
Li et al. Deployment of edge servers in 5G cellular networks
CN108696911A (en) A kind of selection method and device of data transmission of internet of things mode
CN103036800A (en) Virtual machine load balancing system, balancing panel points and balancing method
CN109561054A (en) A kind of data transmission method, controller and access device
CN106331160A (en) Data migration method and system
CN109960579B (en) Method and device for adjusting service container
CN104468759A (en) Method and device for achieving application migration in PaaS platform
CN103607731B (en) A kind of processing method and processing device of measurement report

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160224