CN105978719B - A kind of control method and device of cloud host services quality - Google Patents
A kind of control method and device of cloud host services quality Download PDFInfo
- Publication number
- CN105978719B CN105978719B CN201610307686.8A CN201610307686A CN105978719B CN 105978719 B CN105978719 B CN 105978719B CN 201610307686 A CN201610307686 A CN 201610307686A CN 105978719 B CN105978719 B CN 105978719B
- Authority
- CN
- China
- Prior art keywords
- cpu
- cloud host
- physical
- host
- quality
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5003—Managing SLA; Interaction between SLA and QoS
- H04L41/5019—Ensuring fulfilment of SLA
- H04L41/5022—Ensuring fulfilment of SLA by giving priorities, e.g. assigning classes of service
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of control method and device of cloud host services quality, wherein, this method comprises: obtaining the service quality resource reservation allocation list of cloud host and the information of the physical cpu in physical equipment, and CPU number list is formed according to the physical cpu information;It wherein, include levels of quality of service and resource reservation ratio corresponding with the levels of quality of service in the service quality resource reservation allocation list;According to the service quality resource reservation allocation list of acquisition, the CPU number list and default rule, the cloud host that the physical cpu in the physical equipment is carried with the physical equipment is bound.The present invention can make cloud host rationally utilize the resource of physical equipment according to the demand of user, guarantee the service quality of cloud host system.
Description
Technical field
The present invention relates to virtual technology field more particularly to a kind of control method and device of cloud host services quality.
Background technique
Existing cloud host system includes management server and multiple physical equipments, can carry one on each physical equipment
A cloud host, or multiple cloud hosts can also be carried.Wherein, cloud host refers to the virtual machine of carrying on the physical devices, object
Reason equipment can be physical server, terminal etc..When cloud host is run on the physical devices, each cloud host is balanced
Using physical equipment resource carry out operation.
But the task significance level completed according to the demand of user by cloud host is different, if each cloud master
The resource using physical equipment of machine equilibrium need to complete resource of the cloud host of vital task because cannot get more physical equipment
It will appear the situations such as overlong time, the collapse of execution, and the not more meeting of physical resource of the cloud host assignment of vital task
It results in waste of resources, therefore, the resource reasonable utilization that cannot be used according to the demand of user cloud host in the prior art makes
Service quality (Quality of Service) cannot be guaranteed cloud host system at work.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of control method and device of cloud host services quality, it being capable of basis
The demand of user utilizes cloud host rationally to the resource of physical equipment, guarantees the service quality of cloud host system.
In a first aspect, the embodiment of the invention provides a kind of control methods of cloud host services quality, comprising:
Obtain the service quality resource reservation allocation list of cloud host and the information of the physical cpu in physical equipment, and root
CPU number list is formed according to the physical cpu information;It wherein, include Service Quality in the service quality resource reservation allocation list
Magnitude is not and corresponding with levels of quality of service resource reservation ratio;
It, will according to the service quality resource reservation allocation list of acquisition, the CPU number list and default rule
The cloud host that physical cpu in the physical equipment is carried with the physical equipment is bound.
Further, it is described according to the service quality resource reservation allocation list of acquisition, the CPU number list and
Default rule binds the cloud host that the physical cpu in the physical equipment is carried with the physical equipment, comprising:
The process list of the currently running cloud host on physical equipment is obtained, and is worked as by described in the process list
The cloud host of preceding operation is arranged from high to low according to levels of quality of service;It wherein, include current fortune in the process list
Capable cloud host information and progress information corresponding with the cloud host;
According to putting in order for the currently running cloud host in the process list, the clothes of target cloud host are successively obtained
The quantity of quality scale of being engaged in and the virtual cpu of configuration;
It is inquired according to the service quality resource allocation list corresponding with the levels of quality of service of the target cloud host
Resource reservation ratio;And it is chosen in CPU number list according to resource reservation ratio virtual with target cloud host configuration
The corresponding physical cpu of CPU quantity binds the physical cpu of the virtual cpu of the target cloud host and selection;
The physical cpu bound is deleted in the CPU number list;
If the quantity of remaining physical cpu is less than or equal to the first critical value in CPU number list, unbound is worked as
The cloud host of preceding operation is bound at random with remaining physical cpu.
Further, it is described according to the service quality resource reservation allocation list of acquisition, the CPU number list and
The cloud host that physical cpu in the physical equipment is carried with the physical equipment is bound, is also wrapped by default rule
It includes:
If in CPU number list the quantity of remaining physical cpu no less than or be equal to the first critical value, return obtain object
The process list of the currently running cloud host in equipment is managed, and by the currently running cloud host in the process list
The operation arranged from high to low according to levels of quality of service.
Further, it is described according to the service quality resource reservation allocation list of acquisition, the CPU number list and
Default rule binds the cloud host that the physical cpu in the physical equipment is carried with the physical equipment, comprising:
Receive the operation request of the host to be shipped that racks;
If in the CPU number list quantity of physical cpu no less than or be equal to the second critical value, run it is described to be shipped
Rack host, and obtain the levels of quality of service of the host to be shipped that racks, configuration virtual cpu quantity and virtual CPU number
Code;
It is inquired according to the service quality resource allocation list of formation opposite with the levels of quality of service of the host to be shipped that racks
The resource reservation ratio answered, and chosen in CPU number list and the host configuration to be shipped of racking according to resource reservation ratio
The corresponding physical cpu of virtual cpu quantity;
According to the number of the virtual cpu of the host to be shipped that racks of acquisition, by the virtual cpu of the host to be shipped that racks and institute
It states physical cpu and is bound, delete the physical cpu bound in the CPU number list;
Return to the operation for receiving the operation request of the host to be shipped that racks.
Further, it is described according to the service quality resource reservation allocation list of acquisition, the CPU number list and
The cloud host that physical cpu in the physical equipment is carried with the physical equipment is bound, is also wrapped by default rule
It includes: if the quantity of physical cpu is less than or equal to the second critical value in the CPU number list, refusing the master to be shipped of racking
The operation of machine is requested, and forbids running the host to be shipped that racks.
Second aspect, the embodiment of the invention also provides a kind of control devices of cloud host services quality, comprising:
Data obtaining module, the object in service quality resource reservation allocation list and physical equipment for obtaining cloud host
The information of CPU is managed, and CPU number list is formed according to the physical cpu information;Wherein, the service quality resource reservation is matched
Set includes levels of quality of service and resource reservation ratio corresponding with the levels of quality of service in table;
Binding module, for according to the service quality resource reservation allocation list of acquisition, the CPU number list and
Default rule binds the cloud host that the physical cpu in the physical equipment is carried with the physical equipment.
Further, binding module is specifically used for:
The process list of the currently running cloud host on physical equipment is obtained, and is worked as by described in the process list
The cloud host of preceding operation is arranged from high to low according to levels of quality of service;It wherein, include current fortune in the process list
Capable cloud host information and progress information corresponding with the cloud host;
According to putting in order for the currently running cloud host in the process list, the clothes of target cloud host are successively obtained
The quantity of quality scale of being engaged in and the virtual cpu of configuration;
It is inquired according to the service quality resource allocation list corresponding with the levels of quality of service of the target cloud host
Resource reservation ratio;And it is chosen in CPU number list according to resource reservation ratio virtual with target cloud host configuration
The corresponding physical cpu of CPU quantity binds the physical cpu of the virtual cpu of the target cloud host and selection;
The physical cpu bound is deleted in the CPU number list;
If the quantity of remaining physical cpu is less than or equal to the first critical value in CPU number list, unbound is worked as
The cloud host of preceding operation is bound at random with remaining physical cpu.
Further, binding module is specifically used for:
If in CPU number list the quantity of remaining physical cpu no less than or be equal to the first critical value, return obtain object
The process list of the currently running cloud host in equipment is managed, and by the currently running cloud host in the process list
The operation arranged from high to low according to levels of quality of service.
Further, binding module is specifically used for:
Receive the operation request of the host to be shipped that racks;
If in the CPU number list quantity of physical cpu no less than or be equal to the second critical value, run it is described to be shipped
Rack host, and obtain the levels of quality of service of the host to be shipped that racks, configuration virtual cpu quantity and virtual CPU number
Code;
It is inquired according to the service quality resource allocation list of formation opposite with the levels of quality of service of the host to be shipped that racks
The resource reservation ratio answered, and chosen in CPU number list and the host configuration to be shipped of racking according to resource reservation ratio
The corresponding physical cpu of virtual cpu quantity;
According to the number of the virtual cpu of the host to be shipped that racks of acquisition, by the virtual cpu of the host to be shipped that racks and institute
It states physical cpu and is bound, delete the physical cpu bound in the CPU number list;
Return to the operation for receiving the operation request of the host to be shipped that racks.
Further, binding module is specifically used for: if the quantity of physical cpu is less than or waits in the CPU number list
In the second critical value, refuses the operation request of the host to be shipped that racks, forbid running the host to be shipped that racks.
The control method and device of a kind of cloud host services quality provided in an embodiment of the present invention, by obtaining service quality
Resource reservation allocation list, make physical equipment according in service quality resource reservation allocation list levels of quality of service and with service
The corresponding resource reservation ratio of quality scale binds internal physical cpu with cloud host, can be according to the demand of user
It utilizes cloud host rationally to the physical resource of physical equipment, guarantees the service quality of cloud host system.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of control method flow chart for cloud host services quality that the embodiment of the present invention one provides;
Fig. 2 is a kind of control method flow chart of cloud host services quality provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of control method flow chart for cloud host services quality that the embodiment of the present invention three provides;
Fig. 4 is a kind of structure chart of the control device for cloud host services quality that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
In description, only some but not all contents related to the present invention are shown in the drawings.
Embodiment one
Fig. 1 is a kind of control method for cloud host services quality that the embodiment of the present invention one provides, and this method is by cloud host
The control device of service quality executes, which can be executed by hardware and/or software, the device, which is generally disposed at, to be held
On the physical equipment for carrying cloud host, or configuration, in the management server in cloud host system, the present embodiment is to configure in object
It is illustrated in reason equipment.As shown in Figure 1, the method for the present embodiment specifically includes:
S110: obtaining the service quality resource reservation allocation list of cloud host and the information of the physical cpu in physical equipment,
And CPU number list is formed according to the physical cpu information, wherein include Service Quality in service quality resource reservation allocation list
Magnitude is not and corresponding with levels of quality of service resource reservation ratio.
In the present embodiment, cloud host refers to that the virtual machine of carrying on the physical devices, physical equipment can be physics clothes
Business device, terminal etc..Wherein, service quality resource reservation allocation list can store on the physical devices, can also be with source
In network.User can according to their own needs set the corresponding resource reservation ratio of the rank of service quality, be formed
Service quality resource reservation allocation list;And user can the levels of quality of service according to their own needs to cloud host set
Fixed, i.e., user sets cloud host services quality scale according to the significance level for completing task in cloud host.If cloud master
Machine completes task, and significance level is higher for users, then the levels of quality of service of the cloud host is higher, and corresponding resource is pre-
Stay ratio also higher.Wherein, resource reservation ratio refers in the resource and physical equipment reserved in physical equipment for cloud host
Whole resources ratio.Resource reservation ratio can also be illustrated with the reusability of resource, for example, the reusability of resource is
0%, then the cloud host of 1 virtual cpu, reserves 1 physical cpu, and resource reservation ratio is 1/1;If the reusability of resource is
100%, then the cloud host of 1 virtual cpu, reserves 0.5 physical cpu, resource reservation ratio is 1/2, if the physics of 12 cores
The cloud host of 12 double-cores is carried in equipment, then 1 virtual cpu reserves 0.5 physical cpu in each cloud host.Resource is pre-
Staying the relationship of the reusability of ratio and resource can arbitrarily set.
S120: according to the service quality resource reservation allocation list of acquisition, the CPU number list and preset rule
Then, the cloud host that the physical cpu in the physical equipment is carried with the physical equipment is bound.
In the present embodiment, the operation quantity or situation of the cloud host carried on physical equipment are different, and default rule is
Different, i.e., the cloud host operation binding situation that the physical cpu of physical equipment is carried with physical equipment is also different.
When the cloud host carried on physical equipment is run, i.e. physical equipment full load, physical equipment is according to Service Quality
The cloud host that amount resource reservation allocation list preferentially makes internal physical cpu high with levels of quality of service is bound, when physics is set
When standby interior CPU quantity is less than or equal to the first critical value, unbound cloud host is shared to use remaining physical cpu.Pass through
This method can preferentially guarantee the service quality of the high cloud host of levels of quality of service, so that the cloud host that levels of quality of service is high
Complete more important task.
When the cloud host carried on physical equipment quantity from 0 gradually change during, if physical equipment receive to
The operation of the cloud host of operation is requested, and judges the size relation of internal remaining physical cpu quantity and the second critical value, according to
The remaining physical cpu of judgement and the relationship of the second critical value, judge whether according to service quality resource reservation allocation list, CPU
Numbered list and default rule bind physical cpu and the host to be shipped that racks.Wherein, the first critical value and
Two critical values can be equal, or can also be unequal, is set according to the needs of users.It can be guaranteed by this method
The service quality of the cloud host of operation on the physical devices.
The control method for present embodiments providing a kind of cloud host services quality is matched by obtaining service quality resource reservation
Set table, make physical equipment according in service quality resource reservation allocation list levels of quality of service and with levels of quality of service pair
The resource reservation ratio answered binds internal physical cpu with cloud host, can make cloud host pair according to the demand of user
The resource of physical equipment is rationally utilized, and guarantees the service quality of cloud host system.
Embodiment two
Fig. 2 is a kind of control method flow chart of cloud host services quality provided by Embodiment 2 of the present invention, in above-mentioned reality
It is described according to the service quality resource reservation allocation list of acquisition, the CPU number list and default on the basis of applying example
Rule, by the cloud host that the physical cpu in the physical equipment is carried with the physical equipment carry out binding preferably include:
The process list of the currently running cloud host on physical equipment is obtained, and is worked as by described in the process list
The cloud host of preceding operation is arranged from high to low according to levels of quality of service;It wherein, include current fortune in the process list
Capable cloud host information and progress information corresponding with the cloud host;
According to putting in order for the currently running cloud host in the process list, the clothes of target cloud host are successively obtained
The quantity of quality scale of being engaged in and the virtual cpu of configuration;
It is inquired according to the service quality resource allocation list corresponding with the levels of quality of service of the target cloud host
Resource reservation ratio, and chosen in CPU number list according to resource reservation ratio virtual with target cloud host configuration
The corresponding physical cpu of CPU quantity binds the physical cpu of the virtual cpu of the target cloud host and selection,
The physical cpu bound is deleted in the CPU number list;
If the quantity of remaining physical cpu is less than or equal to the first critical value in CPU number list, unbound is worked as
The cloud host of preceding operation is bound at random with remaining physical cpu.
As a result, by the height according to plan medium cloud host services quality by the physical cpu of cloud host and physical equipment
It is bound, can guarantee the service quality of the high cloud host of levels of quality of service, so that the cloud host that levels of quality of service is high
It is efficiently completed the more important task of user's creation.
Based on above-mentioned optimization, as shown in Fig. 2, technical solution provided in this embodiment is specific as follows:
S210: obtaining the service quality resource reservation allocation list of cloud host and the information of the physical cpu in physical equipment,
And CPU number list is formed according to the physical cpu information.
S220: obtaining the process list of the currently running cloud host on physical equipment, and will in the process list
The currently running cloud host is arranged from high to low according to levels of quality of service.
In the present embodiment, in the process list include currently running cloud host information and with the cloud host pair
The progress information answered, currently running cloud host information include the identification information of currently running cloud host, wherein current operation
The identification information of cloud host can be the title of currently running cloud host, or the word to distinguish each different cloud hosts
Female and/number combinatorics on words.Progress information includes the information of the virtual cpu of currently running cloud host, can be virtual cpu into
Cheng Hao.
S230: according to putting in order for the currently running cloud host in the process list, target cloud master is successively obtained
The quantity of the virtual cpu of the levels of quality of service and configuration of machine.
In the present embodiment, if the quantity of currently running cloud host is 4, the corresponding virtual cpu number of cloud host 1 is
001,002,003 and 004;The corresponding virtual cpu number of cloud host 2 is 005,006,007 and 008;Cloud host 3 is corresponding virtual
No. CPU is 009,010,011 and 012;The corresponding virtual cpu number of cloud host 4 is 013,014,015 and 016.Table 1 is currently to transport
Capable cloud host arranged after plan, the levels of quality of service of each cloud host is successively obtained according to the sequence in table 1
And configuration virtual cpu quantity, cloud host 1,4 virtual cpu of cloud host 2, cloud host 3 and cloud host quantity be 4.
Cloud host 1, cloud host 2, cloud host 3 and cloud host 4 levels of quality of service be respectively high, high and low, low.
Table 1
S240: it is inquired according to the service quality resource allocation list opposite with the levels of quality of service of the target cloud host
The resource reservation ratio answered, and chosen in CPU number list and target cloud host configuration according to resource reservation ratio
The corresponding physical cpu of virtual cpu quantity ties up the physical cpu of the virtual cpu of the target cloud host and selection
It is fixed, the physical cpu bound is deleted in the CPU number list.
In the present embodiment, table 2 is the service quality resource allocation list of part, from the available levels of quality of service of table 2
Respectively high and low corresponding resource reservation ratio is respectively 1/1 and 1/2, so, cloud host 1 and the corresponding resource of cloud host 2
Reserved ratio is 1:1.If there are 12 physical cpus in physical equipment, the physics of 12 numbers is shared in CPU number list
CPU.4 physical cpus are chosen in CPU number list, the void for being 001,002,003 and 004 by the virtual cpu number of cloud host 1
Quasi- CPU is bound with 4 physical cpus chosen, and the physical cpu bound is deleted in CPU number list.
Table 2
Levels of quality of service | Resource reservation ratio |
It is high | 1/1 |
It is low | 1/2 |
S250: judge whether the quantity of remaining physical cpu in CPU number list is less than or equal to the first critical value.
If so, executing S260, S220 is returned if not, executing.
S260: unbound currently running cloud host is bound at random with remaining physical cpu.
In the present embodiment, the first critical value is set according to their own needs by user.For example, the first critical value is set
When being set to 4, after the CPU of cloud host 1 and physical equipment binding, the quantity of residue CPU is 8 in CPU number list, is returned
S210, similarly, cloud host 2 and the physical cpu of the physical equipment method bound are identical as cloud host 1.When cloud host 2 is set with physics
After standby physical cpu binding, the quantity of residue CPU is 4 in CPU number list, is equal to the first critical value, will be currently running
Unbound cloud host 3 and cloud host 4 is bound at random with remaining 4 physical cpus, specifically, by it is currently running not
The virtual cpu (virtual cpu number is 009,010,011 and 012) and the virtual cpu of cloud host 4 of the cloud host 3 of binding are (virtual
No. CPU is 013,014,015 and 016) remaining 4 physical cpus of mean allocation;That is 1 physical cpu is tied up with 2 virtual cpus
It is fixed.
The control method of a kind of cloud host services quality provided in this embodiment, by according to plan medium cloud host services
The height of quality binds the physical cpu of cloud host and physical equipment, can guarantee the high cloud host of levels of quality of service
Service quality reach root so that the high cloud host of levels of quality of service is efficiently completed the more important task of user's creation
The purpose for needing to utilize cloud host rationally the resource of physical equipment according to user.
Embodiment three
Fig. 3 is a kind of control method flow chart for cloud host services quality that the embodiment of the present invention three provides, in above-mentioned reality
It is described according to the service quality resource reservation allocation list of acquisition, the CPU number list and default on the basis of applying example
Rule, by the cloud host that the physical cpu in the physical equipment is carried with the physical equipment carry out binding preferably include:
Receive the operation request of the host to be shipped that racks;
If in the CPU number list quantity of physical cpu no less than or be equal to the second critical value, run it is described to be shipped
Rack host, and obtain the levels of quality of service of the host to be shipped that racks, configuration virtual cpu quantity and virtual CPU number
Code;
It is inquired according to the service quality resource allocation list of formation opposite with the levels of quality of service of the host to be shipped that racks
The resource reservation ratio answered, and chosen in CPU number list and the host configuration to be shipped of racking according to resource reservation ratio
The corresponding physical cpu of virtual cpu quantity;
According to the number of the virtual cpu of the host to be shipped that racks of acquisition, by the virtual cpu of the host to be shipped that racks and institute
It states physical cpu and is bound, delete the physical cpu bound in the CPU number list;
Return to the operation for receiving the operation request of the host to be shipped that racks.
Root is judged whether according to the size relation of internal residue CPU quantity and the second critical value by physical equipment as a result,
Run the host to be shipped that racks according to the request of received cloud host to be run, and by this it is to be shipped rack host and physical cpu into
Row binding, can guarantee the service quality of currently running cloud host on the physical devices, can make cloud according to the demand of user
Host rationally utilizes the resource of physical equipment.
Based on above-mentioned optimization, as shown in figure 3, technical solution provided in this embodiment is specific as follows:
S310: obtaining the service quality resource reservation allocation list of cloud host and the information of the physical cpu in physical equipment,
And CPU number list is formed according to the physical cpu information.
S320: the operation request of the host to be shipped that racks is received.
To the present embodiment for example, there are 12 physical cpus, if currently running in physical equipment in physical equipment
There are 2, respectively cloud host 1 and cloud host 2, the configuration of medium cloud host 1 and cloud host 2 is identical with embodiment two, i.e.,
By 4 virtual cpus, levels of quality of service is height, and resource reservation ratio is 1/1.Cloud host to be run is cloud host 3,
Physical equipment receives the operation request of cloud host 3.
S330: judge whether the quantity of physical cpu in the CPU number list is less than or equal to the second critical value.
In the present embodiment, the second critical value can be configured according to the demand of user, for example, can be set as 4,2,
Or 1 etc., it is also possible to other values.On the physical devices due to currently having been running for cloud host 1 and cloud host 2, therefore cloud host 1
It has been bound with the physical cpu of physical equipment with the virtual cpu of cloud host 2, therefore, physical cpu in CPU number list
Quantity be remaining physical cpu quantity, as 4.
If not, S340 is executed, if so, executing S370.
S340: the operation host to be shipped that racks, and obtain the levels of quality of service of the host to be shipped that racks, configuration it is virtual
The quantity of CPU and virtual CPU number.
S350: according to the levels of quality of service of the service quality resource allocation list of formation inquiry and the host to be shipped that racks
Corresponding resource reservation ratio, and chosen in CPU number list and the host to be shipped that racks according to resource reservation ratio
The corresponding physical cpu of virtual cpu quantity of configuration;
S360: according to the number of the virtual cpu of the host to be shipped that racks of acquisition, by the virtual of the host to be shipped that racks
CPU and the physical cpu with bound, the physical cpu bound is deleted in the CPU number list, returns to S320.
S370: the operation request of the refusal host to be shipped that racks is forbidden running the host to be shipped that racks.
In the present embodiment, if the second critical value is set as 4, the quantity of physical cpu is equal to the in CPU number list
Two critical values then refuse the operation request of cloud host 3.If the second critical value is set as 2, physical cpu in CPU number list
Quantity no less than or be equal to the second critical value, run cloud host 3, and obtain cloud host 3 levels of quality of service be it is low, configuration
The quantity of virtual cpu is 4, and virtual CPU number is 009,010,011 and 012.
Inquiring resource reservation ratio corresponding with 3 levels of quality of service of cloud host according to service quality resource allocation list is 1/
2, and 2 physical cpus are chosen in CPU number list, it is 009,010,011 and 012 by CPU number virtual in cloud host 3
Virtual cpu and 2 physical cpus choosing bound, and delete the physical cpu bound in CPU number list, return
Return S320.
The explanation of value, for the convenience of statement, the present embodiment illustratively uses part cloud host and sets in physics
The situation of standby middle operation states the control method of cloud host services quality, but the present embodiment is a kind of example,
Quantity suitable for the cloud host on physical equipment is from 0 to the situation gradually increased.
The control method for present embodiments providing a kind of cloud host services quality, by physical equipment according to internal remaining
The size relation of CPU quantity and the second critical value judges whether that the request operation of cloud host to be run based on the received should be to
Cloud host is run, and the host to be shipped that racks is bound with physical cpu, currently running cloud host can be guaranteed in physics
Service quality in equipment can make cloud host rationally utilize the resource of physical equipment according to the demand of user.
Example IV
Fig. 4 is a kind of control device structural block diagram for cloud host services quality that the embodiment of the present invention four provides;Such as Fig. 4 institute
Show, the device includes: data obtaining module 410 and binding module 420.
Wherein, data obtaining module 410, service quality resource reservation allocation list and physics for obtaining cloud host are set
The information of standby interior physical cpu, and CPU number list is formed according to the physical cpu information;Wherein, the service quality money
It include levels of quality of service and resource reservation ratio corresponding with the levels of quality of service in the configuration of reservations table of source;
Binding module 420, for the service quality resource reservation allocation list according to acquisition, the CPU number list
And default rule, the cloud host that the physical cpu in the physical equipment is carried with the physical equipment is bound.
Further, binding module 420 are specifically used for:
The process list of the currently running cloud host on physical equipment is obtained, and is worked as by described in the process list
The cloud host of preceding operation is arranged from high to low according to levels of quality of service;It wherein, include current fortune in the process list
Capable cloud host information and progress information corresponding with the cloud host;
According to putting in order for the currently running cloud host in the process list, the clothes of target cloud host are successively obtained
The quantity of quality scale of being engaged in and the virtual cpu of configuration;
It is inquired according to the service quality resource allocation list corresponding with the levels of quality of service of the target cloud host
Resource reservation ratio;And it is chosen in CPU number list according to resource reservation ratio virtual with target cloud host configuration
The corresponding physical cpu of CPU quantity binds the physical cpu of the virtual cpu of the target cloud host and selection;
The physical cpu bound is deleted in the CPU number list;
If the quantity of remaining physical cpu is less than or equal to the first critical value in CPU number list, unbound is worked as
The cloud host of preceding operation is bound at random with remaining physical cpu.
Further, binding module 420 is specifically used for:
If in CPU number list the quantity of remaining physical cpu no less than or be equal to the first critical value, return obtain object
The process list of the currently running cloud host in equipment is managed, and by the currently running cloud host in the process list
The operation arranged from high to low according to levels of quality of service.
Further, binding module 420 is specifically used for:
Receive the operation request of the host to be shipped that racks;
If in the CPU number list quantity of physical cpu no less than or be equal to the second critical value, run it is described to be shipped
Rack host, and obtain the levels of quality of service of the host to be shipped that racks, configuration virtual cpu quantity and virtual CPU number
Code;
It is inquired according to the service quality resource allocation list of formation opposite with the levels of quality of service of the host to be shipped that racks
The resource reservation ratio answered, and chosen in CPU number list and the host configuration to be shipped of racking according to resource reservation ratio
The corresponding physical cpu of virtual cpu quantity;
According to the number of the virtual cpu of the host to be shipped that racks of acquisition, by the virtual cpu of the host to be shipped that racks and institute
It states physical cpu and is bound, delete the physical cpu bound in the CPU number list;
Return to the operation for receiving the operation request of the host to be shipped that racks.
Further, binding module 420 are specifically used for: if the quantity of physical cpu is less than in the CPU number list
Or it is equal to the second critical value, refuse the operation request of the host to be shipped that racks, forbids running the host to be shipped that racks.
A kind of control device of cloud host services quality provided in an embodiment of the present invention, it is pre- by obtaining service quality resource
Allocation list is stayed, makes physical equipment according to the levels of quality of service and and quality of service level in service quality resource reservation allocation list
Not corresponding resource reservation ratio binds internal physical cpu with cloud host, can make cloud master according to the demand of user
Machine rationally utilizes the physical resource of physical equipment, guarantees the service quality of cloud host system.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (6)
1. a kind of control method of cloud host services quality characterized by comprising
The service quality resource reservation allocation list of cloud host and the information of the physical cpu in physical equipment are obtained, and according to institute
It states physical cpu information and forms CPU number list;It wherein, include quality of service level in the service quality resource reservation allocation list
Resource reservation ratio other and corresponding with the levels of quality of service;
It, will be described according to the service quality resource reservation allocation list of acquisition, the CPU number list and default rule
The cloud host that physical cpu in physical equipment is carried with the physical equipment is bound;
Wherein;It is described according to the service quality resource reservation allocation list of acquisition, the CPU number list and preset rule
Then, the cloud host that the physical cpu in the physical equipment is carried with the physical equipment is bound, comprising:
The process list of the currently running cloud host on the physical equipment is obtained, and is worked as by described in the process list
The cloud host of preceding operation is arranged from high to low according to levels of quality of service;It wherein, include current fortune in the process list
Capable cloud host information and progress information corresponding with the cloud host;
According to putting in order for the currently running cloud host in the process list, the Service Quality of target cloud host is successively obtained
Magnitude not and configuration virtual cpu quantity;
Resource corresponding with the levels of quality of service of the target cloud host is inquired according to the service quality resource allocation list
Reserved ratio, and the virtual cpu number configured with the target cloud host is chosen in CPU number list according to resource reservation ratio
Corresponding physical cpu is measured, the physical cpu of the virtual cpu of the target cloud host and selection is bound, described
The physical cpu bound is deleted in CPU number list;
If the quantity of remaining physical cpu is less than or equal to the first critical value in CPU number list, by unbound current fortune
Capable cloud host is bound at random with remaining physical cpu;
Or;
It is described according to the service quality resource reservation allocation list of acquisition, the CPU number list and default rule, will
The cloud host that physical cpu in the physical equipment is carried with the physical equipment is bound, comprising:
Receive the operation request of the host to be shipped that racks;
If in the CPU number list quantity of physical cpu no less than or be equal to the second critical value, run described to be shipped rack
Host, and obtain the levels of quality of service of the host to be shipped that racks, configuration virtual cpu quantity and virtual CPU number;
It is inquired according to the service quality resource allocation list of formation corresponding with the levels of quality of service of the host to be shipped that racks
Resource reservation ratio, and the void configured with the host to be shipped that racks is chosen in CPU number list according to resource reservation ratio
The quasi- corresponding physical cpu of CPU quantity;
According to the number of the virtual cpu of the host to be shipped that racks of acquisition, by the virtual cpu of the host to be shipped that racks and the object
It manages CPU and is bound, delete the physical cpu bound in the CPU number list;
Return to the operation for receiving the operation request of the host to be shipped that racks.
2. the method according to claim 1, wherein described match according to the service quality resource reservation of acquisition
Table, the CPU number list and default rule are set, the physical cpu in the physical equipment is held with the physical equipment
The cloud host of load is bound, further includes:
If in CPU number list the quantity of remaining physical cpu no less than or be equal to the first critical value, return obtain physics set
The process list of standby upper currently running cloud host, and in the process list by the currently running cloud host according to
The operation that levels of quality of service is arranged from high to low.
3. the method according to claim 1, wherein described match according to the service quality resource reservation of acquisition
Table, the CPU number list and default rule are set, the physical cpu in the physical equipment is held with the physical equipment
The cloud host of load is bound, further includes: if the quantity of physical cpu is faced less than or equal to second in the CPU number list
Dividing value refuses the operation request of the host to be shipped that racks, forbids running the host to be shipped that racks.
4. a kind of control device of cloud host services quality characterized by comprising
Data obtaining module, the physics in service quality resource reservation allocation list and physical equipment for obtaining cloud host
The information of CPU, and CPU number list is formed according to the physical cpu information;Wherein, the service quality resource reservation configuration
It include levels of quality of service and resource reservation ratio corresponding with the levels of quality of service in table;
Binding module, for according to the service quality resource reservation allocation list of acquisition, the CPU number list and default
Rule, the cloud host that the physical cpu in the physical equipment is carried with the physical equipment is bound;
Wherein, binding module is specifically used for: obtaining the process list of the currently running cloud host on physical equipment, and described
The currently running cloud host is arranged from high to low according to levels of quality of service in process list;Wherein, it is described into
It include currently running cloud host information and progress information corresponding with the cloud host in Cheng Liebiao;
According to putting in order for the currently running cloud host in the process list, the Service Quality of target cloud host is successively obtained
Magnitude not and configuration virtual cpu quantity;
Resource corresponding with the levels of quality of service of the target cloud host is inquired according to the service quality resource allocation list
Reserved ratio;And the virtual cpu number configured with the target cloud host is chosen in CPU number list according to resource reservation ratio
Corresponding physical cpu is measured, the physical cpu of the virtual cpu of the target cloud host and selection is bound;Described
The physical cpu bound is deleted in CPU number list;
If the quantity of remaining physical cpu is less than or equal to the first critical value in CPU number list, by unbound current fortune
Capable cloud host is bound at random with remaining physical cpu;
Or;
Binding module is specifically used for:
Receive the operation request of the host to be shipped that racks;
If in the CPU number list quantity of physical cpu no less than or be equal to the second critical value, run described to be shipped rack
Host, and obtain the levels of quality of service of the host to be shipped that racks, configuration virtual cpu quantity and virtual CPU number;
It is inquired according to the service quality resource allocation list of formation corresponding with the levels of quality of service of the host to be shipped that racks
Resource reservation ratio, and the void configured with the host to be shipped that racks is chosen in CPU number list according to resource reservation ratio
The quasi- corresponding physical cpu of CPU quantity;
According to the number of the virtual cpu of the host to be shipped that racks of acquisition, by the virtual cpu of the host to be shipped that racks and the object
It manages CPU and is bound, delete the physical cpu bound in the CPU number list;
Return to the operation for receiving the operation request of the host to be shipped that racks.
5. device according to claim 4, which is characterized in that binding module is specifically used for:
If in CPU number list the quantity of remaining physical cpu no less than or be equal to the first critical value, return obtain physics set
The process list of standby upper currently running cloud host, and in the process list by the currently running cloud host according to
The operation that levels of quality of service is arranged from high to low.
6. device according to claim 4, which is characterized in that binding module is specifically used for: if the CPU number list
The quantity of middle physical cpu is less than or equal to the second critical value, refuses the operation request of the host to be shipped that racks, forbids running institute
State the host to be shipped that racks.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610307686.8A CN105978719B (en) | 2016-05-10 | 2016-05-10 | A kind of control method and device of cloud host services quality |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610307686.8A CN105978719B (en) | 2016-05-10 | 2016-05-10 | A kind of control method and device of cloud host services quality |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105978719A CN105978719A (en) | 2016-09-28 |
CN105978719B true CN105978719B (en) | 2019-07-16 |
Family
ID=56992161
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610307686.8A Active CN105978719B (en) | 2016-05-10 | 2016-05-10 | A kind of control method and device of cloud host services quality |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105978719B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1906900A (en) * | 2003-11-26 | 2007-01-31 | 高通股份有限公司 | Quality of service scheduler for a wireless network |
CN102929687A (en) * | 2012-10-12 | 2013-02-13 | 山东省计算中心 | Energy-saving virtual machine placement method for cloud computing data center |
CN103902384A (en) * | 2014-03-28 | 2014-07-02 | 华为技术有限公司 | Method and device for allocating physical machines for virtual machines |
CN104050045A (en) * | 2014-06-27 | 2014-09-17 | 华为技术有限公司 | Method and device for distributing virtual resources based on disk IO |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8854958B2 (en) * | 2011-12-22 | 2014-10-07 | Cygnus Broadband, Inc. | Congestion induced video scaling |
-
2016
- 2016-05-10 CN CN201610307686.8A patent/CN105978719B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1906900A (en) * | 2003-11-26 | 2007-01-31 | 高通股份有限公司 | Quality of service scheduler for a wireless network |
CN102929687A (en) * | 2012-10-12 | 2013-02-13 | 山东省计算中心 | Energy-saving virtual machine placement method for cloud computing data center |
CN103902384A (en) * | 2014-03-28 | 2014-07-02 | 华为技术有限公司 | Method and device for allocating physical machines for virtual machines |
CN104050045A (en) * | 2014-06-27 | 2014-09-17 | 华为技术有限公司 | Method and device for distributing virtual resources based on disk IO |
Also Published As
Publication number | Publication date |
---|---|
CN105978719A (en) | 2016-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106325998B (en) | Application deployment method and device based on cloud computing | |
CN106055381B (en) | A kind of method and apparatus creating virtual machine | |
CN104461744B (en) | A kind of resource allocation methods and device | |
CN102932415B (en) | Method and device for storing mirror image document | |
CN109379448B (en) | File distributed deployment method and device, electronic equipment and storage medium | |
CN109491784A (en) | Reduce method, apparatus, the electronic equipment, readable storage medium storing program for executing of EMS memory occupation amount | |
US11983564B2 (en) | Scheduling of a plurality of graphic processing units | |
CN108616553B (en) | Method and device for resource scheduling of cloud computing resource pool | |
CN106980571A (en) | The construction method and equipment of a kind of test use cases | |
CN108805397A (en) | Electronic device, the method and storage medium for distributing task | |
CN106339802A (en) | Task allocation method, task allocation device and electronic equipment | |
CN109726008A (en) | Resource allocation methods and equipment | |
CN108829510A (en) | Thread binds treating method and apparatus | |
CN110543279A (en) | Data storage and processing method, device and system | |
CN105978719B (en) | A kind of control method and device of cloud host services quality | |
CN112003931B (en) | Method and system for deploying scheduling controller and related components | |
CN111143063B (en) | Task resource reservation method and device | |
CN106056329A (en) | Verification method and system of merchandise inventory | |
CN108965578A (en) | Information-pushing method and device | |
CN105827539A (en) | Resource distribution method and apparatus | |
CN114237902A (en) | Service deployment method and device, electronic equipment and computer readable medium | |
CN110780992B (en) | Cloud computing platform optimized deployment method, system, terminal and storage medium | |
CN110033145B (en) | Financial sharing job order separating method and device, equipment and storage medium | |
CN110489246B (en) | Data transmission and memory management method, device and related product | |
CN111240830A (en) | Public link contract resource allocation method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |