CN107861794A - A kind of method and apparatus that virtual machine is established in cloud computing system - Google Patents
A kind of method and apparatus that virtual machine is established in cloud computing system Download PDFInfo
- Publication number
- CN107861794A CN107861794A CN201711114029.2A CN201711114029A CN107861794A CN 107861794 A CN107861794 A CN 107861794A CN 201711114029 A CN201711114029 A CN 201711114029A CN 107861794 A CN107861794 A CN 107861794A
- Authority
- CN
- China
- Prior art keywords
- physical
- virtual machine
- established
- weights
- species
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/4557—Distribution of virtual machine instances; Migration and load balancing
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
The invention discloses the method and apparatus that virtual machine is established in cloud computing system, this method includes:Various physical resources in system are identified, according to type count the quantity of various physical resources in systems, assign the first weights respectively accordingly for every kind of physical resource;Various physical resources needed for all virtual machines that will be established in system are identified, according to type count the quantity of required various physical resources, assign the second weights respectively accordingly for required every kind of physical resource;The second weights descending according to one or more physical resources of all virtual machines that will be established is arranged to establish all virtual machines that will be established.The degree of scarcity of hardware resource according to needed for the virtual machine that will be established, arrange the virtual machine of the hardware resource of foundation needs relative scarcity first on the physical host for meet the needs of hardware resource, the success rate for establishing the virtual machine for needing rare hardware resource can be improved, makes full use of the rare hardware resource of physical host.
Description
Technical field
The present invention relates to information technology, espespecially a kind of method and apparatus that virtual machine is established in cloud computing system.
Background technology
Virtualization is that one kind can make full use of physical resource, and the shared physics mould of computing resource is realized by internet
Type, it is widely used in cloud computing system.It can provide resource and service on demand, can carry out dynamically distributes to resource.Virtual machine
It is the central point that virtualization technology is realized, is established in traditional in the method for virtual machine, only consider the thing for establishing virtual machine
Reason main frame disclosure satisfy that the hsrdware requirements of established virtual machine, not according to each each physics of the virtual machine that will be established
The resource situation of main frame, resource type select physical host, and result of which usually causes one of some physical hosts
Physical resource is divided to be fully utilized.For example, there are 100 physical hosts in cloud computing system, wherein only 2 things
Reason main frame has GPU (Graphics Processing Unit, graphics processing unit) equipment, if when creating virtual machine not
Physical host is divided according to resource, then can establish the virtual machine for not needing GPU equipment largely at this there is GPU to set
On standby physical host, it is possible to so that when wanting to set up the virtual machine for needing GPU equipment, the void can not be successfully established on the contrary
Plan machine, and the GPU idlenesses of equipment of the two physical hosts with GPU equipment, cause physical resource to waste.Therefore, in cloud
How rationally main frame to be divided in virtualized environment in computing system, realize reasonable distribution host resource, improve resource
Utilization rate the problem of being one in the urgent need to address.
The content of the invention
In order to solve the above-mentioned technical problem, the invention provides a kind of method that virtual machine is established in cloud computing system and
Device, it can reasonably distribute physical host to establish virtual machine, improve the utilization rate of the physical resource of physical host.
, should the invention provides a kind of method that virtual machine is established in cloud computing system in order to reach the object of the invention
Method includes:
For all physical hosts in cloud computing system, according to the species of the physical resource in all physical hosts
And the various physical resources in each physical host are identified respectively, it is used to represent each physical host institute to be formed
First matrix of the physical resource for the various species having;Wherein, the row of the first matrix represents the species of physical resource, physics money
The matrix column in source represents physical host;
For all virtual machines that will be established on the physical host in cloud computing system, will be established according to all
The species of physical resource required for virtual machine and the various physical resources required for each virtual machine are identified respectively,
With second matrix of the formation for the physical resource of the various species required for representing each virtual machine;Wherein, second matrix
Row represents the species of physical resource, and the second matrix column represents physical host;
Every kind of physical resource in all physical hosts is counted according to the species of the physical resource in the first matrix
Quantity, with the quantity according to every kind of physical resource in all physical hosts to every kind of thing in all physical hosts
Manage the first weights that resource assigns corresponding physical resource;Wherein, the quantity of every kind of physical resource in all physical hosts
It is inversely proportional with the first weights of corresponding physical resource;
Count every required for all virtual machines that will be established according to the species of the physical resource in the second matrix
The quantity of kind physical resource, with the quantity according to every kind of physical resource required for all virtual machines that will be established to all
Every kind of physical resource required for the virtual machine that will be established assigns the second weights of corresponding physical resource;Wherein, it is all to incite somebody to action
The quantity of every kind of physical resource required for the virtual machine to be established is inversely proportional with the second weights of corresponding physical resource;
All virtual machines that will be established arranged for the second weights descending according to one or more physical resource,
Circulation performs the following steps successively, untill establishing all virtual machines that will be established:
The physics of the species of physical hardware required for the virtual machine that selection satisfaction will be established in all physical hosts
Main frame;
Establish the virtual machine that will be established.
Further, in an optional embodiment, physical resource does not include central processing unit and internal memory.
Further, in an optional embodiment, selection satisfaction will be established virtual in all physical hosts
The step of physical host of the species of physical hardware required for machine, including:
If have in all physical hosts multiple physical hosts meet the virtual machine that will establish required for physics it is hard
The species of part, then, will be with multiple physical hosts of the species of the physical hardware required for meeting the virtual machine that will establish
First weights corresponding to the weights of highest second in second weights of the one or more physical resources for the virtual machine that will be established
Minimum physical host is elected to be the physical host for establishing the virtual machine that will be established.
Further, in an optional embodiment, the physical hardware required for the virtual machine for meeting to establish
Species multiple physical hosts in, by with the second weights of the one or more physical resources of virtual machine that will be established most
The minimum physical host of first weights corresponding to the second high weights is elected to be the physics master for establishing the virtual machine that will be established
The step of machine, including:
It is determined that the hardware profit of multiple physical hosts of the species of physical hardware required for meeting the virtual machine that will establish
With rate;
By hardware utilization compared with the threshold value of hardware utilization set in advance, to determine that its hardware utilization is low
In the physical host of the threshold value of hardware utilization;
In its hardware utilization less than in the physical host of the threshold value of hardware utilization, by with the virtual machine that will establish
The minimum physical host of the first weights corresponding to the weights of highest second is elected to be in second weights of one or more physical resources
For establishing the physical host for the virtual machine that will be established.
Further, in an optional embodiment, the physical hardware required for the virtual machine for meeting to establish
Species multiple physical hosts in, by with the second weights of the one or more physical resources of virtual machine that will be established most
The minimum physical host of first weights corresponding to the second high weights is elected to be the physics master for establishing the virtual machine that will be established
The step of machine, including:
It is determined that multiple physical hosts of the species of physical hardware required for meeting the virtual machine that will establish are each built
The quantity of vertical virtual machine;
The threshold value of its corresponding quantity for establishing virtual machine of the quantity for the virtual machine that each physical host has been established is entered
Row compares, to determine that it has established physics master of the quantity of virtual machine less than the threshold value of its corresponding quantity for establishing virtual machine
Machine;
Established at it in physical host of the quantity of virtual machine less than the threshold value of its corresponding quantity for establishing virtual machine,
By with the weights of highest second corresponding first in the second weights of the one or more physical resources of virtual machine that will be established
The minimum physical host of weights is elected to be the physical host for establishing the virtual machine that will be established.
In order to realize the purpose of the present invention, embodiments of the invention additionally provide one kind and established virtually in cloud computing system
The device of machine, the device include:
Physical host mark module, is arranged to:For all physical hosts in cloud computing system, according in property
Manage the species of the physical resource in main frame and the various physical resources in each physical host are identified respectively, with shape
Into the first matrix for representing the physical resource of various species possessed by each physical host;Wherein, the row of the first matrix
The species of physical resource is represented, the matrix column of physical resource represents physical host;
Virtual machine mark module, is arranged to:For all void that will be established on the physical host in cloud computing system
Plan machine, according to the species of the physical resource required for all virtual machines that will be established to each required for each virtual machine
Kind of physical resource is identified respectively, to form the of the physical resource for the various species being used to representing required for each virtual machine
Two matrixes;Wherein, the row of the second matrix represents the species of physical resource, and the second matrix column represents physical host;
First assignment module, is arranged to:Counted according to the species of the physical resource in the first matrix in all physics
The quantity of every kind of physical resource in main frame, with the quantity according to every kind of physical resource in all physical hosts in institute
There are the first weights that every kind of physical resource in physical host assigns corresponding physical resource;Wherein, in all physical hosts
The quantity of every kind of physical resource be inversely proportional with the first weights of corresponding physical resource;
Second assignment module, is arranged to:Counting all according to the species of the physical resource in the second matrix will build
The quantity of every kind of physical resource required for vertical virtual machine, with according to every kind of thing required for all virtual machines that will be established
Manage the quantity of resource and assign corresponding physical resource to every kind of physical resource required for all virtual machines that will be established
Second weights;Wherein, the quantity of every kind of physical resource required for all virtual machines that will be established and corresponding physical resource
The second weights be inversely proportional;
Virtual machine establishes module, is arranged to:For the second weights descending arrangement according to one or more physical resource
All virtual machines that will be established, successively circulation perform the following steps, untill establishing all virtual machines that will be established:
The physics of the species of physical hardware required for the virtual machine that selection satisfaction will be established in all physical hosts
Main frame;
Establish the virtual machine that will be established.
Further, in an optional embodiment, physical resource does not include central processing unit and internal memory.
Further, in an optional embodiment, virtual machine is established module and is arranged to:
If have in all physical hosts multiple physical hosts meet the virtual machine that will establish required for physics it is hard
The species of part, then, will be with multiple physical hosts of the species of the physical hardware required for meeting the virtual machine that will establish
First weights corresponding to the weights of highest second in second weights of the one or more physical resources for the virtual machine that will be established
Minimum physical host is elected to be the physical host for establishing the virtual machine that will be established;
Establish the virtual machine that will be established.
Further, in an optional embodiment, virtual machine is established module and is arranged to:
If have in all physical hosts multiple physical hosts meet the virtual machine that will establish required for physics it is hard
The species of part, it is determined that the hardware of multiple physical hosts of the species of the physical hardware required for the virtual machine that satisfaction will be established
Utilization rate;
By hardware utilization compared with the threshold value of hardware utilization set in advance, to determine that its hardware utilization is low
In the physical host of the threshold value of hardware utilization;
In its hardware utilization less than in the physical host of the threshold value of hardware utilization, by with the virtual machine that will establish
The minimum physical host of the first weights corresponding to the weights of highest second is elected to be in second weights of one or more physical resources
For establishing the physical host for the virtual machine that will be established;
Establish the virtual machine that will be established.
Further, in an optional embodiment, virtual machine is established module and is arranged to:
If have in all physical hosts multiple physical hosts meet the virtual machine that will establish required for physics it is hard
The species of part, it is determined that multiple physical hosts of the species of the physical hardware required for the virtual machine for meeting to establish respectively are controlled oneself
The quantity of the virtual machine of foundation;
The threshold value of its corresponding quantity for establishing virtual machine of the quantity for the virtual machine that each physical host has been established is entered
Row compares, to determine that it has established physics master of the quantity of virtual machine less than the threshold value of its corresponding quantity for establishing virtual machine
Machine;
Established at it in physical host of the quantity of virtual machine less than the threshold value of its corresponding quantity for establishing virtual machine,
By with the weights of highest second corresponding first in the second weights of the one or more physical resources of virtual machine that will be established
The minimum physical host of weights is elected to be the physical host for establishing the virtual machine that will be established;
Establish the virtual machine that will be established.
The beneficial effect of embodiments of the invention is:According to the dilute of the hardware resource required for the virtual machine that will be established
The degree of lacking, it can arrange to establish the hardware resource of needs relative scarcity first on the physical host for meet the needs of hardware resource
Virtual machine.So, the success rate for establishing the virtual machine for needing rare hardware resource can be improved, can be made full use of in addition
The rare hardware resource of physical host, improve the utilization rate of rare hardware resource.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by specification, rights
Specifically noted structure is realized and obtained in claim and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this
The embodiment of application is used to explain technical scheme together, does not form the limitation to technical solution of the present invention.
Fig. 1 is the flow chart for the method that virtual machine is established in cloud computing system that embodiments of the invention provide;
Fig. 2 is the step in the method that virtual machine is established in cloud computing system that the embodiment alternatively of the present invention provides
The flow chart of sub-step in rapid S109;
Fig. 3 is the block diagram for the device that virtual machine is established in cloud computing system that embodiments of the invention provide.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with accompanying drawing to the present invention
Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application
Feature can mutually be combined.
Can be in the computer system of such as one group computer executable instructions the flow of accompanying drawing illustrates the step of
Perform.Also, although logical order is shown in flow charts, in some cases, can be with suitable different from herein
Sequence performs shown or described step.
On the one hand, the embodiment provides a kind of method that virtual machine is established in cloud computing system, such as Fig. 1 institutes
Show, the method comprising the steps of S101- steps S109.
Step S101, for all physical hosts in cloud computing system, according to the physics in all physical hosts
The species of resource and the various physical resources in each physical host are identified respectively, with formed be used for represent each
First matrix of the physical resource of various species possessed by physical host;Wherein, the row of the first matrix represents physical resource
Species, the matrix column of physical resource represent physical host.
In step S101, the physical resource in each physical host is identified, by mark and the value that obtains,
The first matrix can be formed, in the first matrix, each row is used for representing various types of physics in all physical hosts
Resource, each row are used for representing each physical host;So, each first value in the first matrix can be used for expressing this
Whether the physical host represented by row where first has the certain type of physical resource represented by the row at this yuan of place.
Step S105, for all virtual machines that will be established on the physical host in cloud computing system, according to all
The species of physical resource required for the virtual machine that will be established and to various physical resources required for each virtual machine point
It is not identified, with second matrix of the formation for the physical resource of the various species required for representing each virtual machine;Wherein,
The row of second matrix represents the species of physical resource, and the second matrix column represents physical host.
In step S105, the physical resource required for the virtual machine that will be established to each is identified, and passes through mark
The value known and obtained, can form the second matrix, and in the second matrix, each row is used for representing all virtual machines that will be established
Required various types of physical resources, each row are used for representing each virtual machine that will be established;So, in the second matrix
Each first value can be used for express this yuan where row represented by the virtual machine machine that will be established whether need this
The certain type of physical resource represented by row where individual member.
Step S103, counted according to the species of the physical resource in the first matrix every kind of in all physical hosts
The quantity of physical resource, with the quantity according to every kind of physical resource in all physical hosts in all physical hosts
Every kind of physical resource assign the first weights of corresponding physical resource;Wherein, every kind of physics money in all physical hosts
The quantity in source is inversely proportional with the first weights of corresponding physical resource.
Here, the first weights are used for representing the relative or absolute of physical resource various in all physical hosts
Degree of scarcity.
Step S107, all virtual machine institutes that will be established are counted according to the species of the physical resource in the second matrix
The quantity of the every kind of physical resource needed, with the quantity according to every kind of physical resource required for all virtual machines that will be established
And the second weights of corresponding physical resource are assigned to every kind of physical resource required for all virtual machines that will be established;Its
In, the quantity of every kind of physical resource required for all virtual machines that will be established and the second weights of corresponding physical resource into
Inverse ratio.
Here, the second weights are used for representing the phase in the various physical resources required for all virtual machines that will be established
To or absolute degree of scarcity.
Step S109, for all will establish of the second weights descending arrangement according to one or more physical resource
Virtual machine, circulation successively performs the following steps as shown in Figure 2, untill establishing all virtual machines that will be established:
Step S1091, in all physical hosts selection meet the physical hardware required for the virtual machine that will establish
The physical host of species;
Step S1093, establish the virtual machine that will be established.
In step S109, all virtual machines that will be established are ranked up first, are according to will at these herein
Second weights of a certain physical resource required for each virtual machine in the virtual machine of foundation or a variety of physical resources
Second weights establish the order of these virtual machines to arrange.In this way, can be according to for representing to establish virtual machine institute
Second weights of the degree of scarcity of the hardware resource needed and arrange the order for establishing virtual machine.
The beneficial effect of embodiments of the invention is:According to the dilute of the hardware resource required for the virtual machine that will be established
The degree of lacking, it can arrange to establish the hardware resource of needs relative scarcity first on the physical host for meet the needs of hardware resource
Virtual machine.So, the success rate for establishing the virtual machine for needing rare hardware resource can be improved, can be made full use of in addition
The rare hardware resource of physical host, improve the utilization rate of rare hardware resource.
Further, in an optional embodiment, physical resource does not include central processing unit and internal memory.
Although each physical host has different hardware resource, each physical host has identical underlying hardware money
Source, and the basic hardware resources required for all virtual machines that will be established are also identical, these basic hardware resources bags
Include:Central processing unit (CPU) and internal memory (also referred to as main storage).If these basic hardware resources are not identified
Words, then be used to represent that the member of these basic hardware resources also will to be reduced correspondingly in the first matrix, the second matrix, also no longer
Need to representing that the member of these basic hardware resources carries out assignment;Thus, perform embodiments of the invention provided in cloud meter
The hardware resource taken is established required for the method for virtual machine in calculation system will also be reduced, and improve the execution efficiency of this method,
Reduce the hsrdware requirements for the hardware device for performing this method.
Further, in an optional embodiment, step S1091 includes:If have in all physical hosts more
The species of physical hardware required for the virtual machine that individual physical host satisfaction will be established, the then virtual machine that will be established in satisfaction
In multiple physical hosts of the species of required physical hardware, one or more physics of the virtual machine with that will establish are provided
The minimum physical host of the first weights corresponding to the weights of highest second is elected to be and will established for foundation in second weights in source
Virtual machine physical host.
Here, arrange to meet the void that will be established by the degree of scarcity according to hardware resource possessed by physical host
The physical host of physical resource required for plan machine, and the degree of scarcity of hardware resource causes cloud possessed by the physical host
Comparatively the physical resource of all physical hosts in computing system more likely has the hardware resource of redundancy, this is improved
The success rate of virtual machine is established when remaining virtual machine is then set up.
Further, in an optional embodiment, step S1091 includes:
It is determined that the hardware profit of multiple physical hosts of the species of physical hardware required for meeting the virtual machine that will establish
With rate;
By hardware utilization compared with the threshold value of hardware utilization set in advance, to determine that its hardware utilization is low
In the physical host of the threshold value of hardware utilization;
In its hardware utilization less than in the physical host of the threshold value of hardware utilization, by with the virtual machine that will establish
The minimum physical host of the first weights corresponding to the weights of highest second is elected to be in second weights of one or more physical resources
For establishing the physical host for the virtual machine that will be established.
Because the capacity of the hardware resource of each physical host is limited, the hardware resource shared by virtual machine connects
Capacity that is near or reaching hardware resource will cause physical host interim card, and void can not be established when establishing virtual machine again
Plan machine, therefore, utilization rate this standard for introducing hardware resource in this embodiment assess the behaviour in service of physical host,
And virtual machine is established on physical host of the hardware utilization less than threshold value, this is improved builds when virtual machine is established
The success rate of vertical virtual machine, and the efficiency for keeping redundancy to enable physical host to improve operation virtual machine.
Further, in an optional embodiment, step S1091 includes:
It is determined that multiple physical hosts of the species of physical hardware required for meeting the virtual machine that will establish are each built
The quantity of vertical virtual machine;
The threshold value of its corresponding quantity for establishing virtual machine of the quantity for the virtual machine that each physical host has been established is entered
Row compares, to determine that it has established physics master of the quantity of virtual machine less than the threshold value of its corresponding quantity for establishing virtual machine
Machine;
Established at it in physical host of the quantity of virtual machine less than the threshold value of its corresponding quantity for establishing virtual machine,
By with the weights of highest second corresponding first in the second weights of the one or more physical resources of virtual machine that will be established
The minimum physical host of weights is elected to be the physical host for establishing the virtual machine that will be established.
Because the quantity for the virtual machine that can be established on each physical host is limited, therefore, in this implementation
Introduced in example and establish this standard of the quantity of virtual machine to assess the behaviour in service of physical host, and virtual machine is established and built
For the quantity of vertical virtual machine less than on the physical host of corresponding threshold value, this is improved establishes virtual machine when virtual machine is established
Success rate, and keep redundancy enable physical host improve operation virtual machine efficiency.
On the other hand, the embodiment provides a kind of device that virtual machine is established in cloud computing system, such as Fig. 3
Shown, the device includes physical host mark module 201, virtual machine mark module 205, the first assignment module 203, the second assignment
Module 207 and virtual machine establish module 209.
Physical host mark module 201 is arranged to:For all physical hosts in cloud computing system, according to all
The species of physical resource in physical host and the various physical resources in each physical host are identified respectively, with
Form the first matrix for representing the physical resource of various species possessed by each physical host;Wherein, first matrix
Row represents the species of physical resource, and the matrix column of physical resource represents physical host;
Virtual machine mark module 205 is arranged to:It will be established for all on the physical host in cloud computing system
Virtual machine, according to the species of the physical resource required for all virtual machines that will be established to required for each virtual machine
Various physical resources are identified respectively, with formation for the physical resource of the various species required for representing each virtual machine
Second matrix;Wherein, the row of the second matrix represents the species of physical resource, and the second matrix column represents physical host;
First assignment module 203 is arranged to:Counted according to the species of the physical resource in the first matrix in property
Manage the quantity of every kind of physical resource in main frame, with the quantity according to every kind of physical resource in all physical hosts to
Every kind of physical resource in all physical hosts assigns the first weights of corresponding physical resource;Wherein, in all physical hosts
In the quantity of every kind of physical resource be inversely proportional with the first weights of corresponding physical resource;
Second assignment module 207 is arranged to:Counted according to the species of the physical resource in the second matrix it is all will
The quantity of every kind of physical resource required for the virtual machine of foundation, with every kind of according to required for all virtual machines that will be established
The quantity of physical resource and assign corresponding physical resource to every kind of physical resource required for all virtual machines that will be established
The second weights;Wherein, the quantity of every kind of physical resource required for all virtual machines that will be established provides with corresponding physics
Second weights in source are inversely proportional;
Virtual machine is established module 209 and is arranged to:For the second weights descending row according to one or more physical resource
All virtual machines that will be established of row, successively circulation perform the following steps, are until establishing all virtual machines that will be established
Only:
The physics of the species of physical hardware required for the virtual machine that selection satisfaction will be established in all physical hosts
Main frame;
Establish the virtual machine that will be established.
The beneficial effect of embodiments of the invention is:According to the dilute of the hardware resource required for the virtual machine that will be established
The degree of lacking, it can arrange to establish the hardware resource of needs relative scarcity first on the physical host for meet the needs of hardware resource
Virtual machine.So, the success rate for establishing the virtual machine for needing rare hardware resource can be improved, can be made full use of in addition
The rare hardware resource of physical host, improve the utilization rate of rare hardware resource.
Further, in an optional embodiment, physical resource does not include central processing unit and internal memory.
Further, in an optional embodiment, virtual machine is established module 209 and is arranged to:
If have in all physical hosts multiple physical hosts meet the virtual machine that will establish required for physics it is hard
The species of part, then, will be with multiple physical hosts of the species of the physical hardware required for meeting the virtual machine that will establish
First weights corresponding to the weights of highest second in second weights of the one or more physical resources for the virtual machine that will be established
Minimum physical host is elected to be the physical host for establishing the virtual machine that will be established;
Establish the virtual machine that will be established.
Further, in an optional embodiment, virtual machine is established module 209 and is arranged to:
If have in all physical hosts multiple physical hosts meet the virtual machine that will establish required for physics it is hard
The species of part, it is determined that the hardware of multiple physical hosts of the species of the physical hardware required for the virtual machine that satisfaction will be established
Utilization rate;
By hardware utilization compared with the threshold value of hardware utilization set in advance, to determine that its hardware utilization is low
In the physical host of the threshold value of hardware utilization;
In its hardware utilization less than in the physical host of the threshold value of hardware utilization, by with the virtual machine that will establish
The minimum physical host of the first weights corresponding to the weights of highest second is elected to be in second weights of one or more physical resources
For establishing the physical host for the virtual machine that will be established;
Establish the virtual machine that will be established.
Further, in an optional embodiment, virtual machine is established module 209 and is arranged to:
If have in all physical hosts multiple physical hosts meet the virtual machine that will establish required for physics it is hard
The species of part, it is determined that multiple physical hosts of the species of the physical hardware required for the virtual machine for meeting to establish respectively are controlled oneself
The quantity of the virtual machine of foundation;
The threshold value of its corresponding quantity for establishing virtual machine of the quantity for the virtual machine that each physical host has been established is entered
Row compares, to determine that it has established physics master of the quantity of virtual machine less than the threshold value of its corresponding quantity for establishing virtual machine
Machine;
Established at it in physical host of the quantity of virtual machine less than the threshold value of its corresponding quantity for establishing virtual machine,
By with the weights of highest second corresponding first in the second weights of the one or more physical resources of virtual machine that will be established
The minimum physical host of weights is elected to be the physical host for establishing the virtual machine that will be established;
Establish the virtual machine that will be established.
Although disclosed herein embodiment as above, above-mentioned content be only readily appreciate the present invention and use
Embodiment, it is not limited to the present invention.Technical staff in any art of the present invention, taken off not departing from the present invention
On the premise of the spirit and scope of dew, any modification and change, but the present invention can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.
Claims (10)
- A kind of 1. method that virtual machine is established in cloud computing system, it is characterised in that including:It is right according to the species of the physical resource in all physical hosts for all physical hosts in cloud computing system Various physical resources in each physical host are identified respectively, are used to represent that each physical host is had to be formed Various species physical resource the first matrix;Wherein, the row of first matrix represents the species of physical resource, the thing The matrix column for managing resource represents physical host;For all virtual machines that will be established on the physical host in the cloud computing system, will be established according to all The species of physical resource required for virtual machine and the various physical resources required for each virtual machine are identified respectively, With second matrix of the formation for the physical resource of the various species required for representing each virtual machine;Wherein, second square The row of battle array represents the species of physical resource, and second matrix column represents physical host;Every kind of physical resource in all physical hosts is counted according to the species of the physical resource in first matrix Quantity, with the quantity according to every kind of physical resource in all physical hosts to every in all physical hosts Kind physical resource assigns the first weights of corresponding physical resource;Wherein, every kind of physical resource in all physical hosts Quantity is inversely proportional with the first weights of corresponding physical resource;Count every required for all virtual machines that will be established according to the species of the physical resource in second matrix The quantity of kind physical resource is right with the quantity according to every kind of physical resource required for all virtual machines that will be established Every kind of physical resource required for all virtual machines that will be established assigns the second weights of corresponding physical resource;Wherein, institute The quantity of every kind of physical resource required for having the virtual machine that will be established is inversely proportional with the second weights of corresponding physical resource;All virtual machines that will be established arranged for the second weights descending according to one or more physical resource, Circulation performs the following steps successively, untill establishing all virtual machines that will be established:The species of physical hardware required for the virtual machine that will be established described in selection satisfaction in all physical hosts Physical host;The virtual machine that will be established described in foundation.
- 2. according to the method for claim 1, wherein, the physical resource does not include central processing unit and internal memory.
- 3. the method according to claim 11, wherein, it is described to be built described in selection satisfaction in all physical hosts The step of physical host of the species of physical hardware required for vertical virtual machine, including:If there is the thing required for the virtual machine that will be established described in multiple physical hosts satisfactions in all physical hosts Manage hardware species, then the physical hardware required for the virtual machine that will be established described in satisfaction species multiple physical hosts In, will be corresponding with the weights of highest second in the second weights of the one or more physical resources of virtual machine that will be established The minimum physical host of the first weights be elected to be physical host for establishing the virtual machine that will be established.
- 4. the method according to claim 11, wherein, the physics required for the virtual machine that will be established described in satisfaction In multiple physical hosts of the species of hardware, by with will establish the second of one or more physical resources of virtual machine The minimum physical host of the first weights corresponding to the weights of highest second is elected to be for establishing the void that will be established in weights The step of physical host of plan machine, including:It is determined that the hardware profit of multiple physical hosts of the species of physical hardware described in meeting required for the virtual machine that will establish With rate;By the hardware utilization compared with the threshold value of hardware utilization set in advance, to determine that its hardware utilization is low In the physical host of the threshold value of the hardware utilization;In its hardware utilization less than in the physical host of the threshold value of the hardware utilization, by with the virtual machine that will establish The minimum physical host of first weights corresponding to the weights of highest second in second weights of one or more physical resources It is elected to be the physical host for establishing the virtual machine that will be established.
- 5. the method according to claim 11, wherein, the physics required for the virtual machine that will be established described in satisfaction In multiple physical hosts of the species of hardware, by with will establish the second of one or more physical resources of virtual machine The minimum physical host of the first weights corresponding to the weights of highest second is elected to be for establishing the void that will be established in weights The step of physical host of plan machine, including:It is determined that multiple physical hosts of the species of physical hardware described in meeting required for the virtual machine that will establish are each built The quantity of vertical virtual machine;The threshold value of its corresponding quantity for establishing virtual machine of the quantity for the virtual machine that each physical host has been established is compared Compared with to determine that it has established physical host of the quantity of virtual machine less than the threshold value of its corresponding quantity for establishing virtual machine;The quantity of virtual machine has been established less than it in physical host of threshold value of corresponding quantity for establishing virtual machine at it, will be with In second weights of the one or more physical resources for the virtual machine that will be established first corresponding to the weights of highest second The minimum physical host of weights is elected to be the physical host for establishing the virtual machine that will be established.
- A kind of 6. device that virtual machine is established in cloud computing system, it is characterised in that including:Physical host mark module, is arranged to:For all physical hosts in cloud computing system, according in all physics masters The species of physical resource in machine and the various physical resources in each physical host are identified respectively, to form use In the first matrix for representing the physical resource of various species possessed by each physical host;Wherein, the row of first matrix The species of physical resource is represented, the matrix column of the physical resource represents physical host;Virtual machine mark module, is arranged to:For all void that will be established on the physical host in the cloud computing system Plan machine, according to the species of the physical resource required for all virtual machines that will be established to each required for each virtual machine Kind of physical resource is identified respectively, to form the of the physical resource for the various species being used to representing required for each virtual machine Two matrixes;Wherein, the row of second matrix represents the species of physical resource, and second matrix column represents physical host;First assignment module, is arranged to:Counted according to the species of the physical resource in first matrix in all physics The quantity of every kind of physical resource in main frame is right with the quantity according to every kind of physical resource in all physical hosts Every kind of physical resource in all physical hosts assigns the first weights of corresponding physical resource;Wherein, in all physics masters The quantity of every kind of physical resource in machine is inversely proportional with the first weights of corresponding physical resource;Second assignment module, is arranged to:Counting all according to the species of the physical resource in second matrix will build The quantity of every kind of physical resource required for vertical virtual machine, with every according to required for all virtual machines that will be established Plant the quantity of physical resource and assign corresponding physics to every kind of physical resource required for all virtual machines that will be established and provide Second weights in source;Wherein, the quantity of every kind of physical resource required for all virtual machines that will be established and corresponding physics Second weights of resource are inversely proportional;Virtual machine establishes module, is arranged to:For the institute of the second weights descending arrangement according to one or more physical resource All virtual machines that will be established are stated, circulation successively performs the following steps, until establishing all virtual machines that will be established Untill:The species of physical hardware required for the virtual machine that will be established described in selection satisfaction in all physical hosts Physical host;The virtual machine that will be established described in foundation.
- 7. device according to claim 6, wherein, the physical resource does not include central processing unit and internal memory.
- 8. device according to claim 6, wherein, the virtual machine is established module and is arranged to:If there is the thing required for the virtual machine that will be established described in multiple physical hosts satisfactions in all physical hosts Manage hardware species, then the physical hardware required for the virtual machine that will be established described in satisfaction species multiple physical hosts In, will be corresponding with the weights of highest second in the second weights of the one or more physical resources of virtual machine that will be established The minimum physical host of the first weights be elected to be physical host for establishing the virtual machine that will be established;The virtual machine that will be established described in foundation.
- 9. device according to claim 8, wherein, the virtual machine is established module and is arranged to:If there is the thing required for the virtual machine that will be established described in multiple physical hosts satisfactions in all physical hosts Manage the species of hardware, it is determined that multiple physics masters of the species of the physical hardware required for the virtual machine that will be established described in satisfaction The hardware utilization of machine;By the hardware utilization compared with the threshold value of hardware utilization set in advance, to determine that its hardware utilization is low In the physical host of the threshold value of the hardware utilization;In its hardware utilization less than in the physical host of the threshold value of the hardware utilization, by with the virtual machine that will establish The minimum physical host of first weights corresponding to the weights of highest second in second weights of one or more physical resources It is elected to be the physical host for establishing the virtual machine that will be established;The virtual machine that will be established described in foundation.
- 10. device according to claim 8, wherein, the virtual machine is established module and is arranged to:If there is the thing required for the virtual machine that will be established described in multiple physical hosts satisfactions in all physical hosts Manage the species of hardware, it is determined that multiple physics masters of the species of the physical hardware required for the virtual machine that will be established described in satisfaction The quantity for the virtual machine that machine has each been established;The threshold value of its corresponding quantity for establishing virtual machine of the quantity for the virtual machine that each physical host has been established is compared Compared with to determine that it has established physical host of the quantity of virtual machine less than the threshold value of its corresponding quantity for establishing virtual machine;The quantity of virtual machine has been established less than it in physical host of threshold value of corresponding quantity for establishing virtual machine at it, will be with In second weights of the one or more physical resources for the virtual machine that will be established first corresponding to the weights of highest second The minimum physical host of weights is elected to be the physical host for establishing the virtual machine that will be established;The virtual machine that will be established described in foundation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711114029.2A CN107861794A (en) | 2017-11-13 | 2017-11-13 | A kind of method and apparatus that virtual machine is established in cloud computing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711114029.2A CN107861794A (en) | 2017-11-13 | 2017-11-13 | A kind of method and apparatus that virtual machine is established in cloud computing system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107861794A true CN107861794A (en) | 2018-03-30 |
Family
ID=61700291
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711114029.2A Pending CN107861794A (en) | 2017-11-13 | 2017-11-13 | A kind of method and apparatus that virtual machine is established in cloud computing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107861794A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110704175A (en) * | 2018-07-10 | 2020-01-17 | 中国电信股份有限公司 | Container deployment method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110225277A1 (en) * | 2010-03-11 | 2011-09-15 | International Business Machines Corporation | Placement of virtual machines based on server cost and network cost |
CN103902384A (en) * | 2014-03-28 | 2014-07-02 | 华为技术有限公司 | Method and device for allocating physical machines for virtual machines |
JP2015022385A (en) * | 2013-07-17 | 2015-02-02 | 日本電気株式会社 | Virtual system and method for controlling virtual system |
CN104683408A (en) * | 2013-11-29 | 2015-06-03 | 中国科学院深圳先进技术研究院 | Method and system for OpenStack cloud computing management platform to build virtual machine instance |
CN105553723A (en) * | 2015-12-17 | 2016-05-04 | 中国科学院信息工程研究所 | Virtual cluster placement method for network traffic perception |
CN105786619A (en) * | 2016-02-24 | 2016-07-20 | 中国联合网络通信集团有限公司 | Virtual machine distribution method and device |
CN106033373A (en) * | 2015-03-11 | 2016-10-19 | 苏宁云商集团股份有限公司 | A method and a system for scheduling virtual machine resources in a cloud computing platform |
CN106325999A (en) * | 2015-06-30 | 2017-01-11 | 华为技术有限公司 | Method and device for distributing resources of host machine |
CN107038064A (en) * | 2017-04-18 | 2017-08-11 | 腾讯科技(深圳)有限公司 | Virtual machine management method and device, storage medium |
-
2017
- 2017-11-13 CN CN201711114029.2A patent/CN107861794A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110225277A1 (en) * | 2010-03-11 | 2011-09-15 | International Business Machines Corporation | Placement of virtual machines based on server cost and network cost |
JP2015022385A (en) * | 2013-07-17 | 2015-02-02 | 日本電気株式会社 | Virtual system and method for controlling virtual system |
CN104683408A (en) * | 2013-11-29 | 2015-06-03 | 中国科学院深圳先进技术研究院 | Method and system for OpenStack cloud computing management platform to build virtual machine instance |
CN103902384A (en) * | 2014-03-28 | 2014-07-02 | 华为技术有限公司 | Method and device for allocating physical machines for virtual machines |
CN106033373A (en) * | 2015-03-11 | 2016-10-19 | 苏宁云商集团股份有限公司 | A method and a system for scheduling virtual machine resources in a cloud computing platform |
CN106325999A (en) * | 2015-06-30 | 2017-01-11 | 华为技术有限公司 | Method and device for distributing resources of host machine |
CN105553723A (en) * | 2015-12-17 | 2016-05-04 | 中国科学院信息工程研究所 | Virtual cluster placement method for network traffic perception |
CN105786619A (en) * | 2016-02-24 | 2016-07-20 | 中国联合网络通信集团有限公司 | Virtual machine distribution method and device |
CN107038064A (en) * | 2017-04-18 | 2017-08-11 | 腾讯科技(深圳)有限公司 | Virtual machine management method and device, storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110704175A (en) * | 2018-07-10 | 2020-01-17 | 中国电信股份有限公司 | Container deployment method and device |
CN110704175B (en) * | 2018-07-10 | 2022-08-02 | 中国电信股份有限公司 | Container deployment method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112346859B (en) | Resource scheduling method and device, electronic equipment and storage medium | |
CN107491341B (en) | A kind of virtual machine distribution method based on particle group optimizing | |
CN106056529B (en) | Method and equipment for training convolutional neural network for picture recognition | |
CN105808328B (en) | The methods, devices and systems of task schedule | |
CN106951926A (en) | The deep learning systems approach and device of a kind of mixed architecture | |
CN105391654A (en) | Account activeness-based system resource allocation method and device | |
CN105786619B (en) | Virtual machine distribution method and device | |
CN106156159A (en) | A kind of table connection processing method, device and cloud computing system | |
DE102013020966B4 (en) | Power efficient attribute handling for tessellation and geometry shading units | |
CN108804383B (en) | Support point parallel enumeration method and device based on measurement space | |
WO2017000645A1 (en) | Method and apparatus for allocating host resource | |
CN107633001A (en) | Hash partition optimization method and device | |
CN109471725A (en) | Resource allocation methods, device and server | |
CN106713375A (en) | Method and device for allocating cloud resources | |
CN108829523A (en) | Memory source distribution method, device, electronic equipment and readable storage medium storing program for executing | |
CN103503412A (en) | Method and device for scheduling resources | |
CN107070645A (en) | Compare the method and system of the data of tables of data | |
CN102831102A (en) | Method and system for carrying out matrix product operation on computer cluster | |
CN108833592A (en) | Cloud host schedules device optimization method, device, equipment and storage medium | |
CN113672375A (en) | Resource allocation prediction method, device, equipment and storage medium | |
CN104778088B (en) | A kind of Parallel I/O optimization methods and system based on reduction interprocess communication expense | |
CN106776003A (en) | A kind of method for distributing system resource and device | |
CN104156316B (en) | A kind of method and system of Hadoop clusters batch processing job | |
CN104657216B (en) | The resource allocation methods and device of a kind of resource pool | |
CN109285015B (en) | Virtual resource allocation method and system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180330 |