CN106874069A - A kind of resources of virtual machine distribution method and device - Google Patents

A kind of resources of virtual machine distribution method and device Download PDF

Info

Publication number
CN106874069A
CN106874069A CN201710083352.1A CN201710083352A CN106874069A CN 106874069 A CN106874069 A CN 106874069A CN 201710083352 A CN201710083352 A CN 201710083352A CN 106874069 A CN106874069 A CN 106874069A
Authority
CN
China
Prior art keywords
virtual machine
resources
allocative decision
resource
user
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
CN201710083352.1A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710083352.1A priority Critical patent/CN106874069A/en
Publication of CN106874069A publication Critical patent/CN106874069A/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
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of resources of virtual machine distribution method, the method is comprised the following steps:Receive resource bid of the user to virtual machine;According to resource bid, determine virtual machine allocative decision set, one or more virtual machine allocative decisions are included in virtual machine allocative decision set, the total quantity of the corresponding every kind of basic resource of resources of virtual machine that each virtual machine allocative decision is included is equal to the quantity of the corresponding basic resource carried in resource bid;Each corresponding total cost of virtual machine allocative decision in virtual machine allocative decision set is calculated respectively;It is user's distribution resources of virtual machine according to each the corresponding total cost of virtual machine allocative decision being calculated.The technical scheme provided using the embodiment of the present invention, optimizes to resources of virtual machine allocative decision, can be on the premise of user resources use demand is met so that the expense expenditure of user is as small as possible.The invention also discloses a kind of resources of virtual machine distributor, with relevant art effect.

Description

A kind of resources of virtual machine distribution method and device
Technical field
The present invention relates to field of cloud computer technology, more particularly to a kind of resources of virtual machine distribution method and device.
Background technology
With the fast development of computer technology, cloud computing is developed rapidly and extensive use.Cloud computing is to pass through Originally scattered physical computer resource consolidation into huge resource pool, is provided the user " inexhaustible use by Intel Virtualization Technology It is inexhaustible " computing resource.Cloud computing has two outstanding features:The economic benefits of scale and efficient resource utilization.
In cloud computing application, the resource provisioning of supplier is realized in virtual machine form, can provide the user spirit Elastic service program living, user pays corresponding expense according to actual resources of virtual machine usage amount.For external user For, resources of virtual machine is indiscriminate, as long as user is by network interface application and uses corresponding resources of virtual machine, The specific source of these resources of virtual machine need not be concerned about.
How resources of virtual machine distribution is carried out for user's request so that the expense expenditure of user is as small as possible, is current The technical problem of those skilled in the art's urgent need to resolve.
The content of the invention
It is an object of the invention to provide a kind of resources of virtual machine distribution method and device, with to resources of virtual machine allocative decision Optimize, the expense expenditure of user is reduced as far as possible.
In order to solve the above technical problems, the present invention provides following technical scheme:
A kind of resources of virtual machine distribution method, including:
Resource bid of the user to virtual machine is received, the quantity of every kind of basic resource of application is carried in the resource bid Information;
According to the resource bid, virtual machine allocative decision set is determined, included in the virtual machine allocative decision set One or more virtual machine allocative decisions, the corresponding every kind of basic resource of resources of virtual machine that each virtual machine allocative decision is included Total quantity be equal to the resource bid in carry corresponding basic resource quantity;
Each corresponding total cost of virtual machine allocative decision in the virtual machine allocative decision set is calculated respectively;
It is user's distribution virtual machine money according to each the corresponding total cost of virtual machine allocative decision being calculated Source.
It is described according to the resource bid in a kind of specific embodiment of the invention, determine virtual machine allocative decision Set, including:
According to the resource bid, determine whether there are enough resources of virtual machine in the corresponding reserved resource pool of the user For distribution;
If it is, selecting resources of virtual machine from the reserved resource pool, one or more virtual machine distribution sides are obtained Case.
In a kind of specific embodiment of the invention, it is determined that without enough in the corresponding reserved resource pool of the user Resources of virtual machine for distribution when, also include:
Whole resources of virtual machine are selected from the reserved resource pool, and respective virtual machine money is selected from common pool Source, obtains one or more virtual machine allocative decisions.
It is described to calculate each in the virtual machine allocative decision set respectively in a kind of specific embodiment of the invention The corresponding total cost of virtual machine allocative decision, including:
For each virtual machine allocative decision in the virtual machine allocative decision set, the virtual machine allocative decision bag is determined The expense P1 of the resources of virtual machine for containing;
Determine the expense P2 of remaining resources of virtual machine in the corresponding reserved resource pool of the virtual machine allocative decision;
The P1 and the P2 sums are defined as the corresponding total cost of virtual machine allocative decision.
In a kind of specific embodiment of the invention, also include:
Determine each virtual machine allocative decision corresponding virtual machine response time in the virtual machine allocative decision set;
Accordingly, each corresponding total cost of virtual machine allocative decision that the basis is calculated, is the user point With resources of virtual machine, including:
The corresponding void of minimum total cost is selected in virtual machine allocative decision of the virtual machine response time less than predetermined threshold value Plan machine allocative decision, is user's distribution resources of virtual machine.
A kind of resources of virtual machine distributor, including:
Resource bid receiver module, for receiving resource bid of the user to virtual machine, Shen is carried in the resource bid The quantity information of every kind of basic resource please;
Virtual machine allocative decision set determining module, for according to the resource bid, determining virtual machine allocative decision collection Close, one or more virtual machine allocative decisions, each virtual machine allocative decision bag are included in the virtual machine allocative decision set The total quantity of the corresponding every kind of basic resource of resources of virtual machine for containing is equal to the corresponding basic resource carried in the resource bid Quantity;
Total cost computing module, for calculating each virtual machine allocative decision in the virtual machine allocative decision set respectively Corresponding total cost;
Resources of virtual machine distribute module, for each corresponding total cost of virtual machine allocative decision that basis is calculated, For the user distributes resources of virtual machine.
In a kind of specific embodiment of the invention, the virtual machine allocative decision set determining module, specifically for:
According to the resource bid, determine whether there are enough resources of virtual machine in the corresponding reserved resource pool of the user For distribution;
If it is, selecting resources of virtual machine from the reserved resource pool, one or more virtual machine distribution sides are obtained Case.
In a kind of specific embodiment of the invention, the virtual machine allocative decision set determining module is additionally operable to:
When it is determined that there is no enough resources of virtual machine in the corresponding reserved resource pool of the user for distribution, from described pre- The whole resources of virtual machine of selection in resource pool are stayed, and respective virtual machine resource is selected from common pool, obtain one or many Individual virtual machine allocative decision.
In a kind of specific embodiment of the invention, the total cost computing module, specifically for:
For each virtual machine allocative decision in the virtual machine allocative decision set, the virtual machine allocative decision bag is determined The expense P1 of the resources of virtual machine for containing;
Determine the expense P2 of remaining resources of virtual machine in the corresponding reserved resource pool of the virtual machine allocative decision;
The P1 and the P2 sums are defined as the corresponding total cost of virtual machine allocative decision.
In a kind of specific embodiment of the invention, also including virtual machine response time determining module, it is used for:
Determine each virtual machine allocative decision corresponding virtual machine response time in the virtual machine allocative decision set;
Accordingly, the resources of virtual machine distribute module, specifically for:
The corresponding void of minimum total cost is selected in virtual machine allocative decision of the virtual machine response time less than predetermined threshold value Plan machine allocative decision, is user's distribution resources of virtual machine.
The technical scheme provided using the embodiment of the present invention, when user is received to the resource bid of virtual machine, root According to resource bid, virtual machine allocative decision set is determined, comprising one or more virtual machines point in virtual machine allocative decision set With scheme, the total quantity of the corresponding every kind of basic resource of resources of virtual machine that each virtual machine allocative decision is included is equal to resource Shen Please in the quantity of corresponding basic resource that carries, for each the virtual machine allocative decision in virtual machine allocative decision set, meter Its corresponding total cost is calculated, is that user's distribution is virtual according to each the corresponding total cost of virtual machine allocative decision being calculated Machine resource.So resources of virtual machine allocative decision is optimized, can be made on the premise of user resources use demand is met The expense expenditure for obtaining user is as small as possible.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of implementing procedure figure of resources of virtual machine distribution method in the embodiment of the present invention;
Fig. 2 is a kind of structural representation of resources of virtual machine distributor in the embodiment of the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiment is only a part of embodiment of the invention, rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, belongs to the scope of protection of the invention.
It is shown in Figure 1, it is a kind of implementing procedure figure of resources of virtual machine distribution method, the method in the embodiment of the present invention May comprise steps of:
S110:Receive resource bid of the user to virtual machine.
The quantity information of every kind of basic resource of application is carried in resource bid.
In embodiments of the present invention, each resources of virtual machine can include various basic resources, such as internal memory, CPU, network interface card Basic resource.Network interface card can provide the user the corresponding network bandwidth.The unit of every kind of basic resource can be preset, it is such as interior The unit deposited is " G ", and the unit of CPU and network interface card is " individual ".
In actual applications, cloud agency can be allocated to resources of virtual machine.One resources of virtual machine of cloud agent maintenance Pond, the resources of virtual machine in resources of virtual machine pond is provided by one or more suppliers, the corresponding basis of each resources of virtual machine Resource quantity may be identical or different, such as resources of virtual machine A correspondence 1G internal memories, 1 CPU, 1 network interface card, resources of virtual machine B correspondences 4G internal memories, 2 CPU, 1 network interface card.
When user has the demand using resources of virtual machine, can be sent to cloud agency carries out resource bid to virtual machine. The quantity information of every kind of basic resource of application is carried in resource bid.Such as to apply for 4G internal memories, 2 CPU and 2 network interface cards.
When cloud agency receives user to the resource bid of virtual machine, the operation of step S120 can be continued executing with.
S120:According to resource bid, virtual machine allocative decision set is determined.
One or more virtual machine allocative decisions, each virtual machine allocative decision bag are included in virtual machine allocative decision set The total quantity of the corresponding every kind of basic resource of resources of virtual machine for containing is equal to the number of the corresponding basic resource carried in resource bid Amount.
In embodiments of the present invention, when user is received to the resource bid of virtual machine, can be according in resource bid The quantity information of every kind of basic resource of user's application of carrying, selects resources of virtual machine from resources of virtual machine pond, obtains one Individual or multiple virtual machine allocative decisions, constitute virtual machine allocative decision set.
The total quantity of the corresponding every kind of basic resource of resources of virtual machine that each virtual machine allocative decision is included is equal to resource The quantity of the corresponding basic resource carried in application.
For example, user will apply for 4G internal memories, 2 CPU and 2 network interface cards, resources of virtual machine A pairs in resources of virtual machine pond Answer 1G internal memories, 1 CPU, 1 network interface card, resources of virtual machine B correspondence 4G internal memories, 2 CPU, 1 network interface card, resources of virtual machine C correspondences 2G internal memories, 1 CPU, 2 network interface cards.The quantity of the corresponding basic resource of each resources of virtual machine is current in resources of virtual machine pond Assignable quantity, not comprising having distributed to the basic resource that user uses.
The virtual machine allocative decision of resources of virtual machine, acquisition is selected from resources of virtual machine pond can be had:
(1) 1 CPU+ virtual machine of the 3G internal memories of the 1G internal memories+resources of virtual machine B of resources of virtual machine A, resources of virtual machine A 1 network interface card of 1 CPU of resource B, the 1 network interface card+resources of virtual machine B of resources of virtual machine A;
(2) 2G internal memories+1G internal memories of resources of virtual machine C, the virtual machine of the 1G internal memories+resources of virtual machine B of resources of virtual machine A 1 CPU of 1 CPU+ resources of virtual machine C of resource A, 2 network interface cards of resources of virtual machine C;
……
By various combination, multiple virtual machine allocative decisions can be obtained.
In a kind of specific embodiment of the invention, step S120 may comprise steps of:
Step one:According to resource bid, determine whether there are enough resources of virtual machine in the corresponding reserved resource pool of user For distribution, if it is, performing step 2;
Step 2:Resources of virtual machine is selected from reserved resource pool, one or more virtual machine allocative decisions are obtained.
For ease of description, above-mentioned two step is combined and is illustrated.
In embodiments of the present invention, cloud agency, according to the request of the different attribute or user of user, can be in advance each User reserves certain resources of virtual machine.For certain user, keeping for the resources of virtual machine of the user will not reallocate Used to other users.The different reserved resource pool of different user correspondence.
When user is received to the resource bid of virtual machine, can determine that user is corresponding pre- according to the resource bid Whether in resource pool have enough resources of virtual machine for distribution, that is, resources of virtual machine is corresponding every kind of in determining reserved resource pool if staying Whether basic resource total quantity is more than or equal to the quantity of the corresponding basic resource of user's application.
If it is determined that have enough resources of virtual machine in the corresponding reserved resource pool of user for distribution, then can be from reserved void Resources of virtual machine is selected in plan machine resource pool, one or more virtual machine allocative decisions are obtained.
In actual applications, if the demand of user is larger, keeping for the resources of virtual machine of user possibly cannot expire There is no enough resources of virtual machine in the corresponding reserved resource pool of sufficient user's request, i.e. user for distributing, in this case, can To select resources of virtual machine from reserved resource pool and common pool respectively, one or more virtual machine allocative decisions are obtained.
In a kind of specific embodiment of the invention, it is determined that there is no enough void in the corresponding reserved resource pool of user When plan machine resource is for distribution, whole resources of virtual machine can be selected from reserved resource pool, and phase is selected from common pool Resources of virtual machine is answered, one or more virtual machine allocative decisions are obtained.
Resources of virtual machine in reserved resource pool keeps for user to use, it is impossible to distributes to other users and uses, institute With, it is necessary to preferential select resources of virtual machine, remainder to be selected from common pool in the corresponding reserved resource pool of user. The wasting of resources can so be avoided
S130:Each corresponding total cost of virtual machine allocative decision in virtual machine allocative decision set is calculated respectively.
It is understood that the quantity and unit price of the corresponding basic resource of resources of virtual machine that each supplier provides May be different.
In step S120, it is determined that virtual machine allocative decision set in include one or more virtual machine allocative decisions, often The corresponding different basic resource of resources of virtual machine that individual virtual machine allocative decision is included.Unit price sum according to basic resource Amount, can respectively calculate each corresponding total cost of virtual machine allocative decision in virtual machine allocative decision set.
In a kind of specific embodiment of the invention, step S130 may comprise steps of:
First step:For each virtual machine allocative decision in virtual machine allocative decision set, the virtual machine point is determined The expense P1 of the resources of virtual machine included with scheme;
Second step:Determine the expense of remaining resources of virtual machine in the corresponding reserved resource pool of the virtual machine allocative decision P2;
3rd step:P1 and P2 sums are defined as the corresponding total cost of virtual machine allocative decision.
For ease of description, above three step is combined and is illustrated.
For each virtual machine allocative decision in virtual machine allocative decision set, it may be determined that the virtual machine allocative decision bag The attribute information of each resources of virtual machine for containing, the resource pool belonging to supplier information, resources of virtual machine such as resources of virtual machine Quantity and unit price information of the corresponding basic resource of information, resources of virtual machine etc..According to the attribute of each resources of virtual machine Information, it may be determined that the expense P1, P1 of the resources of virtual machine that the virtual machine allocative decision is included are the virtual machine allocative decision bag The quantity of the corresponding every kind of basic resource of each resources of virtual machine for containing and the sum of products of unit price.
Such as, certain virtual machine allocative decision includes resources of virtual machine A and resources of virtual machine B, resources of virtual machine A and virtual Machine resource B belongs to different suppliers, and the wherein corresponding basic resources of resources of virtual machine A are respectively:1G internal memories, 1 CPU, 1 Individual network interface card;The corresponding basic resources of resources of virtual machine B are respectively:3G internal memories, 1 CPU, 1 network interface card.Resources of virtual machine A correspondences Internal memory unit price for c1, CPU unit price for c2, network interface card unit price be c3;In resources of virtual machine B is corresponding The unit price deposited for c4, CPU unit price for c5, network interface card unit price be c6.
Can be drawn from information above, the expense P1=1*c1+1* of the resources of virtual machine that the virtual machine allocative decision is included c2+1*c3+3*c4+1*c5+1*c6。
In embodiments of the present invention, the resources of virtual machine that the same supplier in different resource pond provides is corresponding same The unit price for planting basic resource can be with difference.Such as, the void in the resources of virtual machine A and common pool in resource pool is reserved The resources of virtual machine that plan machine resource C is provided for same supplier, in certain virtual machine allocative decision comprising resources of virtual machine A and The unit price of the corresponding basic resource of resources of virtual machine C, resources of virtual machine C can be corresponding higher than resources of virtual machine A corresponding The unit price of basic resource.Resources of virtual machine in common pool is the extra resources of virtual machine for using of user, it is necessary to negative Load expense higher.
In actual applications, after in reserved resource pool for user's selection resources of virtual machine, if in reserved resource pool also There is remaining resources of virtual machine, then some residual resources of virtual machine, user also needs to undertake certain expense.Because some residual Resources of virtual machine still needs to keep for the user, it is impossible to distributes to other users and uses.
For each virtual machine allocative decision in virtual machine allocative decision set, it may be determined that the virtual machine allocative decision pair The expense P2 of remaining resources of virtual machine in the reserved resource pool answered.The unit price of the corresponding basic resource of remaining resources of virtual machine The unit price of the corresponding corresponding basic resource of the resources of virtual machine for having selected of same supplier can be less than.
For certain virtual machine allocative decision, the corresponding total cost=P1+P2 of the virtual machine allocative decision will P1 It is defined as the corresponding total cost of the virtual machine allocative decision with P2 sums.
S140:It is user's distribution virtual machine money according to each the corresponding total cost of virtual machine allocative decision being calculated Source.
In step S130, each virtual machine allocative decision is corresponding total during virtual machine allocative decision set is calculated respectively Expense.According to each the corresponding total cost of virtual machine allocative decision being calculated, resources of virtual machine can be distributed for user.
Consider from the economic benefits of user, can be according to the total cost of each the virtual machine allocative decision being calculated, really The corresponding virtual machine allocative decision of minimum total cost is made, is user's distribution resources of virtual machine according to the virtual machine allocative decision.
In a kind of specific embodiment of the invention, the method can also be comprised the following steps:
Determine each virtual machine allocative decision corresponding virtual machine response time in virtual machine allocative decision set;
Accordingly, step S140 may comprise steps of:
The corresponding void of minimum total cost is selected in virtual machine allocative decision of the virtual machine response time less than predetermined threshold value Plan machine allocative decision, is user's distribution resources of virtual machine.
In embodiments of the present invention, the virtual machine response time is introduced.Each virtual machine allocative decision can correspond to one The individual virtual machine response time.The virtual machine response time refer to user by cloud computing realize that a certain application process experienced when Between.The response time of single virtual machine resource includes:Process time and scheduling time, process time refer to that user uses this virtual Machine resource completes the time that corresponding calculating task is consumed, and scheduling time refers to that supplier provides the user the resources of virtual machine The reaction time of service, i.e., since to user obtain the resources of virtual machine right to use user sends request and begin to use when Between, scheduling time is generally dependent on network condition, supplier resource Intel Virtualization Technology ability and cloud agent Coordination ability etc..
For each virtual machine allocative decision, it is virtual that the virtual machine allocative decision corresponding virtual machine response time is equal to this The maximum response time in the response time of each resources of virtual machine that machine allocative decision is included.
The default setting of actual demand or system according to user, can set a threshold value for the response time, Virtual machine allocative decision of the virtual machine response time less than predetermined threshold value is determined in virtual machine allocative decision set, then true The corresponding virtual machine allocative decision of minimum total cost is selected in these virtual machine allocative decisions made, is distributed according to the virtual machine Scheme is that user distributes resources of virtual machine.
The method provided using the embodiment of the present invention, when user is received to the resource bid of virtual machine, according to money Source application, determines virtual machine allocative decision set, and one or more virtual machine distribution sides are included in virtual machine allocative decision set Case, the total quantity of the corresponding every kind of basic resource of resources of virtual machine that each virtual machine allocative decision is included is equal in resource bid The quantity of the corresponding basic resource for carrying, for each the virtual machine allocative decision in virtual machine allocative decision set, calculates it Corresponding total cost, is user's distribution virtual machine money according to each the corresponding total cost of virtual machine allocative decision being calculated Source.So resources of virtual machine allocative decision is optimized, can be on the premise of user resources use demand be met so that use The expense expenditure at family is as small as possible.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of resources of virtual machine distributor, under A kind of resources of virtual machine distributor of text description can mutually corresponding ginseng with a kind of above-described resources of virtual machine distribution method According to.
Shown in Figure 2, the device is included with lower module:
Resource bid receiver module 210, for receiving resource bid of the user to virtual machine, carries application in resource bid Every kind of basic resource quantity information;
Virtual machine allocative decision set determining module 220, for according to resource bid, determining virtual machine allocative decision collection Close, one or more virtual machine allocative decisions are included in virtual machine allocative decision set, what each virtual machine allocative decision was included The total quantity of the corresponding every kind of basic resource of resources of virtual machine is equal to the quantity of the corresponding basic resource carried in resource bid;
Total cost computing module 230, for calculating each virtual machine allocative decision in virtual machine allocative decision set respectively Corresponding total cost;
Resources of virtual machine distribute module 240, for according to the corresponding total expense of each virtual machine allocative decision being calculated With, be user distribution resources of virtual machine.
The device provided using the embodiment of the present invention, when user is received to the resource bid of virtual machine, according to money Source application, determines virtual machine allocative decision set, and one or more virtual machine distribution sides are included in virtual machine allocative decision set Case, the total quantity of the corresponding every kind of basic resource of resources of virtual machine that each virtual machine allocative decision is included is equal in resource bid The quantity of the corresponding basic resource for carrying, for each the virtual machine allocative decision in virtual machine allocative decision set, calculates it Corresponding total cost, is user's distribution virtual machine money according to each the corresponding total cost of virtual machine allocative decision being calculated Source.So resources of virtual machine allocative decision is optimized, can be on the premise of user resources use demand be met so that use The expense expenditure at family is as small as possible.
In a kind of specific embodiment of the invention, virtual machine allocative decision set determining module 220, specifically for:
According to resource bid, determine whether there are enough resources of virtual machine for distribution in the corresponding reserved resource pool of user;
If it is, selecting resources of virtual machine from reserved resource pool, one or more virtual machine allocative decisions are obtained.
In a kind of specific embodiment of the invention, virtual machine allocative decision set determining module 220 is additionally operable to:
When it is determined that there is no enough resources of virtual machine in the corresponding reserved resource pool of user for distribution, from reserved resource pool The middle whole resources of virtual machine of selection, and respective virtual machine resource is selected from common pool, obtain one or more virtual machines Allocative decision.
In a kind of specific embodiment of the invention, total cost computing module 230, specifically for:
For each virtual machine allocative decision in virtual machine allocative decision set, determine what the virtual machine allocative decision was included The expense P1 of resources of virtual machine;
Determine the expense P2 of remaining resources of virtual machine in the corresponding reserved resource pool of the virtual machine allocative decision;
P1 and P2 sums are defined as the corresponding total cost of virtual machine allocative decision.
In a kind of specific embodiment of the invention, also including virtual machine response time determining module, it is used for:
Determine each virtual machine allocative decision corresponding virtual machine response time in virtual machine allocative decision set;
Accordingly, resources of virtual machine distribute module 240, specifically for:
The corresponding void of minimum total cost is selected in virtual machine allocative decision of the virtual machine response time less than predetermined threshold value Plan machine allocative decision, is user's distribution resources of virtual machine.
Each embodiment is described by the way of progressive in this specification, and what each embodiment was stressed is and other The difference of embodiment, between each embodiment same or similar part mutually referring to.For being filled disclosed in embodiment For putting, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part Illustrate.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, generally describes the composition and step of each example according to function in the above description.These Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
The step of method or algorithm for being described with reference to the embodiments described herein, directly can be held with hardware, processor Capable software module, or the two combination is implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In field in known any other form of storage medium.
Specific case used herein is set forth to principle of the invention and implementation method, and above example is said It is bright to be only intended to help and understand technical scheme and its core concept.It should be pointed out that common for the art For technical staff, under the premise without departing from the principles of the invention, some improvement and modification can also be carried out to the present invention, these Improve and modification is also fallen into the protection domain of the claims in the present invention.

Claims (10)

1. a kind of resources of virtual machine distribution method, it is characterised in that including:
Resource bid of the user to virtual machine is received, the quantity letter of every kind of basic resource of application is carried in the resource bid Breath;
According to the resource bid, virtual machine allocative decision set is determined, one is included in the virtual machine allocative decision set Or multiple virtual machine allocative decisions, the corresponding every kind of basic resource of resources of virtual machine that each virtual machine allocative decision is included it is total Quantity is equal to the quantity of the corresponding basic resource carried in the resource bid;
Each corresponding total cost of virtual machine allocative decision in the virtual machine allocative decision set is calculated respectively;
It is user's distribution resources of virtual machine according to each the corresponding total cost of virtual machine allocative decision being calculated.
2. resources of virtual machine distribution method according to claim 1, it is characterised in that described according to the resource bid, Determine virtual machine allocative decision set, including:
According to the resource bid, determine whether there are enough resources of virtual machine for dividing in the corresponding reserved resource pool of the user Match somebody with somebody;
If it is, selecting resources of virtual machine from the reserved resource pool, one or more virtual machine allocative decisions are obtained.
3. resources of virtual machine distribution method according to claim 2, it is characterised in that it is determined that the user is corresponding pre- Stay when there is no enough resources of virtual machine in resource pool for distribution, also include:
Whole resources of virtual machine are selected from the reserved resource pool, and respective virtual machine resource are selected from common pool, Obtain one or more virtual machine allocative decisions.
4. resources of virtual machine distribution method according to claim 2, it is characterised in that described to calculate the virtual machine respectively Each corresponding total cost of virtual machine allocative decision in allocative decision set, including:
For each virtual machine allocative decision in the virtual machine allocative decision set, determine what the virtual machine allocative decision was included The expense P1 of resources of virtual machine;
Determine the expense P2 of remaining resources of virtual machine in the corresponding reserved resource pool of the virtual machine allocative decision;
The P1 and the P2 sums are defined as the corresponding total cost of virtual machine allocative decision.
5. the resources of virtual machine distribution method according to any one of Claims 1-4, it is characterised in that also include:
Determine each virtual machine allocative decision corresponding virtual machine response time in the virtual machine allocative decision set;
Accordingly, each corresponding total cost of virtual machine allocative decision that the basis is calculated, is that user's distribution is empty Plan machine resource, including:
The corresponding virtual machine of minimum total cost is selected in virtual machine allocative decision of the virtual machine response time less than predetermined threshold value Allocative decision, is user's distribution resources of virtual machine.
6. a kind of resources of virtual machine distributor, it is characterised in that including:
Resource bid receiver module, for receiving resource bid of the user to virtual machine, carries application in the resource bid The quantity information of every kind of basic resource;
Virtual machine allocative decision set determining module, for according to the resource bid, determining virtual machine allocative decision set, institute State the void included comprising one or more virtual machine allocative decisions, each virtual machine allocative decision in virtual machine allocative decision set The total quantity of the corresponding every kind of basic resource of plan machine resource is equal to the quantity of the corresponding basic resource carried in the resource bid;
Total cost computing module, for calculating each virtual machine allocative decision correspondence in the virtual machine allocative decision set respectively Total cost;
Resources of virtual machine distribute module, for being institute according to each the corresponding total cost of virtual machine allocative decision being calculated State user's distribution resources of virtual machine.
7. resources of virtual machine distributor according to claim 6, it is characterised in that the virtual machine allocative decision set Determining module, specifically for:
According to the resource bid, determine whether there are enough resources of virtual machine for dividing in the corresponding reserved resource pool of the user Match somebody with somebody;
If it is, selecting resources of virtual machine from the reserved resource pool, one or more virtual machine allocative decisions are obtained.
8. resources of virtual machine distributor according to claim 7, it is characterised in that the virtual machine allocative decision set Determining module, is additionally operable to:
When it is determined that there is no enough resources of virtual machine in the corresponding reserved resource pool of the user for distribution, from the reserved money Whole resources of virtual machine are selected in the pond of source, and respective virtual machine resource is selected from common pool, obtain one or more empty Plan machine allocative decision.
9. resources of virtual machine distributor according to claim 7, it is characterised in that the total cost computing module, tool Body is used for:
For each virtual machine allocative decision in the virtual machine allocative decision set, determine what the virtual machine allocative decision was included The expense P1 of resources of virtual machine;
Determine the expense P2 of remaining resources of virtual machine in the corresponding reserved resource pool of the virtual machine allocative decision;
The P1 and the P2 sums are defined as the corresponding total cost of virtual machine allocative decision.
10. the resources of virtual machine distributor according to any one of claim 6 to 9, it is characterised in that also including virtual machine Response time determining module, is used for:
Determine each virtual machine allocative decision corresponding virtual machine response time in the virtual machine allocative decision set;
Accordingly, the resources of virtual machine distribute module, specifically for:
The corresponding virtual machine of minimum total cost is selected in virtual machine allocative decision of the virtual machine response time less than predetermined threshold value Allocative decision, is user's distribution resources of virtual machine.
CN201710083352.1A 2017-02-16 2017-02-16 A kind of resources of virtual machine distribution method and device Pending CN106874069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710083352.1A CN106874069A (en) 2017-02-16 2017-02-16 A kind of resources of virtual machine distribution method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710083352.1A CN106874069A (en) 2017-02-16 2017-02-16 A kind of resources of virtual machine distribution method and device

Publications (1)

Publication Number Publication Date
CN106874069A true CN106874069A (en) 2017-06-20

Family

ID=59166753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710083352.1A Pending CN106874069A (en) 2017-02-16 2017-02-16 A kind of resources of virtual machine distribution method and device

Country Status (1)

Country Link
CN (1) CN106874069A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301238A (en) * 2017-06-28 2017-10-27 北京京东尚科信息技术有限公司 The processing method and system of user's request
CN110806937A (en) * 2019-10-16 2020-02-18 湖北美和易思教育科技有限公司 GPU (graphics processing Unit) scheduling method and system for artificial intelligence teaching and scientific research platform

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592160A (en) * 2015-12-30 2016-05-18 南京邮电大学 Service-consumer-oriented resource configuration method in cloud computing environment
US9720727B1 (en) * 2010-12-28 2017-08-01 Amazon Technologies, Inc. Managing virtual machine migration

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9720727B1 (en) * 2010-12-28 2017-08-01 Amazon Technologies, Inc. Managing virtual machine migration
CN105592160A (en) * 2015-12-30 2016-05-18 南京邮电大学 Service-consumer-oriented resource configuration method in cloud computing environment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谢文静: "云计算环境下虚拟机资源分配优化方法研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301238A (en) * 2017-06-28 2017-10-27 北京京东尚科信息技术有限公司 The processing method and system of user's request
CN110806937A (en) * 2019-10-16 2020-02-18 湖北美和易思教育科技有限公司 GPU (graphics processing Unit) scheduling method and system for artificial intelligence teaching and scientific research platform

Similar Documents

Publication Publication Date Title
CN105900064B (en) The method and apparatus for dispatching data flow task
CN104966214B (en) A kind of exchange method and device of electronic ticket
CN104951353B (en) It is a kind of to realize the method and device for accelerating processing to VNF
CN109634748A (en) Cluster resource dispatching method, device, equipment and computer readable storage medium
CN105718364B (en) Resource capability dynamic assessment method is calculated in a kind of cloud computing platform
WO2019024445A1 (en) Collaborative optimization method for geographic distribution interactive service cloud resource
CN106936874B (en) Physical source distributing method, apparatus and system
CN104407925A (en) Dynamic resource distribution method
Das et al. A QoS and profit aware cloud confederation model for IaaS service providers
CN106257893A (en) Storage server task response method, client, server and system
CN104572301A (en) Resource distribution method and system
CN106789118A (en) Cloud computing charging method based on service-level agreement
CN106598737A (en) Method and device for implementing hardware resource allocation
CN109491788A (en) A kind of virtual platform implementation of load balancing and device
CN108881043A (en) Distribution method, device, equipment and the storage medium of portfolio in shared set meal
CN109471725A (en) Resource allocation methods, device and server
CN103548324A (en) Method for virtual machine assignment and device for virtual machine assignment
CN112395075A (en) Resource processing method and device and resource scheduling system
CN106897115A (en) SaaS software deployments method and device under a kind of cloud environment
CN108023834A (en) A kind of cloud resource auto-allocation method and device
CN106874069A (en) A kind of resources of virtual machine distribution method and device
CN109358960A (en) A kind of task distribution method, system, equipment and computer readable storage medium
CN105592160B (en) Resource allocation method towards service consumer under a kind of cloud computing environment
CN107861820A (en) A kind of resources of virtual machine distribution method and system
CN105511959A (en) Method and device for distributing virtual resource

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