CN106919435A - The creation method of virtual machine, the management method of resource and device - Google Patents

The creation method of virtual machine, the management method of resource and device Download PDF

Info

Publication number
CN106919435A
CN106919435A CN201510992934.2A CN201510992934A CN106919435A CN 106919435 A CN106919435 A CN 106919435A CN 201510992934 A CN201510992934 A CN 201510992934A CN 106919435 A CN106919435 A CN 106919435A
Authority
CN
China
Prior art keywords
resource
node
child node
virtual machine
management
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
CN201510992934.2A
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
Priority to CN201510992934.2A priority Critical patent/CN106919435A/en
Publication of CN106919435A publication Critical patent/CN106919435A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a kind of creation method of virtual machine, the management method of resource and device, it is possible to reduce the number of nodes of control node management, such that it is able to improve the efficiency of virtual machine creating.The creation method of virtual machine includes:The resource requirement for creating virtual machine is obtained, it is determined that providing at least one child node of the corresponding resource of resource type;Target child node is determined from least one child node according to resource quantity;Virtual machine creating is sent to target child node to instruct, virtual machine creating is instructed for indicating target child node to create virtual machine according to resource requirement.The management method of resource includes:Receive the resource information of at least one child node transmission;Compare the state of the resource of the first kind of at least one child node, the first optimal child node of the state optimization of the resource of the first kind is determined from least one child node;The resource information of the first optimal child node is sent to control node.

Description

The creation method of virtual machine, the management method of resource and device
Technical field
The present invention relates to moving communicating field, more particularly to a kind of creation method of virtual machine, the pipe of resource Reason method and device.
Background technology
Virtual machine technique simulates one or more empty by software virtual machine on a physical computer Plan machine, these virtual machines work as real computer completely, for example can with installation operation system, Application program is installed, Internet resources etc. are accessed.However as the generally popular of virtual machine technique, how Effectively creating virtual machine just turns into the problem to be solved.
Fig. 1 is the network topology schematic diagram of prior art, and in Fig. 1, controller is deployed in public cloud, And multiple nodes are connected by internet (internet), Metropolitan Area Network (MAN), node herein includes gateway Node and the calculate node by gateway node access external network, each node is respectively to controller The status information of the resource of the node is registered, while receiving the management of controller.It can be seen that, controller is simultaneously Management gateway node and calculate node, and be separate between each node.In Fig. 1, when need When creating virtual machine, controller obtains the resource requirement in virtual machine creating request first, then from it Determination meets the destination node of the resource requirement in multiple nodes of management, is disposed on the destination node Virtual machine.But when the node of controller management is more, controller determines target from magnanimity node Node can take a substantial amount of time, and this can have a strong impact on the efficiency of virtual machine creating.
The content of the invention
A kind of creation method of virtual machine, the management method of resource and device are the embodiment of the invention provides, The efficiency of virtual machine creating can be improved.
On the one hand, embodiments of the invention provide a kind of creation method of virtual machine.Method includes:Obtain Resource requirement for creating virtual machine, the resource requirement includes resource type and resource quantity;It is determined that carrying At least one child node of the corresponding resource of funding Source Type;At least one child node include management node from The part child node determined in all child nodes of management node management;According to resource quantity from least one Target child node is determined in child node;Virtual machine creating is sent to target child node to instruct, virtual machine wound Instruction is built for indicating target child node to create the virtual machine according to resource requirement.Namely the present invention is from pipe The target child node of determination establishment virtual machine in the part child node of node is managed, it is possible thereby to greatly reduce son The number of node, such that it is able to improve the efficiency of virtual machine creating.
In a possible design, before virtual machine is created, control node can receive the class of virtual machine Type selection instruction;According to type selection command, the type of virtual machine is determined;According to the type of virtual machine, Obtain the resource requirement of virtual machine.Namely in the present invention, when virtual machine is created, can be without user Resource requirement is manually entered, control node is directly according to the selection instruction of user, you can determine virtual machine Resource requirement, so as to improve Consumer's Experience.
In a possible design, when installing application program on a virtual machine and be virtual machine distribution the After one mailing address and the second mailing address, send logical to the objective management node of management objectives child node Know message, notification message is used to indicate objective management node to set up the first mailing address and the second mailing address Mapping relations;Wherein, the first mailing address includes outer net address and port, and the second mailing address includes Internal address and port;Receive the mapping relations that objective management node sends.Namely control section of the invention Point realizes configuration linkage with management node, so as to optimize establishment and the application configuration of virtual machine.
In a possible design, if being not determined by target child node, by the resource of each child node The default model of information input, obtains the corresponding output result of child node;It is corresponding according to each child node Output result, determines to recommend child node from least one child node;Sent to control node and recommend son section The resource information of point.It is possible thereby to facilitate control node it is determined that target child node failure in the case of, energy Enough know the demand of the maximum resource information that current node can meet.
On the other hand, embodiments of the invention provide a kind of creation method of virtual machine.Method includes:Connect Selection instruction is received, the selection instruction is used to indicate control node to determine target child node from resource status table, Wherein, in resource status table comprising at least one child node resource information, at least one child node be by The part child node that each management node determines from all child nodes that management node is managed;To target Node sends includes the virtual machine creating instruction of resource requirement, and resource requirement includes resource type and number of resources Amount;The virtual machine creating is instructed for indicating target child node to create virtual machine according to resource requirement.Namely The present invention can create the child node and its resource information of virtual machine with simple and clear being shown to user, So as to improve Consumer's Experience.
Another further aspect, embodiments of the invention provide a kind of management method of resource.Method includes:Receive The resource information that child node sends;The resource information includes the type and state of resource;Compare every height section The state of the resource of the first kind of point, determines the first of the state optimization of the resource of the first kind Optimal child node;The resource information of the first optimal child node is sent to the control node.Namely the present invention The resource information of child nodes is managed by management node, such that it is able to avoid in the prior art by controlling During node administration child node, the change of the control node caused due to the state change of the resource of child node Frequency frequently problem.
In a possible design, when other child nodes are increased in management node newly, other sub- sections are received The resource information that point sends;The shape of the resource of the first kind is determined from child node and other child nodes The second optimal optimal child node of state;The resource information of the second optimal child node is sent to control node.
In a possible design, when the state of the resource of one or more types of any child node When changing, the new information that any child node sends is received, the new information is used to indicate management section Point updates the state of the resource of one or more types.
Another aspect, the embodiment of the invention provides a kind of creating device of virtual machine, the wound of the virtual machine Building device has the function of control node behavior in above method design of realizing.The function can be by hard Part is realized, it is also possible to is performed corresponding software by hardware and is realized.The hardware or software include one or Multiple modules corresponding with above-mentioned functions.The module can be software and/or hardware.
Another further aspect, the embodiment of the invention provides a kind of managing device of resource, the management dress of the resource Put the function with management node behavior in above method design of realizing.The function can be by hardware reality It is existing, it is also possible to corresponding software to be performed by hardware and is realized.The hardware or software include one or more The module corresponding with above-mentioned functions.The module can be software and/or hardware.
Other side, the embodiment of the invention provides a kind of computer-readable storage medium, above-mentioned for saving as Computer software instructions used by the creating device of virtual machine, it is included for performing designed by above-mentioned aspect Program.
Other side, the embodiment of the invention provides a kind of computer-readable storage medium, above-mentioned for saving as Computer software instructions used by the managing device of resource, it is included for performing designed by above-mentioned aspect Program.
The creation method of virtual machine provided in an embodiment of the present invention, the management method of resource and device.Obtain Resource requirement for creating virtual machine, it is determined that providing at least one son section of the corresponding resource of resource type Point;At least one child node includes the portion that management node determines from all child nodes that management node is managed Molecule node;Target child node is determined from least one child node according to resource quantity;Saved to target Point sends virtual machine creating instruction, and virtual machine creating is instructed for indicating target child node according to resource requirement Create virtual machine.It follows that the present invention determines to create virtual machine from the part child node of management node Target child node, it is possible thereby to greatly reduce the number of child node, such that it is able to improve virtual machine creating Efficiency.
Brief description of the drawings
Fig. 1 is the network topology structure schematic diagram of prior art;
One of network topology structure schematic diagram that Fig. 2 is provided for the present invention;
The two of the network topology structure schematic diagram that Fig. 3 is provided for the present invention;
One of resource status table schematic diagram that Fig. 4 is provided for the present invention;
The two of the resource status table schematic diagram that Fig. 5 is provided for the present invention;
Fig. 6 is a kind of creation method interaction figure of virtual machine provided in an embodiment of the present invention;
Fig. 7 is the creation method flow chart of another virtual machine provided in an embodiment of the present invention;
The virtual machine creating wizard page schematic diagram that Fig. 8 is provided for the present invention;
Fig. 9 is the creation method flow chart of another virtual machine provided in an embodiment of the present invention;
Figure 10 is a kind of creating device schematic diagram of virtual machine provided in an embodiment of the present invention;
Figure 11 is the creating device schematic diagram of another virtual machine provided in an embodiment of the present invention;
Figure 12 is a kind of managing device schematic diagram of resource provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawings, embodiments of the invention are described.
The creation method of the virtual machine that the present invention is provided is applied in the network topology structure shown in Fig. 2, Fig. 2 In, the main network element including three types:Control node, management node and child node, wherein, control Node processed can be deployed in public cloud, its can by internet (Internet) or Metropolitan Area Network (MAN) come The multiple management nodes of connection, and during child node both may be embodied in management node, e.g., be in management node During gateway, child node can be the open service platform (English in gateway:Open service platform, OSP) buckle;Additionally, child node can also be the arbitrary network node of management node management, it is e.g., independent Plate and plug-in network node.
In Fig. 2, control node can receive the log-on message of management node, wherein, in the log-on message The resource information of all child nodes that management node is managed and the money of at least one child node can be carried Source information, wherein, resource information includes the type and state of resource.Additionally, control node can also be carried For the administration interface for device configuration and deploying virtual machine, by the administration interface, control node can To receive the instruction of user input.Management node and its child node of management composition LAN, it is also referred to as internal Network, management node is the outlet device of the child node access external network in internal network, for providing Routing management, address conversion etc. are serviced, and ensure that the normal addressing of equipment is accessed.Additionally, management node is also The resource information of the child node for managing it is managed, namely management node and son in the present invention It is not separate between node;Child node be used for create virtual machine, its can be blade server, Comprising OSP buckles in a gateway, independent plate, or it can also be an all-purpose computer.Also need It is noted that management node can add identification information for the child node for being managed, so as to according to the mark Knowledge information, recognizes corresponding child node.
In two, Fig. 3 for the network topology structure schematic diagram that Fig. 3 is provided for the present invention, management node includes Management plane and service plane, wherein, management plane includes device management module, and management node is specifically led to Cross the device management module to be managed come the resource information of the child node for managing it, resource herein Refer to the software resource and hardware resource of child node, can specifically include one or more in following resource: Computing resource, storage resource, Internet resources, clock sources, hardware encryption chip and image procossing add Fast device etc., wherein, computing resource can specifically include CPU core number and dominant frequency, and storage resource specifically can be with Including memory size and external memory capacity, Internet resources specifically can be including network interface number and speed etc.. Child node includes sub- device management module, specifically, after child node access network, automatically by this Sub- device management module reports resource information to the management node for managing the child node.
In Fig. 3, so that a management node is managed to the resource information of its child node as an example for, its Management process is as follows:
Step A:Management node receives the resource information that child node sends, and the resource information includes the son The type and state of the resource that node can be provided.
Specifically, child node will set after the child node access network is detected automatically by son Standby management module reports the resource information of the child node to the management node for managing the child node, herein, Child node can be pre-configured with the corresponding relation of management node by keeper.The resource can include with One or more in lower software resource or hardware resource:Computing resource, storage resource, network money Source, clock sources, hardware encryption chip and image procossing accelerator etc., wherein, computing resource is specific CPU core number and dominant frequency can be included, storage resource can specifically include memory size and external memory capacity, Internet resources specifically can be including network interface number and speed etc..Alternatively, the type of resource herein can Think:CPU core number, memory size and external memory capacity.Additionally, the state of resource can be use state, It can also be residual state.It is understood that during initial registration, child node can simultaneously report the sub- section The type and residual state or use state of the whole resource of point, subsequently when the remaining shape of certain resource When state or use state are changed, then the change information for reporting the resource.
Management node is receiving the resource information of each child node transmission, it is possible to calculate each type Resource global state, so as to form the resource pool of management node.The global state is a kind of resource State in the management node.For example, a certain management node manages three child nodes, each Child node includes the resource of three types:CPU core number, memory size and external memory capacity, it is each type of The residual state of resource is as shown in table 1.
Table 1
Node 1 Node 2 Node 3
CPU core number 4 cores 4 cores 32 cores
Memory size 16G 8G 8G
External memory capacity 512G 16T 512G
So, in the resource pool of management node, remaining CPU core number is:32+4+4=40 cores;It is remaining Memory size size is:16G+8G+8G=32G;Remaining external memory amount of capacity is: 512+16*1024+512=17T.
Explanation is needed, when the number of the child node of management node management changes, such as newly-increased During one child node, the newly-increased child node also automatically can report resource information to management node, management The state of the resource in the Web Service resource pool that node is then reported according to the newly-increased child node. Such as previous example, when a newly-increased child node, and the newly-increased child node remaining CPU core number, internal memory Capacity and external memory capacity are respectively:When 4 cores, 4G and 1T, then in the resource pool after updating:It is remaining CPU core number be:40+4=44;Remaining memory size size is:32G+4G=36G;Remaining external memory Amount of capacity is:17T+1T=18T;Similarly, when one or more child node is deleted, management node Also resource pool can be updated, specific update method ibid, is not repeated again herein.
Certainly, in actual applications, multiple child nodes can also be increased in management node newly, this is newly-increased more Individual child node also automatically can report respective resource information to management node, management node receive it is many After the resource information that individual node is reported, the state of the resource in resource pool is updated.
It is understood that when the state of resource that child node is reported is use state, then management node Can according to it is initial when the resource information of whole resources of child node that reports and currently report making for resource With state, calculate the resource of child node residual state and management of computing node resource pond in resource Residual state.
In addition it is also necessary to explanation, when the shape of the resource of one or more types of any child node When state changes, management node updates the state of the resource of one or more types.It is such as foregoing In example, it is assumed that management node determines child node of the node 1 as establishment virtual machine, and assumes that this is virtual Machine is respectively to the demand of the resource of above-mentioned three types:2 cores, 8G and 512G, because in node 1 After upper establishment virtual machine, the state of the resource of the three types of node 1 can change, so management When virtual machine creating instruction is sent to node 1, the virtual machine creating is instructed for indicating node 1 node Virtual machine is created, and directly updates the state of the resource of the three types of the interior joint 1 of table 1, remaining CPU Check figure can be updated to:4-2=2 cores;Remaining memory size is updated to:16-8=8G;Remaining external memory Capacity is updated to:512-512=0G, and the state of all types of resources in resource pool is updated, it is e.g., remaining CPU core number be updated to:40-2=38 cores;Remaining memory size size is updated to:32G-8G=24G; Remaining external memory amount of capacity is updated to:17T-512T=16.5T;The transmission of node 1 ought be received afterwards When creating virtual machine failure, then by the state of the resource of the three types of the interior joint 1 of table 1 and Resource pool be updated to before state;And when receiving the successful message of establishment virtual machine of the transmission of node 1, Then no longer perform the operation of resource updates.
Step B:Management node compares the state of the resource of the first kind of each child node, determines described First optimal child node of the state optimization of the resource of the first kind.
The resource of the first kind herein can be the resource of any one type of child node.Such as previous example In, the first kind can be CPU core number, memory size or external memory capacity.With the first kind as CPU For as a example by check figure, the residual state of the CPU core number of node 1, node 2 and node 3 can be carried out Compare, because 4 core=4 cores<32 cores, namely the CPU core number of node 3 is maximum, therefore, it can to save Point 3 is defined as the first optimal child node of the state optimization of CPU core number;Similarly, can be true by node 1 It is set to the first optimal child node of the state optimization of memory size;Node 2 can be defined as external memory capacity State optimization the first optimal child node.It is understood that when the shape for being directed to polytype resource When state determines the first optimal child node, it is determined that the first optimal child node number can for multiple.Such as, In table 1, when determining the first optimal child node for CPU core number, memory size or external memory capacity respectively When, the number of the first optimal child node determined is 3.
Certainly, in actual applications, it is also possible to reference to two kinds or the state of the resource of two or more types The first optimal child node is determined, e.g., when the information of dominant frequency is also included in table 1, because the meter of virtual machine Resource is calculated typically by CPU core number * dominant frequency come what is weighed, therefore, it can combine CPU core number and dominant frequency The state of two kinds of resource determines the first optimal child node, the node 1, node 2 such as in the table 1 with And the dominant frequency of node 3 is respectively:When 3.0GHZ, 3.0GHZ and 3.2GHZ, because 4 core * 3.0GHZ=4 Core * 3.0GHZ<32 core * 3.2GHZ, namely the computing resource of node 3 is maximum, namely can be true by node 3 It is set to the first optimal child node, and the node 3 is also simultaneously the most strong child node of computing capability, similarly may be used To determine most strong child node of storage capacity etc..
It should be noted that management node can pair determine one or more first optimal child node enter Row real-time update.Specifically, updated when can be and increase or delete other child nodes newly in management node, Can also be that the state of the resource of any one type in child node updates when changing.Such as previous example, When management node increase newly a child node, and the newly-increased child node remaining CPU core number, memory size And external memory capacity is respectively:When 36 cores, 4G and 1T, management node is saved from three sons in table 1 Second that the state optimization of the resource of the first kind is redefined in point and a newly-increased child node is optimal Child node, namely the shape of the resource of the first kind is determined from the child node and other child nodes The second optimal optimal child node of state;Specifically, the of the state optimization of memory size and external memory capacity Two optimal child nodes are identical with the first optimal child node, and the second optimal son of the state optimization of CPU core number Node can then be updated to newly-increased child node.
It should be noted that in actual applications, the number of the child node of management node management often compares Many (e.g., hundreds and thousands of), but the number of the first optimal child node determined is then relatively fewer, it is optional Ground, the number of the first optimal child node is not more than the number of the type of resource.Such as, when having 100 in table 1 Individual node, when each node has the resource of 4 types, it is determined that the first optimal child node number it is small In equal to 4.
Step C:Management node sends the resource information of the first optimal child node to control node;Or, to Control node sends the resource information of the second optimal child node.
Such as previous example, at initial (namely not increasing other nodes in management node newly), management node The resource information of the resource of the three types of node 1, node 2 and node 3 can be sent to control respectively Node processed;And when increasing other node (such as nodes 4) newly in management node, then management node can be respectively The resource information of the resource of the three types of node 1, node 2, node 3 and node 4 is sent to control Node processed.
Certainly, in actual applications, management node can also determine one from all child nodes for being managed A little special child nodes with special resource, e.g., the child node with cryptographic calculation processor hardware resource, Then the resource information with the special child node of special resource is sent to control node.It is appreciated that , when the number of the child node of management node management is more, above-mentioned sends the to control node The method of the resource information of one optimal child node, the second optimal child node or special child node, Ke Yi great The number of the big child node for reducing control node management, such that it is able to save the resource of control node.
Control node receive management node transmission the first optimal child node, the second optimal child node or After the resource information of the special child node of person, in the resource information being recorded into resource status table.Ginseng One of resource status table schematic diagram as shown in Figure 4, have recorded four child nodes in the resource status table The state of the resource of three types, wherein, the first child node, the second child node and the 3rd child node are Determined from all child nodes that it is managed by the first management node, three child nodes can be The first optimal child node, the second optimal child node or special child node in one management node;And the 4th Child node is determined from all child nodes that it is managed by the second management node, and it can also be The first optimal child node, the second optimal child node or special child node in two management nodes.In Fig. 4, The state of each type of resource of each child node can be directly read, further, it is also possible to directly read To the management node of management child node.
Additionally, in Fig. 4, the resource pool of each management node can also be included in resource status table, each pipe The state for managing each type of resource in the resource pool of node can be the management node managed it is all The global state of the resource of this type of child node.When in resource status table also including management node money During the pond of source, the resource status table shown in Fig. 4 is extended to the state table shown in Fig. 5.
It should be noted that increased newly in working as management node or delete other child nodes, or in child node The state of resource of any one type when change occurring and the state of resource in resource pool is updated, the pipe Reason node can send new information to control node, and the new information is used to indicate control node to update money The resource pool of above-mentioned management node in the state table of source.Such as, in previous example, section is received in management node During the successful message of establishment virtual machine that point 1 sends, new information is sent to control node, the renewal disappears The residual state of resource in the resource pool of the management node after updating, e.g., CPU core number can be carried in breath: 38 cores;Memory size size:24G;External memory amount of capacity:16.5T, control node is receiving management After the new information that node sends, the resource pool of above-mentioned management node in resource status table is updated.
In Fig. 4 or Fig. 5, mark can also be added for each child node, e.g., can managed first 3rd child node addition mark " the most strong child node of computing capability " of node, can also manage first Second child node addition mark " the most strong child node of storage capacity " of node.Additionally, Fig. 4 or Fig. 5 In resource status table in can also including management node be each child node distribution mark, and control Node is the mark of each management node distribution.
To sum up, control node of the invention only manages the resource information of at least one management node, and son is saved The resource information of point is then managed by management node, is become such that it is able to reduce the state of resource of child node The change frequency of the control node that change causes, further, it is also possible to the number of nodes of control node management is reduced, Configuration is simplified, so as to improve overall operating efficiency, the cost of O&M is greatly decreased.
Return in Fig. 3, control node can create virtual machine by both of which, and the both of which includes: Simple mode and fine mode.Specifically, control node is according to the selection instruction for receiving, it is determined that creating empty The pattern of plan machine.
The present invention described below creates the process of virtual machine, under simple mode, Fig. 4 under simple mode Or management node and its resource pool are only included in the resource status table shown in Fig. 5, without being saved including management The resource information of the child node that point determines, it is to be understood that each type of in resource pool herein The state of resource can be the overall situation of the resource of this type for all child nodes that the management node is managed State.I.e. under simple mode, control node is indifferent to the state of all types of resource of child node, when When creating virtual machine, send virtual machine creating to management node and instruct, by management node according to being managed The resource information of each child node determines target child node, and creates virtual machine in the target child node.By This understands that under simple mode, target child node is determined by management node, such that it is able to save significantly The about resource of control node.
Fig. 6 is a kind of creation method interaction figure of virtual machine provided in an embodiment of the present invention.As shown in fig. 6, The method can specifically include:
S610, control node sends virtual machine creating and instructs to management node, in virtual machine creating instruction Carry the resource requirement for creating virtual machine.
Herein, resource requirement includes resource type and resource quantity, wherein, resource quantity is being somebody's turn to do for needs The number of the resource of type.
Herein, it is necessary to explanation, before the embodiment of the present invention is performed, control node is locally The resource status table shown in Fig. 4 or Fig. 5 is have recorded, namely control node has been received by management node The global state of transmitted various types of resources.
Specifically, control node can receive the instruction message of user input, the instruction by administration interface The resource requirement for creating virtual machine is carried in message;Control node receive indicate message after, Selection creates the management node of virtual machine, then sends virtual machine creating to the management node for creating virtual machine Instruction, carries the resource requirement for creating virtual machine in virtual machine creating instruction.
In one example, control node can be according to the state choosing of resource in the resource pool of each management node The management node for creating virtual machine is selected, specifically, can be by the management of the state optimization of all types of resources Node selection is the management node of establishment virtual machine.
For example, CPU core number, the internal memory appearance for creating virtual machine are carried in virtual machine creating instruction Amount and external memory capacity three types resource resource requirement, and need the three types number of resources Amount is respectively:2 core 12G and 512G.
S620, the resource information of the child node that management node is received according to resource requirement and in advance, from sub- section Target child node is determined in point.
Assuming that the management node manages three child nodes, and the CPU core number of three child nodes, internal memory hold The residual state of amount and external memory capacity is as shown in table 1.Then management node will can be used to create virtual machine The state of the state successively with 3 all types of resources of child node in table 1 of all types of resources carry out Compare, if the state of all types of resource of any child node is more than for creating all types of of virtual machine The state of resource, then can be defined as target child node by any child node, e.g., can be by table 1 Node 1 be defined as target child node.
Certainly, in actual applications, it is also possible to which target child node is determined from child node according to other manner, Such as, the state of all types of resource of child node can be scored, by the son section that appraisal result is maximum Point is defined as target child node.
When it is determined that target child node for it is multiple when, then can be according to other pre-conditioned (e.g., sub- sections Priority of point etc.) final target child node is determined from multiple target child nodes.
S630, management node is sent to target child node and creates virtual machine instruction, and the virtual machine creating is indicated For indicating target child node to create virtual machine.
It is understood that after target child node creates virtual machine, the state of all types of resources is updated, If node 1 is after virtual machine is created, can be by the residue of CPU core number, memory size and external memory capacity State is updated to respectively:4-2=2 cores, 16-12=4G and 512-512=0G.
It should be noted that management node is after sending establishment virtual machine to target child node and indicating, such as After establishment virtual machine being sent to node 1 and is indicated, the three types of the node 1 recorded before renewal The residual state of resource, that is, update the residual state of the resource of the three types of the interior joint 1 of table 1, respectively It is updated to:4-2=2 cores, 16-12=4G and 512-512=0G;Additionally, management node can also update The residual state of resource in resource pool, such as remaining CPU core number is updated to 40-2=38 cores;In remaining Capacity is deposited to be updated to:32-12=20G;Remaining external memory capacity is updated to:17T-512G=16.5T.It Afterwards, when the successful message of the establishment virtual machine that management node receives the transmission of node 1, to control node New information is sent, resource in the resource pool of the management node after updating can be carried in the new information State, e.g., CPU core number:38 cores;Memory size:20G;External memory capacity:16.5T, control node After the new information for receiving management node transmission, the money of above-mentioned management node in resource status table is updated Source pond.
Also, it should be noted that after above-mentioned virtual machine is created, it is possible to be the virtual machine installation operation System and application program, and for the virtual machine distributes corresponding internal address and port, additionally may be used Think the corresponding outer net address of virtual machine distribution and port, and in the management section of management objectives child node The internal address and port and outer net address and the mapping relations of port of the virtual machine are set up on point, so that Allow that the virtual machine accesses external network by above-mentioned management node.
Alternatively, the embodiment of the present invention also includes step S640:If being not determined by target child node, will The resource information of each child node is input into default model, obtains the corresponding output result of each child node; According to the corresponding output result of each child node, determine to recommend child node from least one child node;To Control node sends the resource information of the recommendation child node.
As in previous example, carried in the virtual machine creating received in step S610 is instructed for creating The resource requirement of the resource of the three types of virtual machine is respectively:CPU core number:6 cores, memory size:12G And external memory capacity:512G because in table 1 all types of resource of each child node state no more than The demand of all types of resource of virtual machine is created, therefore management node not can determine that target child node.When When being not determined by target child node, the CPU core number of each child node, internal memory in table 1 can be held successively The state of amount and external memory capacity is input into default model, and obtains the corresponding output result of each child node, In one example, the default model can be assigned to the state of the different types of resource of each child node Different weights are given, the state of all types of resource of each child node are multiplied by corresponding weights again afterwards, And summation obtains the corresponding output result of each child node;Compare the output result of each child node, will export The maximum child node of result is defined as recommending child node.
Control node receive recommend child node resource information after, can by administration interface to The resource information of child node is recommended in family display, namely shows the resource information that current management node can be provided, So as to user can change the original resource requirement for creating virtual machine.
Above is the description of the process to creating virtual machine under simple mode, described below in senior mould Two kinds of processes of establishment virtual machine under formula, in the advanced mode, the resource status table in control node can Referring to shown in Fig. 4 or Fig. 5, i.e., can include simultaneously in resource status table:Management node, management section The resource information of the child node that the resource pool and management node of point determine, i.e., in the advanced mode, control Node is concerned about the resource information of the child node (i.e. part child node) that management node determines, virtual when creating During machine, the resource requirement that control node can be input into according to user when virtual machine creating request message is sent, The target child node for creating virtual machine is determined in the child node determined from management node, and in the target Virtual machine is created in child node.It follows that in the advanced mode, target word node is by control node Determine, and control node is that target child node is determined in the child node that management node determines, this can be with The determination efficiency of target child node is improved, such that it is able to greatly save the resource of control node.
Fig. 7 is the creation method flow chart of another virtual machine provided in an embodiment of the present invention.Such as Fig. 7 institutes Show, the method can specifically include:
S710, control node obtains the resource requirement for creating virtual machine, and the resource requirement includes money Source Type and resource quantity.
Wherein, S710 specifically may include steps of:
Step A:Before virtual machine is created, control node receives the type selection command of the virtual machine.
Herein, the administration interface of control node can include virtual machine creating wizard page as shown in Figure 8, In Fig. 8, the type of at least one virtual machine can be included, for example, the type of the virtual machine can be with Including:Web server class and calculation server class etc.;Additionally, each type can also be included in Fig. 8 Virtual machine usage scenario and to resource requirement.
Specifically, the above-mentioned type selection instruction can be clicked on the void in virtual machine creating wizard page by user The type triggering of plan machine.
Step B:Control node determines the type of the virtual machine according to the type selection command.
In Fig. 8, when type selection command is when clicking on type " Web server class " by user to trigger, then Control node can determine that the type of the virtual machine is:Web server class.
Step C:Control node obtains the resource requirement of the virtual machine according to the type of the virtual machine.
Type and quantity of the resource requirement including the resource required for virtual machine, i.e. resource type and money Source quantity.
Such as previous example, when the type of the virtual machine is:During Web server class, control node can be with The virtual machine is got to be respectively the demand of CPU core number, memory size and external memory capacity:4 cores, 8G and 512G.
S720, control node determines to provide at least one child node of the corresponding resource of the resource type; At least one child node determines including management node from all child nodes that the management node is managed Part child node.
At least one child node herein can be all child nodes managed from management node by management node First optimal child node of middle determination, the second optimal child node and/or special child node, namely at least one Child node includes the part son section that management node determines from all child nodes that the management node is managed Point.Wherein, the process of management node determining section molecule node can be found in foregoing management process, herein not Repeat again.
Such as previous example, the type of the resource in the resource requirement of the virtual machine is respectively:CPU core number, Memory size and external memory capacity, namely the resource including three types.Therefore, in the money of control node When source state table is as shown in Fig. 4 or Fig. 5, can be by the first child node in the first management node, The first child node in two child nodes, the 3rd child node and the second management node be defined as it is above-mentioned at least One child node, because aforementioned four child node can provide the resource of above-mentioned three types.
S730, target child node is determined according to the resource quantity from least one child node.
Herein, resource quantity refers to the state of resource.Namely according to the state of resource from described at least one Target child node is determined in child node, wherein, the determination method of target child node can be found in S620, also not Repeat again.
S740, control node is by the objective management node of management objectives child node to the target child node Virtual machine creating instruction is sent, the virtual machine creating is instructed for indicating the target child node according to Resource requirement creates the virtual machine.
Herein, it is necessary to explanation, in order to mitigate the load of control node, in the present invention, control node is not The resource information of child node is directly managed, the resource information of child node is managed by management node, because This, control node can also determine the target tube of the target child node after target child node is determined Reason node.Specifically, because also showing management simultaneously in resource status table shown in Fig. 4 or Fig. 5 The management node of each child node, namely the nodal community of each child node is directly contained, therefore, lead to Resource status table is crossed, the objective management node of management objectives child node can be directly determined;Afterwards just can be with The first virtual machine creating is sent to objective management node to instruct, can be taken in first virtual machine creating instruction Information (e.g., identifying) with target child node, objective management node is receiving the first virtual machine creating After instruction, according to the information of target child node, send the second virtual machine creating to target child node and instruct, So that target child node creates virtual machine.
Create virtual machine after, can on the virtual machine installation operation system and application program, and by Control node is that the virtual machine distributes the first mailing address, and herein, the first mailing address can be outer net Address and port.In one implementation, control node can lead to for virtual machine distribution first Behind letter address, directly objective management node is given by first communication address notification.Additionally, in the virtual machine After startup, objective management node can also further for the virtual machine distributes the second mailing address, second Mailing address can be internal address and port.
It should be noted that after the process of above-mentioned installation and distribution is completed, objective management node can be with The mapping relations set up between above-mentioned first mailing address and the second mailing address by two ways:First Kind of mode, namely control node in advance by the first communication address notification to objective management node in the case of, Control node can send a notification message to objective management node, and the notification message is used to indicate the target tube Reason node sets up the mapping relations of the first mailing address and the second mailing address, and objective management node is being set up After above-mentioned mapping relations, the mapping relations are sent to control node;The second way, namely in control Node not in advance by the first communication address notification to objective management node in the case of, control node can be with The instruction message of establishment mapping relations is sent to objective management node after virtual machine startup, the instruction disappears The first mailing address can be carried in breath, objective management node is set up after the instruction message is received The mapping relations of the first mailing address and the second mailing address, and send the mapping relations to control node. It follows that control node of the invention realizes configuration linkage with management node, it is virtual so as to optimize The establishment of machine and application configuration.
Such as previous example, after creating type for the virtual machine of " Web server class " in the target child node, It can be its distribution Intranet (private network) address:192.168.1.100, a set of web clothes can be installed afterwards Business device software, and be its configuration service port:8080, and specified outer net (public network) address and port: 116.1.1.100:80;Objective management node is receiving the notification message of control node transmission, Huo Zhe Virtual machine is received after the instruction message of the establishment mapping relations of control node transmission after starting, and is set up 192.168.1.100:8080->116.1.1.100:80 mapping relations.The multiple that management node is set up Mapping relations may be constructed service mapping table.
After the foundation for completing above-mentioned mapping relations, the equipment of outer net just can be by 116.1.1.100: 80 access the virtual machine (or server);Or pre- one domain name binding IP address of first to file: 116.1.1.100:80, the equipment of outer net just can be by the domain name access virtual machine (or server).
Alternatively, the embodiment of the present invention can also include step S760:If being not determined by target child node, Determine to recommend child node at least one child node that can then determine from management node, herein, recommend son The determination method of node determines recommendation child node with management node in Fig. 6 from all nodes for being managed Method is similar to, and does not repeat again herein.
Fig. 9 is the creation method flow chart of another virtual machine provided in an embodiment of the present invention.Such as Fig. 9 institutes Show, the method can specifically include:
S910, control node receives selection instruction, and the selection instruction is used to indicate control node from resource shape Target child node is determined in state table.
Herein, the administration interface of control node can include the resource status table shown in Fig. 4 or Fig. 5, At least one child node resource information can be shown by the administration interface of control node, wherein, at least One child node is determined from all child nodes that the management node is managed by least one management node Part child node;Additionally, above-mentioned administration interface can also show above-mentioned at least one management node and The resource pool of at least one management node.
Alternatively, at least one child node herein can be by each management node from the management node The first optimal child node, the second optimal child node and/or the special sub- section determined in all child nodes of management Point, wherein, management node determines the process of at least one child node reference can be made to foregoing management process, Do not repeat again herein.
Specifically, control node can directly receive the selection instruction that user determines target child node, i.e. root Just can uniquely determine a target child node according to selection instruction;Control node can be by the target afterwards The information of child node is sent to objective management node, herein, same Fig. 7 of determination method of objective management node The determination method of middle objective management node is identical.
Step S920 is identical with step S740, does not repeat again herein.
To sum up, in the advanced mode, although storage management node and management node determine control node simultaneously At least one child node resource information, but the resource information to child node is not managed, and only The resource pool of management management node is needed, thus, it is possible to greatly reduce the interstitial content of control node management, Such that it is able to mitigate its government pressure.
With the creation method of above-mentioned virtual machine accordingly, a kind of virtual machine that the embodiment of the present invention is also provided Creating device, as shown in Figure 10, the creating device includes:Receiver 1001, processor 1002 and hair Emitter 1003.
Receiver 1001, for obtaining the resource requirement for creating virtual machine, the resource requirement includes Resource type and resource quantity.
Receiver 1001 specifically for:
Before virtual machine is created, the type selection command of the virtual machine is received;
According to the type selection command, the type of the virtual machine is determined;
According to the type of the virtual machine, the resource requirement of the virtual machine is obtained.
Processor 1002, at least one child node for determining the corresponding resource of the offer resource type; At least one child node determines including management node from all child nodes that the management node is managed Part child node.
Processor 1002, is additionally operable to determine mesh from least one child node according to the resource quantity Mark child node.
Transmitter 1003, the target child node for determining to processor 1002 sends virtual machine creating Instruction, the virtual machine creating is instructed for indicating the target child node to be created according to the resource requirement The virtual machine.
Alternatively, transmitter 1003 is additionally operable to when installing application program on the virtual machine and for described Virtual machine is distributed after the first mailing address and the second mailing address, to the mesh for managing the target child node Mark management node sends a notification message, and the notification message is used to indicate the objective management node to set up institute State the mapping relations of the first mailing address and second mailing address;Wherein, the first mailing address includes Outer net address and port, the second mailing address include internal address and port;
Receiver 1001 is additionally operable to receive the mapping relations that the objective management node sends.
Alternatively, if processor 1002 is additionally operable to be not determined by the target child node, will it is described each The resource information of child node is input into default model, obtains the corresponding output result of the child node;And According to the corresponding output result of each child node, determine to recommend child node from least one child node;
Transmitter 1003 is additionally operable to the recommendation determined to the control node transmission processe device 1002 The resource information of node.
The function of each functional module of embodiment of the present invention device, can be by each of above method embodiment Step realizes, therefore, the specific work process of the device that the application is provided herein is not repeated again.
The creating device of virtual machine provided in an embodiment of the present invention, receiver 1001 obtains virtual for creating The resource requirement of machine, the resource requirement includes resource type and resource quantity;Processor 1002 determines to carry For at least one child node of the corresponding resource of the resource type;At least one child node includes pipe The part child node that reason node determines from all child nodes that the management node is managed;Processor 1002 Target child node is determined from least one child node according to the resource quantity.Transmitter 1003 to The target child node sends virtual machine creating instruction, and the virtual machine creating is instructed for indicating the mesh Mark child node creates the virtual machine according to the resource requirement.Thus, it is possible to improve virtual machine creating Efficiency.
With the creation method of above-mentioned virtual machine accordingly, a kind of virtual machine that the embodiment of the present invention is also provided Creating device, as shown in figure 11, the creating device includes:Receiver 1101, processor 1102 and hair Emitter 1103.
Receiver 1101, for receiving selection instruction, the selection instruction is used to indicate control node from resource Target child node is determined in state table, wherein, the resource comprising at least one child node in resource status table Information, at least one child node is all child nodes managed from the management node by each management node The part child node of middle determination.
Processor 1102, the virtual machine creating instruction of resource requirement, the resource requirement are included for generating Including resource type and resource quantity;The virtual machine creating is instructed for indicating the target child node root Virtual machine is created according to the resource requirement.
Transmitter 1103, instructs for sending the virtual machine creating to the target child node.
The function of each functional module of embodiment of the present invention device, can be by each of above method embodiment Step realizes, therefore, the specific work process of the device that the application is provided herein is not repeated again.
The creating device of virtual machine provided in an embodiment of the present invention, receiver 1101 receives selection instruction, should Selection instruction is used to indicate control node to determine target child node from resource status table, wherein, resource shape Resource information comprising at least one child node in state table, at least one child node is by each management node The part child node determined from all child nodes of management node management;The generation bag of processor 1102 The virtual machine creating instruction of resource requirement is included, the resource requirement includes resource type and resource quantity;Institute Virtual machine creating is stated to instruct for indicating the target child node to create virtual machine according to the resource requirement; Transmitter 1103 sends the virtual machine creating and instructs to the target child node.Thus, it is possible to improve void The efficiency that plan machine is created.
With the management method of above-mentioned resource accordingly, the management dress of a kind of resource that the embodiment of the present invention is also provided Put, as shown in figure 12, the managing device includes:Receiver 1201, processor 1202 and transmitter 1203.
Receiver 1201, the resource information for receiving child node transmission;The resource information includes resource Type and state.
Processor 1202, the resource of the first kind of each child node for comparing the reception of receiver 1201 State, determine the first optimal child node of the state optimization of the resource of the first kind.
Transmitter 1203, for the described first optimal son determined to control node transmission processe device 1202 The resource information of node.
Alternatively, receiver 1201 is additionally operable to, when other child nodes are increased in the management node newly, receive The resource information that described other child nodes send.
Processor 1202 is additionally operable to determine described first from the child node and described other child nodes Second optimal child node of the state optimization of the resource of type.
The resource that transmitter 1203 is additionally operable to send the second optimal child node to the control node is believed Breath.
Alternatively, receiver 1201, are additionally operable to the resource of one or more types when any child node State when changing, receive the new information that any child node sends, the new information is used In the state for indicating the management node to update the resource of one or more types.
The managing device of the resource that inventive embodiments are provided, receiver 1201 receives the resource that child node sends Information;The resource information includes the type and state of resource;Processor 1202 compares each child node The state of the resource of the first kind, determines that the first of the state optimization of the resource of the first kind is optimal Child node;Transmitter 1203 sends the resource information of the first optimal child node to control node.Thus, The change frequency of the control node that the state change of the resource of child node causes can be reduced, additionally, may be used also To reduce the number of nodes of control node management, configuration is simplified, so as to improve overall operating efficiency, The cost of O&M is greatly decreased.
Those skilled in the art it will be appreciated that in said one or multiple example, institute of the present invention The function of description can be realized with hardware, software, firmware or their any combination.When using soft When part is realized, can be using the storage of these functions in computer-readable medium or as computer-readable One or more instructions or code on medium are transmitted.Computer-readable medium is deposited including computer Storage media and communication media, wherein communication media include being easy to being transmitted from a place to another place Any medium of computer program.Storage medium can be universal or special computer can access appoint What usable medium.
Professional should further appreciate that, be described with reference to the embodiments described herein The unit and algorithm steps of each example, can be come with electronic hardware, computer software or the combination of the two Realize, in order to clearly demonstrate the interchangeability of hardware and software, in the above description according to function Generally describe the composition and step of each example.These functions are come with hardware or software mode actually Perform, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel can be to every Described function is realized in individual specific application using distinct methods, but it is this realize it is not considered that It is beyond the scope of this invention.
The step of method or algorithm for being described with reference to the embodiments described herein, can use hardware, treatment The software module that device is performed, or the two combination is implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electrically erasable ROM, Known any other form in register, hard disk, moveable magnetic disc, CD-ROM or technical field Storage medium in.
Above-described specific embodiment, is carried out to the purpose of the present invention, technical scheme and beneficial effect Further describe, should be understood that the foregoing is only specific embodiment of the invention and , the protection domain being not intended to limit the present invention, it is all within the spirit and principles in the present invention, done Any modification, equivalent substitution and improvements etc., should be included within the scope of the present invention.

Claims (16)

1. a kind of creation method of virtual machine, it is characterised in that including:
The resource requirement for creating virtual machine is obtained, the resource requirement includes resource type and number of resources Amount;
It is determined that providing at least one child node of the corresponding resource of the resource type;At least one son Node includes the part child node that management node determines from all child nodes that the management node is managed;
Target child node is determined from least one child node according to the resource quantity;
Virtual machine creating is sent to the target child node to instruct, the virtual machine creating is instructed for indicating The target child node creates the virtual machine according to the resource requirement.
2. creation method according to claim 1, it is characterised in that the acquisition is used to create void The resource requirement of plan machine, specially:
Before virtual machine is created, the type selection command of the virtual machine is received;
According to the type selection command, the type of the virtual machine is determined;
According to the type of the virtual machine, the resource requirement of the virtual machine is obtained.
3. creation method according to claim 1 and 2, it is characterised in that also include:
When on the virtual machine install application program and for the virtual machine distribute the first mailing address and After second mailing address, sent a notification message to the objective management node for managing the target child node, The notification message is used to indicate the objective management node to set up first mailing address and described second The mapping relations of mailing address;Wherein, first mailing address includes outer net address and port, described Second mailing address includes internal address and port;
Receive the mapping relations that the objective management node sends.
4. the creation method according to claim any one of 1-3, it is characterised in that also include:
If being not determined by the target child node, the resource information of each child node is input into default mould Type, obtains the corresponding output result of the child node;
According to the corresponding output result of each child node, determine to recommend son from least one child node Node;
The resource information of the recommendation child node is sent to the control node.
5. a kind of creation method of virtual machine, it is characterised in that including:
Selection instruction is received, the selection instruction is used to indicate control node to determine mesh from resource status table Mark child node, wherein, the resource information comprising at least one child node, described in the resource status table At least one child node is determined from all child nodes that the management node is managed by each management node Part child node;
Being sent to the target child node includes that the virtual machine creating of resource requirement is instructed, the resource requirement Including resource type and resource quantity;The virtual machine creating is instructed for indicating the target child node root Virtual machine is created according to the resource requirement.
6. a kind of management method of resource, it is characterised in that the management method includes:
Receive the resource information that child node sends;The resource information includes the type and state of resource;
Compare the state of the resource of the first kind of each child node, determine the resource of the first kind State optimization the first optimal child node;
The resource information of the first optimal child node is sent to the control node.
7. management method according to claim 6, it is characterised in that the management method also includes:
When other child nodes are increased in the management node newly, the resource that described other child nodes send is received Information;
The state of the resource of the first kind is determined from the child node and described other child nodes The second optimal optimal child node;
The resource information of the second optimal child node is sent to the control node.
8. the management method according to claim 6 or 7, it is characterised in that the management method is also Including:
When the state of the resource of one or more types of any child node changes, receive described The new information that any child node sends, the new information is used to indicate the management node renewal described The state of the resource of one or more types.
9. a kind of creating device of virtual machine, it is characterised in that the creating device includes:Receiver, Processor and transmitter;
The receiver, for obtaining the resource requirement for creating virtual machine, the resource requirement includes Resource type and resource quantity;
The processor, at least one child node for determining the corresponding resource of the offer resource type; At least one child node determines including management node from all child nodes that the management node is managed Part child node;
The processor, is additionally operable to determine mesh from least one child node according to the resource quantity Mark child node;
The transmitter, the target child node for determining to the processor sends virtual machine creating Instruction, the virtual machine creating is instructed for indicating the target child node to be created according to the resource requirement The virtual machine.
10. creating device according to claim 9, it is characterised in that the reception implement body is used In:
Before virtual machine is created, the type selection command of the virtual machine is received;
According to the type selection command, the type of the virtual machine is determined;
According to the type of the virtual machine, the resource requirement of the virtual machine is obtained.
11. creating device according to claim 9 or 10, it is characterised in that the transmitter is also For when on the virtual machine install application program and for the virtual machine distribute the first mailing address and After second mailing address, sent a notification message to the objective management node for managing the target child node, The notification message is used to indicate the objective management node to set up first mailing address and described second The mapping relations of mailing address;Wherein, first mailing address includes outer net address and port, described Second mailing address includes internal address and port;
The receiver is additionally operable to receive the mapping relations that the objective management node sends.
12. creating device according to claim any one of 9-11, it is characterised in that the treatment If device is additionally operable to be not determined by the target child node, the resource information of each child node is input into Default model, obtains the corresponding output result of the child node;And it is corresponding according to each child node Output result, determines to recommend child node from least one child node;
The transmitter is additionally operable to send the recommendation son section that the processor determines to the control node The resource information of point.
13. a kind of creating devices of virtual machine, it is characterised in that the creating device includes:Receiver, Processor and transmitter;
The receiver, for receiving selection instruction, the selection instruction is used to indicate control node from money Target child node is determined in the state table of source, wherein, at least one child node is included in the resource status table Resource information, at least one child node is managed from the management node by each management node The part child node determined in all child nodes;
The processor, the virtual machine creating instruction of resource requirement, the resource requirement are included for generating Including resource type and resource quantity;The virtual machine creating is instructed for indicating the target child node root Virtual machine is created according to the resource requirement;
The transmitter, instructs for sending the virtual machine creating to the target child node.
14. a kind of managing devices of resource, it is characterised in that the managing device includes:Receiver, Processor and transmitter;
The receiver, the resource information for receiving child node transmission;The resource information includes resource Type and state;
The processor, the resource of the first kind for comparing each child node that the receiver is received State, determine the first optimal child node of the state optimization of the resource of the first kind;
The transmitter, for sending the described first optimal son that the processor is determined to control node The resource information of node.
15. managing devices according to claim 14, it is characterised in that
The receiver is additionally operable to when other child nodes are increased in the management node newly, receive it is described other The resource information that child node sends;
The processor is additionally operable to determine described first from the child node and described other child nodes Second optimal child node of the state optimization of the resource of type;
The resource that the transmitter is additionally operable to send the second optimal child node to the control node is believed Breath.
16. managing device according to claims 14 or 15, it is characterised in that
The receiver, the state for being additionally operable to the resource of one or more types when any child node is sent out During changing, the new information that any child node sends is received, the new information is used to indicate institute State the state that management node updates the resource of one or more types.
CN201510992934.2A 2015-12-25 2015-12-25 The creation method of virtual machine, the management method of resource and device Pending CN106919435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510992934.2A CN106919435A (en) 2015-12-25 2015-12-25 The creation method of virtual machine, the management method of resource and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510992934.2A CN106919435A (en) 2015-12-25 2015-12-25 The creation method of virtual machine, the management method of resource and device

Publications (1)

Publication Number Publication Date
CN106919435A true CN106919435A (en) 2017-07-04

Family

ID=59457404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510992934.2A Pending CN106919435A (en) 2015-12-25 2015-12-25 The creation method of virtual machine, the management method of resource and device

Country Status (1)

Country Link
CN (1) CN106919435A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832143A (en) * 2017-10-17 2018-03-23 北京京东尚科信息技术有限公司 A kind for the treatment of method and apparatus of physical machine resource
CN108614727A (en) * 2018-03-23 2018-10-02 华为技术有限公司 A kind of virtual machine creation method and device
CN109614199A (en) * 2018-11-28 2019-04-12 广东百应信息科技有限公司 A kind of cloud data center method for managing resource
CN109933405A (en) * 2019-01-09 2019-06-25 平安科技(深圳)有限公司 Virtual machine creation method and device, electronic equipment, storage medium
CN109995564A (en) * 2017-12-31 2019-07-09 中国移动通信集团辽宁有限公司 Automatically the method, apparatus, equipment and medium of maintenance port are opened
CN110474966A (en) * 2019-07-22 2019-11-19 腾讯科技(深圳)有限公司 Handle the method and relevant device of cloud platform resource fragmentation
CN111045821A (en) * 2019-12-06 2020-04-21 北京浪潮数据技术有限公司 Container scheduling method and device, container scheduler and readable storage medium
CN113608833A (en) * 2021-07-19 2021-11-05 曙光信息产业(北京)有限公司 Virtual machine creation method and device, computer equipment and storage medium
CN114363021A (en) * 2021-12-22 2022-04-15 绿盟科技集团股份有限公司 Network shooting range system, virtual network implementation method and device of network shooting range system
CN116405391A (en) * 2023-04-10 2023-07-07 长扬科技(北京)股份有限公司 OpenStack-based virtual machine node screening method, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398768A (en) * 2008-10-28 2009-04-01 北京航空航天大学 Construct method of distributed virtual machine monitor system
CN102479099A (en) * 2010-11-22 2012-05-30 中兴通讯股份有限公司 Virtual machine management system and use method thereof
CN104202434A (en) * 2014-09-28 2014-12-10 北京奇虎科技有限公司 Node access method and device
CN104484222A (en) * 2014-12-31 2015-04-01 北京天云融创软件技术有限公司 Virtual machine dispatching method based on hybrid genetic algorithm
CN104537045A (en) * 2014-12-24 2015-04-22 华为技术有限公司 Service distribution method and device based on distributive system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398768A (en) * 2008-10-28 2009-04-01 北京航空航天大学 Construct method of distributed virtual machine monitor system
CN102479099A (en) * 2010-11-22 2012-05-30 中兴通讯股份有限公司 Virtual machine management system and use method thereof
CN104202434A (en) * 2014-09-28 2014-12-10 北京奇虎科技有限公司 Node access method and device
CN104537045A (en) * 2014-12-24 2015-04-22 华为技术有限公司 Service distribution method and device based on distributive system
CN104484222A (en) * 2014-12-31 2015-04-01 北京天云融创软件技术有限公司 Virtual machine dispatching method based on hybrid genetic algorithm

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832143A (en) * 2017-10-17 2018-03-23 北京京东尚科信息技术有限公司 A kind for the treatment of method and apparatus of physical machine resource
CN109995564B (en) * 2017-12-31 2022-04-15 中国移动通信集团辽宁有限公司 Method, device, equipment and medium for automatically opening maintenance port
CN109995564A (en) * 2017-12-31 2019-07-09 中国移动通信集团辽宁有限公司 Automatically the method, apparatus, equipment and medium of maintenance port are opened
CN108614727A (en) * 2018-03-23 2018-10-02 华为技术有限公司 A kind of virtual machine creation method and device
CN108614727B (en) * 2018-03-23 2021-04-20 华为技术有限公司 Virtual machine creating method and device
CN109614199A (en) * 2018-11-28 2019-04-12 广东百应信息科技有限公司 A kind of cloud data center method for managing resource
CN109933405A (en) * 2019-01-09 2019-06-25 平安科技(深圳)有限公司 Virtual machine creation method and device, electronic equipment, storage medium
CN110474966A (en) * 2019-07-22 2019-11-19 腾讯科技(深圳)有限公司 Handle the method and relevant device of cloud platform resource fragmentation
US11966792B2 (en) 2019-07-22 2024-04-23 Tencent Technology (Shenzhen) Company Limited Resource processing method of cloud platform, related device, and storage medium
CN110474966B (en) * 2019-07-22 2022-04-19 腾讯科技(深圳)有限公司 Method for processing cloud platform resource fragments and related equipment
CN111045821A (en) * 2019-12-06 2020-04-21 北京浪潮数据技术有限公司 Container scheduling method and device, container scheduler and readable storage medium
CN113608833A (en) * 2021-07-19 2021-11-05 曙光信息产业(北京)有限公司 Virtual machine creation method and device, computer equipment and storage medium
CN114363021A (en) * 2021-12-22 2022-04-15 绿盟科技集团股份有限公司 Network shooting range system, virtual network implementation method and device of network shooting range system
CN114363021B (en) * 2021-12-22 2023-11-03 绿盟科技集团股份有限公司 Network target range system, virtual network implementation method and device of network target range system
CN116405391A (en) * 2023-04-10 2023-07-07 长扬科技(北京)股份有限公司 OpenStack-based virtual machine node screening method, system and storage medium

Similar Documents

Publication Publication Date Title
CN106919435A (en) The creation method of virtual machine, the management method of resource and device
CN103329109B (en) For combining the system and method that manageability subsystem monitors in real time and manages data center resource
CN104410672B (en) Method, the method and device of forwarding service of network function virtualization applications upgrading
CN103731514B (en) Virtual network management method
CN103475722B (en) A kind of business cooperation platform realizes system
CN103685568B (en) The platform service application dispositions method and system of PAAS platforms under cloud computing environment
CN104270421B (en) A kind of multi-tenant cloud platform method for scheduling task for supporting Bandwidth guaranteed
CN103780467B (en) communication connection method, communication device and communication system
CN104125110A (en) Monitoring method and device of network resource
CN106022007A (en) Cloud platform system and method oriented to biological omics big data calculation
CN103095574A (en) Management method for network system, network system, and management server
CN108363545A (en) A kind of data configuration method and data configuration device
CN107959614A (en) A kind of self-defined network-building method of multi-tenant based on network namespace, system
CN104573915A (en) Method and device for constructing high-speed train product structure tree
CN104363122B (en) A kind of method for pre-configuration and system of network element
CN108370328A (en) A kind of management method and device of NFV MANO policy depictions symbol
CN107124306A (en) Content delivery network server optimization dispositions method under network function virtualized environment
CN109831334A (en) Constructing network topology method, apparatus and terminal device
CN106845815A (en) Business management method and system
CN103379179B (en) A kind of method and system for planning network IP address
CN108900435A (en) A kind of method, apparatus and computer storage medium of service deployment
CN109218086A (en) A kind of switching network construction method and system
CN106201625A (en) A kind of software version updating method, updating device and electronic equipment thereof
CN102177503B (en) Computer system based on virtualization technology and virtual machine generating method
CN104135379A (en) Port control method and device based on OpenFlow protocol

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170704

WD01 Invention patent application deemed withdrawn after publication