CN101593134A - Virtual machine cpu resource distribution method and device - Google Patents
Virtual machine cpu resource distribution method and device Download PDFInfo
- Publication number
- CN101593134A CN101593134A CNA2009100880212A CN200910088021A CN101593134A CN 101593134 A CN101593134 A CN 101593134A CN A2009100880212 A CNA2009100880212 A CN A2009100880212A CN 200910088021 A CN200910088021 A CN 200910088021A CN 101593134 A CN101593134 A CN 101593134A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- cpu resource
- current period
- period
- ref
- 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.)
- Granted
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of virtual machine cpu resource distribution method and device.This method comprises: the ruuning situation of each virtual machine of monitoring current period obtains monitoring information, and monitoring information comprises at least: the handling capacity of using on the cpu resource utilization factor of each virtual machine of current period and each virtual machine of current period; According to monitoring information, be aim parameter with the target throughput of using on the target cpu resource utilization factor of each virtual machine and each virtual machine, the cpu resource request amount of feedback adjusting each virtual machine of following one-period; According to the cpu resource request amount of each virtual machine, in the make a strategic decision cpu resource sendout of each virtual machine of following one-period of Virtual Machine Manager key-course; According to the cpu resource sendout of each virtual machine, for each virtual machine distributes cpu resource.The present invention adopts dynamical fashion for each virtual machine distributes cpu resource, makes a plurality of virtual machines on the physical node coordinate to share cpu resource.
Description
Technical field
The present invention relates to the virtual machine technique field, relate in particular to a kind of virtual machine cpu resource distribution method and device.
Background technology
In data center, move needed stabilized power source environment, suitable Temperature and Humidity Control and network bandwidth condition for ensureing server, need carry out centralized and unified management to a large amount of servers.Traditional server application deployment is often taked the mode of private server (Dedicated server).In this manner, influence each other to each other on same physical node for avoiding a plurality of application deployments, a general physical node is only disposed an assembly of single application or application.But adverse consequencess such as the utilization factor of hardware resource is low excessively, the expense of purchase hardware resource is excessive that this mode will inevitably cause, the while has also increased the cost of management maintenance.
The appearance of virtual machine technique makes that a plurality of operation system examples can parallel running on same physical node, and for the application that is deployed in respectively wherein provides good performance to isolate, has led the trend of Server Consolidation.The application mode of this Server Consolidation has not only improved the resource utilization of server, has reduced the cost of purchasing hardware, and has reduced the loss of the energy and the human cost of management maintenance.
Virtual machine technique is meant one overlaps on the complete computer hardware platforms, method by software or hardware, one group of hardware invented organize independently hardware more, for the software systems (normally operating system) of a plurality of independent operatings provide independently hardware running environment.Virtual machine technique needs one to be called virtual machine monitor (Virtual Machine Monitor hereinafter to be referred as software systems VMM), manages and dispatches the hardware resource of a plurality of operating systems.It can encapsulate, isolates, monitors and manage a plurality of virtual machine instance, makes on same the physical machine and can not move polytype operating system independently, mutually with conflicting.In addition, virtual machine technique provides new mode for the distribution of software with deployment.Software encapsulation in virtual machine image (disk file that has encapsulated the whole operation system is called virtual machine image), is utilized technology such as empty, as to intend machine deployment, migration, can under network environment, realize the distribution and the deployment of software neatly.
In enterprise-level server, the application program of deployment is mainly the final user based on network application service is provided, and this application has the resource requirement characteristic of dynamic change in time.In order to tackle the dynamic change of user's request, server is necessary for to use provides enough resources to ensure its service level.In the server field of having introduced virtual machine technique, how this problem then is converted into carries out resources allocation to a plurality of resource container one virtual machines on the single physical node and is deployed in single application in the virtual machine to the demand of resource with indirect guarantee.
Yet the static resource allocation mode that adopts can not satisfy application requirements at present.Because guarantee the service quality used, must distribute according to a maximum demand of using, a maximum demand of using is uncertain on the one hand, on the other hand, still will face the low excessively problem of resource utilization.
Summary of the invention
The purpose of this invention is to provide a kind of virtual machine cpu resource distribution method and device,, make a plurality of virtual machines on the physical node coordinate to share cpu resource to adopt dynamical fashion for each virtual machine distributes cpu resource.
For achieving the above object, the invention provides a kind of virtual machine cpu resource distribution method, comprising:
The ruuning situation of each virtual machine of monitoring current period obtains monitoring information, and monitoring information comprises at least: the handling capacity of using on the cpu resource utilization factor of each virtual machine of current period and each virtual machine of current period;
According to monitoring information, be aim parameter with the target throughput of using on the target cpu resource utilization factor of each virtual machine and each virtual machine, the cpu resource request amount of feedback adjusting each virtual machine of following one-period;
According to the cpu resource request amount of each virtual machine, in the make a strategic decision cpu resource sendout of each virtual machine of following one-period of Virtual Machine Manager key-course;
According to the cpu resource sendout of each virtual machine, for each virtual machine distributes cpu resource.
For achieving the above object, the invention provides a kind of virtual machine cpu resource distributor, comprising:
Monitoring modular, the ruuning situation that is used to monitor each virtual machine of current period obtains monitoring information, and monitoring information comprises at least: the handling capacity of using on the cpu resource utilization factor of each virtual machine of current period and each virtual machine of current period;
Feedback control module is used for according to monitoring information, is aim parameter with the target throughput of using on the target cpu resource utilization factor of each virtual machine and each virtual machine, the cpu resource request amount of feedback adjusting each virtual machine of following one-period;
Decision-making module is used for the cpu resource request amount according to each virtual machine, in the make a strategic decision cpu resource sendout of each virtual machine of following one-period of Virtual Machine Manager key-course;
Distribution module is used for the cpu resource sendout according to each virtual machine, for each virtual machine distributes cpu resource.
Virtual machine cpu resource distribution method of the present invention, device, after the handling capacity of using on the operating position of each virtual machine CPU of monitoring current period and each virtual machine, with the cpu resource utilization factor that monitors and the handling capacity of application is input quantity, with target cpu resource rate and target throughput is aim parameter, the cpu resource request amount of each virtual machine of feedback adjusting.With the CPU sendout of above-mentioned each cpu resource request amount as foundation dynamic decision each virtual machine of following one-period, thereby, can make the collaborative cpu resource of sharing of a plurality of virtual machines on the physical node, has stability and convergence preferably, and can distinguish the priority of different virtual machine, preferentially satisfy the resource request of high priority.
Description of drawings
Fig. 1 is the process flow diagram of deployed environment among the virtual machine cpu resource distribution method embodiment of the present invention;
Fig. 2 is the process flow diagram of virtual machine cpu resource distribution method embodiment of the present invention;
Fig. 3 is the process flow diagram of feedback adjusting among the virtual machine cpu resource distribution method embodiment of the present invention;
Fig. 4 is the structural representation of virtual machine cpu resource distributor embodiment of the present invention;
Fig. 5 is the structural representation of feedback control module among the virtual machine cpu resource distributor embodiment of the present invention;
Fig. 6 is the structural representation of decision-making module among the virtual machine cpu resource distributor embodiment of the present invention.
Embodiment
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
The present invention is an example with the dummy machine system that apache2 (a kind of web server software) is installed on each virtual machine, and the solution of virtual machine cpu resource distribution method, device is provided.
Fig. 1 is the process flow diagram of deployed environment among the virtual machine cpu resource distribution method embodiment of the present invention.Using before this sends out virtual machine cpu resource distribution method preceding, needing to create virtual machine, in preliminary works such as virtual machine deploy application, as shown in Figure 1, the process of deployed environment is as follows among the virtual machine cpu resource distribution method embodiment of the present invention:
Step 10: monitor of virtual machine is installed, is created a plurality of virtual machines;
Monitor of virtual machine is installed, and is utilized the command interface of monitor of virtual machine to create a plurality of VME operating system mirror image examples, set name (vmname), IP address, memory size, priority (priority) and the weight (weight) of virtual machine.
Step 11: in the Virtual Machine Manager key-course, dispose monitoring modular, feedback control module and decision-making module;
Monitoring modular is carried out initialization, target setting cpu busy percentage and target throughput.Monitoring modular is used to monitor the ruuning situation of each virtual machine.Feedback control module is used for the virtual machine operation information of monitoring module monitors is carried out FEEDBACK CONTROL; Decision-making module is according to the make a strategic decision CPU sendout of each virtual machine of the output of feedback control module.
Step 12: use apache2 in each virtual machine deploy;
Enter each virtual machine image, apache2 is installed, and start its status module and be used to monitor change in throughput.
Step 13: start each virtual machine.
Start each virtual machine, each virtual machine is added in the FEEDBACK CONTROL on the monitor of virtual machine automatically.After starting virtual machine, adopting virtual machine cpu resource distribution method of the present invention is each virtual machine distribution cpu resource in the operational process.
Fig. 2 is the process flow diagram of virtual machine cpu resource distribution method embodiment of the present invention, and as shown in Figure 2, this method comprises:
Step 20: the ruuning situation of each virtual machine of monitoring current period obtains monitoring information, and monitoring information comprises at least: the handling capacity of using on the cpu resource utilization factor of each virtual machine of current period and each virtual machine of current period;
The cpu resource utilization factor is and uses irrelevant common index that can not provide accurate performance guarantee for application, and handling capacity is application oriented performance index, therefore the handling capacity with cpu resource utilization factor and application combines as the performance index of virtual machine.
Step 21: according to monitoring information, be aim parameter with the target throughput of using on the target cpu resource utilization factor of each virtual machine and each virtual machine, the cpu resource request amount of feedback adjusting each virtual machine of following one-period;
With the target throughput used on the target cpu resource utilization factor of each virtual machine and each virtual machine is aim parameter, and monitoring information is carried out feedback adjusting, obtains the cpu resource request amount of each virtual machine of following one-period;
With the handling capacity used on the cpu resource utilization factor that monitors each virtual machine of current period and each virtual machine is the input quantity of FEEDBACK CONTROL, target cpu resource utilization factor and target throughput with prior setting are the aim parameter of FEEDBACK CONTROL, and feedback adjusting is exported the cpu resource request amount of each virtual machine of following one-period.Concrete feedback procedure can be as shown in Figure 3, and Fig. 3 is the process flow diagram of feedback adjusting among the virtual machine cpu resource distribution method embodiment of the present invention.
Step 22: according to the cpu resource request amount of each virtual machine, in the make a strategic decision cpu resource sendout of each virtual machine of following one-period of Virtual Machine Manager key-course;
When the defining virtual machine, the given priority and the weight of a virtual machine, when being used to resource contention occur, mechanism provides decision-making foundation for resource allocation decisions.When the cpu resource request amount summation of each virtual machine during, satisfy the cpu resource request of each virtual machine of following one-period less than actual cpu resource amount; When the cpu resource request amount summation of each virtual machine during more than or equal to actual cpu resource amount, under the situation of the minimum cpu resource request amount that satisfies each virtual machine, according to the cpu resource sendout of high priority principle of priority decision-making each virtual machine of following one-period, the virtual machine of same priority is according to the weight proportion Resources allocation.
Step 23: according to the cpu resource sendout of each virtual machine, for each virtual machine distributes cpu resource.
As shown in Figure 3, the feedback adjusting strategy is as follows among the virtual machine cpu resource distribution method embodiment of the present invention:
Wherein, u
kBe the cpu resource sendout of current period virtual machine, u
K+1Be the cpu resource request amount of virtual machine of following one-period, v
kBe the cpu resource use amount of current period virtual machine, t
RefBe the target throughput of using on the virtual machine, t
kBe the handling capacity of using on the current period virtual machine, r
RefBe the target throughput of using on the virtual machine, λ
2Be the variable between 0 to 2, along with t
kVariation λ
2Get different value, λ
1Be the variable between 0 to 2, along with v
k/ u
kVariation λ
1Get different value.
The cpu resource utilization factor of current period virtual machine is 1 o'clock, illustrates that virtual machine is in overload,, in such cases, further judge the handling capacity t that uses on the current period virtual machine
kWhether less than target throughput t
Ref, work as t
kLess than t
RefThe time, λ
1Get 0.5; Work as t
kGreater than t
RefThe time, λ
1Get 1.Then, according to formula
The cpu resource request amount of feedback adjusting described each virtual machine of following one-period.
The cpu resource utilization factor of current period virtual machine less than 1 and the current period virtual machine on the handling capacity used less than target throughput r
RefThe time, whether the cpu resource utilization factor of further judging the current period virtual machine is less than target cpu resource utilization factor, as (v
k/ u
k) less than r
RefThe time, virtual machine is in light condition, λ
2Get 0.5; As (v
k/ u
k) greater than r
RefThe time, virtual machine is in heavy condition, λ
2Get 0.8.Then, according to formula
The cpu resource request amount of feedback adjusting each virtual machine of following one-period.
The cpu resource utilization factor of current period virtual machine less than 1 and the current period virtual machine on the handling capacity used more than or equal to target throughput r
RefThe time, the cpu resource request amount of feedback adjusting virtual machine of following one-period is the CPU use amount of current period virtual machine.
Virtual machine cpu resource distribution method of the present invention, after the handling capacity of using on the operating position of each virtual machine CPU of client layer monitoring current period and each virtual machine, with the cpu resource utilization factor that monitors and the handling capacity of application is input quantity, with target cpu resource rate and target throughput is aim parameter, and feedback adjusting goes out the cpu resource request amount of each virtual machine.With the CPU sendout of above-mentioned each cpu resource request amount as foundation dynamic decision each virtual machine of following one-period, thereby, can make the collaborative cpu resource of sharing of a plurality of virtual machines on the physical node, has stability and convergence preferably, and can distinguish the priority of different virtual machine, preferentially satisfy the resource request of high priority.
Fig. 4 is the structural representation of virtual machine cpu resource distributor embodiment of the present invention, and as shown in Figure 4, this device comprises: monitoring modular 410, feedback control module 420, decision-making module 430 and distribution module 440.
The ruuning situation of monitoring modular 410 each virtual machine of monitoring current period obtains monitoring information, and monitoring information comprises at least: the handling capacity of using on the cpu resource utilization factor of each virtual machine of current period and each virtual machine of current period.The monitoring information that feedback control module 420 obtains according to monitoring modular is an aim parameter with the target throughput of using on the target cpu resource utilization factor of each virtual machine and each virtual machine, the cpu resource request amount of feedback adjusting each virtual machine of following one-period.Decision-making module 430 is according to the cpu resource request amount of each virtual machine of feedback control module output, and the priority of each virtual machine of setting, in the make a strategic decision cpu resource sendout of each virtual machine of following one-period of Virtual Machine Manager key-course.
Fig. 5 is the structural representation of feedback control module among the virtual machine cpu resource distributor embodiment of the present invention, and as shown in Figure 5, feedback control module 420 comprises: first feedback control module 421, second feedback control module 422 and the 3rd feedback control module 423.
After the cpu resource utilization factor that first feedback control module is judged the current period virtual machine is 1, illustrate that virtual machine is in overload, further judge the handling capacity t that uses on the current period virtual machine
kWhether less than target throughput t
Ref, work as t
kLess than t
RefThe time, set λ
1Be 0.5; Work as t
kGreater than t
RefThe time, set λ
1Be 1.Then, first feedback control module is according to formula
The cpu resource request amount of feedback adjusting described each virtual machine of following one-period.Wherein, u
kBe the cpu resource sendout of current period virtual machine, u
K+1Be the cpu resource request amount of virtual machine of following one-period, v
kBe the cpu resource use amount of current period virtual machine, t
RefBe the target throughput of using on the virtual machine, t
kBe the handling capacity of using on the current period virtual machine, λ
1Be the variable between 0 to 2, along with t
kVariation get different value.
The cpu busy percentage of judging the current period virtual machine in second feedback control module less than 1 and the current period virtual machine on the handling capacity used less than described target throughput after, further judge that whether the cpu resource utilization factor of current period virtual machine is less than target cpu resource utilization factor, as (v
k/ u
k) less than r
RefThe time, virtual machine is in light condition, λ
2Get 0.5; As (v
k/ u
k) greater than r
RefThe time, virtual machine is in heavy condition, λ
2Get 0.8.Then, second feedback control module is according to formula
The cpu resource request amount of feedback adjusting each virtual machine of following one-period.Wherein, u
kBe the cpu resource sendout of current period virtual machine, u
K+1Be the cpu resource request amount of virtual machine of following one-period, v
kBe the cpu resource use amount of current period virtual machine, r
RefBe the target throughput of using on the virtual machine, λ
2Be the variable between 0 to 2, along with v
k/ u
kVariation get different value;
The cpu busy percentage of current period virtual machine less than 1 and the current period virtual machine on the handling capacity used during more than or equal to described target throughput, the 3rd following one-period of control module feedback adjusting the cpu resource request amount of described virtual machine be the CPU use amount of the described virtual machine of current period.
The structural representation of decision-making module among Fig. 6 virtual machine cpu resource of the present invention distributor embodiment, as shown in Figure 6, decision-making module 430 comprises: first decision-making module 431 and second decision-making module 432.When the cpu resource request amount summation of each virtual machine during less than actual cpu resource amount, first decision-making module satisfies the cpu resource request of each virtual machine of following one-period.When the cpu resource request amount summation of described each virtual machine during more than or equal to actual cpu resource amount, under the situation of the minimum cpu resource request amount that satisfies described each virtual machine, second decision-making module is according to the cpu resource sendout of high priority principle of priority decision-making described each virtual machine of following one-period.
Virtual machine cpu resource distributor of the present invention, by monitoring modular after the handling capacity of using on the operating position of each virtual machine CPU of client layer monitoring current period and each virtual machine, with the cpu resource utilization factor that monitors and the handling capacity of application is the FEEDBACK CONTROL input quantity, with target cpu resource rate and target throughput is the FEEDBACK CONTROL aim parameter, and feedback adjusting goes out the cpu resource request amount of each virtual machine.With above-mentioned each cpu resource request amount as foundation, the CPU sendout of decision module dynamic decision each virtual machine of following one-period, thereby, can make the collaborative cpu resource of sharing of a plurality of virtual machines on the physical node, has stability and convergence preferably, and can distinguish the priority of different virtual machine, preferentially satisfy the resource request of high priority.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.
Claims (10)
1, a kind of virtual machine cpu resource distribution method is characterized in that, comprising:
The ruuning situation of each virtual machine of monitoring current period obtains monitoring information, and described monitoring information comprises at least: the handling capacity of using on the cpu resource utilization factor of each virtual machine of current period and each virtual machine of current period;
According to monitoring information, be aim parameter with the target throughput of using on the target cpu resource utilization factor of described each virtual machine and described each virtual machine, the cpu resource request amount of feedback adjusting described each virtual machine of following one-period;
According to the cpu resource request amount of described each virtual machine, in the make a strategic decision cpu resource sendout of described each virtual machine of following one-period of Virtual Machine Manager key-course;
According to the cpu resource sendout of described each virtual machine, for described each virtual machine distributes cpu resource.
2, virtual machine cpu resource distribution method according to claim 1, it is characterized in that, described according to described monitoring information, with the target throughput used on the target cpu resource utilization factor of described each virtual machine and each virtual machine is aim parameter, the cpu resource request amount of feedback adjusting described each virtual machine of following one-period comprises:
The cpu resource utilization factor of current period virtual machine is 1 o'clock, according to formula
The cpu resource request amount of feedback adjusting described each virtual machine of following one-period; Wherein, u
kBe the cpu resource sendout of current period virtual machine, u
K+1Be the cpu resource request amount of virtual machine of following one-period, v
kBe the cpu resource use amount of current period virtual machine, t
RefBe the target throughput of using on the current period virtual machine, t
kBe the handling capacity of using on the current period virtual machine, λ
1It is the variable between 0 to 2; Described cpu resource utilization factor is
The cpu resource utilization factor of current period virtual machine less than 1 and the current period virtual machine on the handling capacity used during less than described target throughput, according to formula
The cpu resource request amount of feedback adjusting described each virtual machine of following one-period; Wherein, u
kBe the cpu resource sendout of current period virtual machine, u
K+1Be the cpu resource request amount of virtual machine of following one-period, v
kBe the cpu resource use amount of current period virtual machine, r
RefBe the target throughput of using on the current period virtual machine, λ
2It is the variable between 0 to 2; Described cpu resource utilization factor is
The cpu resource utilization factor of current period virtual machine less than 1 and the current period virtual machine on the handling capacity used during more than or equal to described target throughput, the cpu resource request amount of feedback adjusting described virtual machine of following one-period is the CPU use amount of the described virtual machine of current period.
3, virtual machine cpu resource distribution method according to claim 2 is characterized in that the cpu busy percentage of described current period virtual machine is, according to formula at 1 o'clock
The cpu resource request amount of feedback adjusting described each virtual machine of following one-period comprises:
Judge that the handling capacity of using on the current period virtual machine whether less than described target throughput, sets described formula according to judged result
Middle λ
1Value.
4, virtual machine cpu resource distribution method according to claim 2 is characterized in that, the cpu resource utilization factor of described current period virtual machine less than 1 and the current period virtual machine on the handling capacity used during less than described target throughput, according to formula
The cpu resource request amount of feedback adjusting described each virtual machine of following one-period comprises:
Whether the cpu resource utilization factor of judging the current period virtual machine according to judged result sets described formula less than described target cpu resource utilization factor
Middle λ
2Value.
5, virtual machine cpu resource distribution method according to claim 2 is characterized in that, described cpu resource request amount according to described each virtual machine in the make a strategic decision cpu resource sendout of described each virtual machine of following one-period of Virtual Machine Manager key-course, comprising:
When the cpu resource request amount summation of described each virtual machine during, satisfy the cpu resource request amount of described each virtual machine of following one-period less than actual cpu resource amount;
When the cpu resource request amount summation of described each virtual machine during more than or equal to described actual cpu resource amount, under the situation of the minimum cpu resource request amount that satisfies described each virtual machine, according to the make a strategic decision cpu resource sendout of described each virtual machine of following one-period of high priority virtual machine priority principle.
6, according to the described virtual machine cpu resource of claim 1 distribution method, it is characterized in that, before the ruuning situation of described each virtual machine of monitoring current period obtains monitoring information, also comprise:
Monitor of virtual machine is installed, is created a plurality of virtual machines;
In the Virtual Machine Manager key-course, dispose monitoring modular, feedback control module and decision-making module;
Use in each virtual machine deploy;
Start each virtual machine.
7, a kind of virtual machine cpu resource distributor is characterized in that, comprising:
Monitoring modular, the ruuning situation that is used to monitor each virtual machine of current period obtains monitoring information, and described monitoring information comprises at least: the handling capacity of using on the cpu resource utilization factor of each virtual machine of current period and each virtual machine of current period;
Feedback control module is used for according to monitoring information, is aim parameter with the target throughput of using on the target cpu resource utilization factor of described each virtual machine and described each virtual machine, the cpu resource request amount of feedback adjusting described each virtual machine of following one-period;
Decision-making module is used for the cpu resource request amount according to described each virtual machine, in the make a strategic decision cpu resource sendout of described each virtual machine of following one-period of Virtual Machine Manager key-course;
Distribution module is used for the cpu resource sendout according to described each virtual machine, for described each virtual machine distributes cpu resource.
8, according to the described virtual machine cpu resource of claim 7 distributor, it is characterized in that described feedback control module comprises:
First feedback control module, the cpu resource utilization factor that is used at the current period virtual machine is 1 o'clock, according to formula
The cpu resource request amount of feedback adjusting described each virtual machine of following one-period; Wherein, u
kBe the cpu resource sendout of current period virtual machine, u
K+1Be the cpu resource request amount of virtual machine of following one-period, v
kBe the cpu resource use amount of current period virtual machine, t
RefBe the target throughput of using on the current period virtual machine, t
kBe the handling capacity of using on the current period virtual machine, λ
1It is the variable between 0 to 2; Described cpu resource utilization factor is
Second feedback control module, be used for the cpu resource utilization factor of current period virtual machine less than 1 and the current period virtual machine on the handling capacity used during less than described target throughput, according to formula
The cpu resource request amount of feedback adjusting described each virtual machine of following one-period;
Wherein, u
kBe the cpu resource sendout of current period virtual machine, u
K+1Be the cpu resource request amount of virtual machine of following one-period, v
kBe the cpu resource use amount of current period virtual machine, r
RefBe the target throughput of using on the current period virtual machine, λ
2It is the variable between 0 to 2; Described cpu resource utilization factor is
The 3rd feedback control module, be used for the cpu resource utilization factor of current period virtual machine less than 1 and the current period virtual machine on the handling capacity used during more than or equal to described target throughput, the cpu resource request amount of feedback adjusting described virtual machine of following one-period is the CPU use amount of the described virtual machine of current period.
9, described according to Claim 8 virtual machine cpu resource distributor, it is characterized in that, described first feedback control module also is used for: the cpu resource utilization factor of current period virtual machine is 1 o'clock, judge that the handling capacity of using on the current period virtual machine whether less than described target throughput, sets described formula according to judged result
Middle λ
1Value;
Described second feedback control module also is used for: the cpu busy percentage of current period virtual machine less than 1 and the current period virtual machine on the handling capacity used during less than described target throughput, whether the cpu busy percentage of judging the current period virtual machine according to judged result sets described formula less than described target cpu resource utilization factor
Middle λ
2Value.
10, described according to Claim 8 virtual machine cpu resource distributor is characterized in that described decision-making module comprises:
First decision-making module is used for satisfying the cpu resource request of described each virtual machine of following one-period when the cpu resource request amount summation of described each virtual machine during less than actual cpu resource amount;
Second decision-making module, be used for when the cpu resource request amount summation of described each virtual machine during more than or equal to actual cpu resource amount, under the situation of the minimum cpu resource request amount that satisfies described each virtual machine, according to the cpu resource sendout of high priority principle of priority decision-making described each virtual machine of following one-period.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100880212A CN101593134B (en) | 2009-06-29 | 2009-06-29 | Method and device for allocating CPU resources of virtual machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100880212A CN101593134B (en) | 2009-06-29 | 2009-06-29 | Method and device for allocating CPU resources of virtual machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101593134A true CN101593134A (en) | 2009-12-02 |
CN101593134B CN101593134B (en) | 2012-05-30 |
Family
ID=41407803
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100880212A Expired - Fee Related CN101593134B (en) | 2009-06-29 | 2009-06-29 | Method and device for allocating CPU resources of virtual machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101593134B (en) |
Cited By (29)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101986284A (en) * | 2010-11-04 | 2011-03-16 | 华中科技大学 | Dynamic recovery system for waste space of virtual machine image file |
CN102141930A (en) * | 2010-12-20 | 2011-08-03 | 华为技术有限公司 | Method and device for distributing resources to virtual machines |
CN102521052A (en) * | 2011-12-06 | 2012-06-27 | 北京航空航天大学 | Resource allocation method of virtualized data center and virtual machine monitor |
WO2012103728A1 (en) * | 2011-06-30 | 2012-08-09 | 华为技术有限公司 | Method for dispatching central processing unit of hotspot domain virtual machine and virtual machine system |
CN102654841A (en) * | 2011-03-02 | 2012-09-05 | 中国电信股份有限公司 | Method and device for allocating computing resource of virtual machine based on fine granularity |
CN102681899A (en) * | 2011-03-14 | 2012-09-19 | 金剑 | Virtual computing resource dynamic management system of cloud computing service platform |
GB2493812A (en) * | 2011-08-16 | 2013-02-20 | Esds Software Solution Pvt Ltd | Scaling resources for virtual machines, using comparison with established threshold values |
CN103186450A (en) * | 2011-12-28 | 2013-07-03 | 英业达集团(天津)电子技术有限公司 | Method and system for monitoring virtual resource consumption |
CN103235735A (en) * | 2012-11-16 | 2013-08-07 | 佳都新太科技股份有限公司 | Resource control model based on utilization rate in XEN virtual machine system architecture |
CN103246570A (en) * | 2013-05-20 | 2013-08-14 | 百度在线网络技术(北京)有限公司 | Hadoop scheduling method and system and management node |
CN103336722A (en) * | 2013-07-16 | 2013-10-02 | 上海大学 | Virtual machine CPU source monitoring and dynamic distributing method |
CN103502939A (en) * | 2013-02-07 | 2014-01-08 | 华为技术有限公司 | Method and system managing virtual machine |
CN103530185A (en) * | 2012-07-02 | 2014-01-22 | 中兴通讯股份有限公司 | Resource optimization method and device |
CN103678151A (en) * | 2013-12-20 | 2014-03-26 | 汉柏科技有限公司 | Configuration method and configuration device of block storage device of virtual machine |
CN103885812A (en) * | 2012-12-21 | 2014-06-25 | 华为技术有限公司 | Virtual machine specification adjustment method and virtual machine specification adjustment device |
CN104102531A (en) * | 2014-08-06 | 2014-10-15 | 汉柏科技有限公司 | Multi-network fusion system and multi-network fusion method based on virtual machine |
CN104281496A (en) * | 2014-10-27 | 2015-01-14 | 深圳中兴网信科技有限公司 | Virtual resource distribution method and virtual resource distribution device |
CN104331328A (en) * | 2013-07-22 | 2015-02-04 | 中国电信股份有限公司 | Virtual resource scheduling method and virtual resource scheduling device |
CN104518897A (en) * | 2013-09-30 | 2015-04-15 | 中国电信股份有限公司 | Resource management optimization processing method and resource management optimization processing device for virtual firewalls |
CN104702680A (en) * | 2015-02-13 | 2015-06-10 | 安科智慧城市技术(中国)有限公司 | Resource monitoring method and system |
CN105320559A (en) * | 2014-07-30 | 2016-02-10 | 中国移动通信集团广东有限公司 | Scheduling method and device of cloud computing system |
CN106201655A (en) * | 2016-06-30 | 2016-12-07 | 中国联合网络通信集团有限公司 | Virtual machine distribution method and virtual machine distribution system |
CN109918198A (en) * | 2019-02-18 | 2019-06-21 | 中国空间技术研究院 | A kind of emulation cloud platform load dispatch system and method based on user characteristics prediction |
CN110505195A (en) * | 2019-06-26 | 2019-11-26 | 中电万维信息技术有限责任公司 | The dispositions method and system of fictitious host computer |
CN111078363A (en) * | 2019-12-18 | 2020-04-28 | 深信服科技股份有限公司 | NUMA node scheduling method, device, equipment and medium for virtual machine |
CN111506419A (en) * | 2020-03-11 | 2020-08-07 | 北京联创信安科技股份有限公司 | GPU resource sharing method and device |
WO2021042919A1 (en) * | 2019-09-06 | 2021-03-11 | 深圳壹账通智能科技有限公司 | Data allocation test method and device under high concurrency, terminal, and storage medium |
CN113709241A (en) * | 2021-08-26 | 2021-11-26 | 上海德拓信息技术股份有限公司 | Scheduling distribution combination method and system of physical resources in cloud scene |
CN114625544A (en) * | 2022-05-17 | 2022-06-14 | 银河麒麟软件(长沙)有限公司 | Memory balloon management method and device based on dynamic allocation of virtual machine service load |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105843678B (en) * | 2016-03-17 | 2018-02-06 | 国网山东省电力公司信息通信公司 | The scheduling of resource moving method and system of a kind of virtual machine based on Optimum Theory |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100573456C (en) * | 2007-12-10 | 2009-12-23 | 华中科技大学 | A kind of paralleling multi-processor virtual machine system |
CN101403983B (en) * | 2008-11-25 | 2010-10-13 | 北京航空航天大学 | Resource monitoring method and system for multi-core processor based on virtual machine |
-
2009
- 2009-06-29 CN CN2009100880212A patent/CN101593134B/en not_active Expired - Fee Related
Cited By (46)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101986284B (en) * | 2010-11-04 | 2012-05-23 | 华中科技大学 | Dynamic recovery system for waste space of virtual machine image file |
CN101986284A (en) * | 2010-11-04 | 2011-03-16 | 华中科技大学 | Dynamic recovery system for waste space of virtual machine image file |
CN102141930A (en) * | 2010-12-20 | 2011-08-03 | 华为技术有限公司 | Method and device for distributing resources to virtual machines |
CN102654841A (en) * | 2011-03-02 | 2012-09-05 | 中国电信股份有限公司 | Method and device for allocating computing resource of virtual machine based on fine granularity |
CN102681899A (en) * | 2011-03-14 | 2012-09-19 | 金剑 | Virtual computing resource dynamic management system of cloud computing service platform |
CN102681899B (en) * | 2011-03-14 | 2015-06-10 | 金剑 | Virtual computing resource dynamic management system of cloud computing service platform |
WO2012103728A1 (en) * | 2011-06-30 | 2012-08-09 | 华为技术有限公司 | Method for dispatching central processing unit of hotspot domain virtual machine and virtual machine system |
US9519499B2 (en) | 2011-06-30 | 2016-12-13 | Huawei Technologies Co., Ltd. | Method for dispatching central processing unit of hotspot domain virtual machine and virtual machine system |
GB2493812B (en) * | 2011-08-16 | 2017-05-10 | Esds Software Solution Pvt Ltd | Method and system for real time detection of resource requirement and automatic adjustments |
GB2493812A (en) * | 2011-08-16 | 2013-02-20 | Esds Software Solution Pvt Ltd | Scaling resources for virtual machines, using comparison with established threshold values |
CN102521052A (en) * | 2011-12-06 | 2012-06-27 | 北京航空航天大学 | Resource allocation method of virtualized data center and virtual machine monitor |
CN102521052B (en) * | 2011-12-06 | 2013-12-25 | 北京航空航天大学 | Resource allocation method of virtualized data center and virtual machine monitor |
CN103186450A (en) * | 2011-12-28 | 2013-07-03 | 英业达集团(天津)电子技术有限公司 | Method and system for monitoring virtual resource consumption |
CN103530185A (en) * | 2012-07-02 | 2014-01-22 | 中兴通讯股份有限公司 | Resource optimization method and device |
CN103235735A (en) * | 2012-11-16 | 2013-08-07 | 佳都新太科技股份有限公司 | Resource control model based on utilization rate in XEN virtual machine system architecture |
CN103885812A (en) * | 2012-12-21 | 2014-06-25 | 华为技术有限公司 | Virtual machine specification adjustment method and virtual machine specification adjustment device |
US9471364B2 (en) | 2012-12-21 | 2016-10-18 | Huawei Technologies Co., Ltd. | Virtual machine specification adjustment method and apparatus |
CN103885812B (en) * | 2012-12-21 | 2018-03-27 | 华为技术有限公司 | Virtual machine specification method of adjustment and device |
WO2014121485A1 (en) * | 2013-02-07 | 2014-08-14 | 华为技术有限公司 | Method and system for managing virtual machines |
CN103502939B (en) * | 2013-02-07 | 2016-11-02 | 华为技术有限公司 | The method and system that virtual machine is managed |
CN103502939A (en) * | 2013-02-07 | 2014-01-08 | 华为技术有限公司 | Method and system managing virtual machine |
CN103246570A (en) * | 2013-05-20 | 2013-08-14 | 百度在线网络技术(北京)有限公司 | Hadoop scheduling method and system and management node |
CN103336722B (en) * | 2013-07-16 | 2017-09-26 | 上海大学 | A kind of CPU resources of virtual machine monitoring and dynamic allocation method |
CN103336722A (en) * | 2013-07-16 | 2013-10-02 | 上海大学 | Virtual machine CPU source monitoring and dynamic distributing method |
CN104331328A (en) * | 2013-07-22 | 2015-02-04 | 中国电信股份有限公司 | Virtual resource scheduling method and virtual resource scheduling device |
CN104518897A (en) * | 2013-09-30 | 2015-04-15 | 中国电信股份有限公司 | Resource management optimization processing method and resource management optimization processing device for virtual firewalls |
CN103678151A (en) * | 2013-12-20 | 2014-03-26 | 汉柏科技有限公司 | Configuration method and configuration device of block storage device of virtual machine |
CN105320559A (en) * | 2014-07-30 | 2016-02-10 | 中国移动通信集团广东有限公司 | Scheduling method and device of cloud computing system |
CN105320559B (en) * | 2014-07-30 | 2019-02-19 | 中国移动通信集团广东有限公司 | A kind of dispatching method and device of cloud computing system |
CN104102531A (en) * | 2014-08-06 | 2014-10-15 | 汉柏科技有限公司 | Multi-network fusion system and multi-network fusion method based on virtual machine |
CN104281496A (en) * | 2014-10-27 | 2015-01-14 | 深圳中兴网信科技有限公司 | Virtual resource distribution method and virtual resource distribution device |
CN104281496B (en) * | 2014-10-27 | 2018-02-02 | 深圳中兴网信科技有限公司 | The distribution method and distributor of virtual resource |
CN104702680A (en) * | 2015-02-13 | 2015-06-10 | 安科智慧城市技术(中国)有限公司 | Resource monitoring method and system |
CN104702680B (en) * | 2015-02-13 | 2019-01-04 | 深圳易科声光科技股份有限公司 | A kind of monitoring resource method and system |
CN106201655A (en) * | 2016-06-30 | 2016-12-07 | 中国联合网络通信集团有限公司 | Virtual machine distribution method and virtual machine distribution system |
CN106201655B (en) * | 2016-06-30 | 2019-07-02 | 中国联合网络通信集团有限公司 | Virtual machine distribution method and virtual machine distribution system |
CN109918198A (en) * | 2019-02-18 | 2019-06-21 | 中国空间技术研究院 | A kind of emulation cloud platform load dispatch system and method based on user characteristics prediction |
CN110505195A (en) * | 2019-06-26 | 2019-11-26 | 中电万维信息技术有限责任公司 | The dispositions method and system of fictitious host computer |
WO2021042919A1 (en) * | 2019-09-06 | 2021-03-11 | 深圳壹账通智能科技有限公司 | Data allocation test method and device under high concurrency, terminal, and storage medium |
WO2021121115A1 (en) * | 2019-12-18 | 2021-06-24 | 深信服科技股份有限公司 | Virtual machine numa node scheduling method and apparatus, and device and medium |
CN111078363A (en) * | 2019-12-18 | 2020-04-28 | 深信服科技股份有限公司 | NUMA node scheduling method, device, equipment and medium for virtual machine |
CN111506419A (en) * | 2020-03-11 | 2020-08-07 | 北京联创信安科技股份有限公司 | GPU resource sharing method and device |
CN111506419B (en) * | 2020-03-11 | 2024-07-02 | 北京联创信安科技股份有限公司 | GPU resource sharing method and device |
CN113709241A (en) * | 2021-08-26 | 2021-11-26 | 上海德拓信息技术股份有限公司 | Scheduling distribution combination method and system of physical resources in cloud scene |
CN113709241B (en) * | 2021-08-26 | 2024-01-23 | 上海德拓信息技术股份有限公司 | Scheduling and distributing combination method and system for physical resources in cloud scene |
CN114625544A (en) * | 2022-05-17 | 2022-06-14 | 银河麒麟软件(长沙)有限公司 | Memory balloon management method and device based on dynamic allocation of virtual machine service load |
Also Published As
Publication number | Publication date |
---|---|
CN101593134B (en) | 2012-05-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101593134B (en) | Method and device for allocating CPU resources of virtual machine | |
CN103559072B (en) | Virtual machine two-way automatic telescopic service implementing method and system thereof | |
EP2652594B1 (en) | Multi-tenant, high-density container service for hosting stateful and stateless middleware components | |
CN102567072B (en) | Resource allocation method, resource allocation device and resource allocation system | |
US9705970B2 (en) | System of geographic migration of workloads between private and public clouds | |
CN104010028B (en) | A kind of dynamic management strategy method of virtual resource that performance is weighted under cloud platform | |
US7644161B1 (en) | Topology for a hierarchy of control plug-ins used in a control system | |
CN112241822B (en) | Method and system for distributing micro-service-oriented power resources of data center | |
CN112214307A (en) | Execution of containerization procedures within the constraints of available host nodes | |
CN112583861A (en) | Service deployment method, resource configuration method, system, device and server | |
CN108632365A (en) | Service Source method of adjustment, relevant apparatus and equipment | |
CN104679594B (en) | A kind of middleware distributed computing method | |
CN104639594A (en) | System and method for allocating physical resources and virtual resources | |
CN112099917B (en) | Regulation and control system containerized application operation management method, system, equipment and medium | |
CN102469023A (en) | Dispatching method, unit and system based on cloud computing | |
CN110086726A (en) | A method of automatically switching Kubernetes host node | |
CN109639498B (en) | Service quality oriented resource flexible configuration method based on SDN and NFV | |
US11797167B2 (en) | User interface for management of a dynamic video signal processing platform | |
CN103503404A (en) | Resource scheduling method, device and system | |
Li et al. | A wholistic optimization of containerized workflow scheduling and deployment in the cloud–edge environment | |
Thirumalaiselvan et al. | A strategic performance of virtual task scheduling in multi cloud environment | |
Gupta et al. | Cost-efficient live VM migration based on varying electricity cost in optical cloud networks | |
CN104283910A (en) | Resource management system in cloud computation environment | |
EP3319298B1 (en) | Method and apparatus for sharing license resource between multiple virtual network functions | |
CN105141589B (en) | A kind of token of more examples shares the method and system with safeguarding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120530 Termination date: 20170629 |
|
CF01 | Termination of patent right due to non-payment of annual fee |