CN104301944B - Resource capability distribution method and equipment - Google Patents
Resource capability distribution method and equipment Download PDFInfo
- Publication number
- CN104301944B CN104301944B CN201410476151.4A CN201410476151A CN104301944B CN 104301944 B CN104301944 B CN 104301944B CN 201410476151 A CN201410476151 A CN 201410476151A CN 104301944 B CN104301944 B CN 104301944B
- Authority
- CN
- China
- Prior art keywords
- user
- resource
- weight
- scheduler object
- lowest threshold
- 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
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/78—Architectures of resource allocation
Abstract
The invention discloses a kind of resource capability distribution method and equipment, belong to field of storage.Methods described includes:The resource request that user equipment is sent is received, the resource request identifies including user;By the corresponding relation for inquiring about user and resource capability weight, the resource capability weight that the user identifies the user of instruction is obtained, the resource capability weight of each user of the user with being recorded in the corresponding relation of resource capability weight is set according to the lowest threshold of the performance parameter of the user;It is the ser resource allocation ability that the user identifies instruction according to the resource capability weight of the user.The problem of can solve the problem that the minimum performance requirement that can not ensure user, the effect for ensureing the minimum performance requirement of user can be realized.
Description
Technical field
The present invention relates to field of storage, more particularly to a kind of resource capability distribution method and equipment.
Background technology
With the rapid development of Internet technology, the object such as user equipment, data flow, file and catalogue is to resource capability
Demand is increasing, and when the object of request resource capability is very more, resource capability competition will be carried out between each object, this
When just need scheduler to carry out the scheduling of resource capability, realize the reasonable distribution of resource capability, wherein, resource capability includes resource
Capacity and resource performance.
In the prior art, it is necessary to which the object that resource capability distribution is carried out by scheduler can be described as user, scheduler is generally pressed
Resource capability distribution, the resource energy that the high user of resource capability weight obtains are carried out according to the user resources ability weight pre-set
Power is more, and the resource capability that the low user of resource capability weight obtains is few.Assuming that two users in resource capability distribution system be present
Resource capability is at war with, the resource capability weight of the first user is 2, and the resource capability weight of second user is 1, then the
When one user and second user carry out resource capability competition, scheduler can be the resource capability of the first user distribution 2/3, for the
The resource capability of two users distribution 1/3.
When multiple users access same resource, the resource performance between each user requires may be different, such as
The minimum flow requirement of a certain user is handling capacity (English:Input/Output Per Second;Referred to as:IOPS) it is not less than
1000 bps of (English:bits per second;Referred to as:Bps), if provided according to existing resource capability distribution method
Source is dispatched, then can only be ser resource allocation ability according to the resource capability weight pre-set, possibly can not ensure user's
Minimum resources performance requirement.
The content of the invention
In order to solve the problems, such as that the minimum performance requirement of user can not be ensured, the invention provides a kind of distribution of resource capability
Method and apparatus.The technical scheme is as follows:
First aspect, there is provided a kind of resource capability distribution method, the resource capability distribution method include:
The resource request that user equipment is sent is received, the resource request identifies including user;
By inquiring about the corresponding relation of user and resource capability weight, the resource that the user identifies the user of instruction is obtained
Ability weight, the resource capability weight of each user of the user with being recorded in the corresponding relation of resource capability weight is basis
What the lowest threshold of the performance parameter of the user was set;
It is the ser resource allocation ability that the user identifies instruction according to the resource capability weight of the user.
With reference in a first aspect, in the first can realize mode,
The user and the corresponding relation of resource capability weight include:User and the corresponding relation of scheduler object, scheduling pair
As the corresponding relation with resource capability weight,
Before the resource request that the reception user equipment is sent, methods described also includes:
Scheduler object request to create is obtained, the scheduler object request to create identifies including user;
Judge that the user identifies the lowest threshold whether user indicated sets performance parameter;
When the lowest threshold of user's setting performance parameter of user mark instruction, set for the user newly-built
Scheduler object;
The resource capability weight of the newly-built scheduler object is determined according to the lowest threshold of the performance parameter;
The corresponding relation of user and scheduler object is established according to user mark and the newly-built scheduler object;
According to the resource capability weight of the newly-built scheduler object and the newly-built scheduler object, the scheduler object is established
With the corresponding relation of resource capability weight.
Mode can be realized with reference to the first, in second can be achieved mode, the performance parameter includes handling capacity and band
Width,
It is described to judge that the user identifies the lowest threshold whether user indicated sets performance parameter, including:
Judge that the user identifies the lowest threshold whether user indicated sets the handling capacity;
Judge that the user identifies the lowest threshold whether user indicated sets the bandwidth;
When the user be provided with the handling capacity lowest threshold and the bandwidth lowest threshold in it is at least one,
Judge that the user identifies lowest threshold of the user there is provided the performance parameter of instruction;
The lowest threshold of the handling capacity and the lowest threshold of the bandwidth are not provided with as the user, judges the user
The user of mark instruction is not provided with the lowest threshold of the performance parameter.
Mode can be achieved with reference to second, it is described according to the minimum of the performance parameter in the third can realize mode
Threshold value determines the resource capability weight of the newly-built scheduler object, including:
In the user there is provided when the lowest threshold of the handling capacity and the lowest threshold of the bandwidth, gulped down according to described
The lowest threshold for the amount of telling obtains first resource ability weight;
Secondary resource ability weight is obtained according to the lowest threshold of the bandwidth;
The maximum in the first resource ability weight and the Secondary resource ability weight is obtained as described newly-built
The resource capability weight of scheduler object.
Mode can be achieved with reference to second, it is described according to the minimum of the performance parameter in the 4th kind of achievable mode
Threshold value determines the resource capability weight of the newly-built scheduler object, including:
When the user is only provided with the lowest threshold of the handling capacity, obtained according to the lowest threshold of the handling capacity
First resource ability weight;
Resource capability weight using the first resource ability weight as the newly-built scheduler object;
When the user is only provided with the lowest threshold of the bandwidth, second is obtained according to the lowest threshold of the bandwidth
Resource capability weight;
Resource capability weight using the Secondary resource ability weight as the newly-built scheduler object.
With reference to the 3rd or the 4th kind of achievable mode, in the 5th kind of achievable mode,
It is described that first resource ability weight is obtained according to the lowest threshold of the handling capacity, including:
Using the lowest threshold of the handling capacity as the first resource ability weight;
It is described that Secondary resource ability weight is obtained according to the lowest threshold of the bandwidth, including:
The Secondary resource ability weight X, the Secondary resource ability power are obtained according to Secondary resource ability weight equation
Formula is again:
X=M/N;
Wherein, the M is the lowest threshold of the bandwidth, and the N is that the resource request of previous measurement period is averagely big
Small, N=W/Z, the W are the number of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
According to the summation of amount, the Z is the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Total number.
With reference to the 3rd or the 4th kind of achievable mode, in the 6th kind of achievable mode,
It is described that first resource ability weight is obtained according to the lowest threshold of the handling capacity, including:
The first resource ability weight Y, the first resource ability power are obtained according to first resource ability weight formula
Formula is again:
Y=H × N;
Wherein, the H is the lowest threshold of the handling capacity, and the N is that the resource request of previous measurement period is averaged
Size, N=W/Z, the W are the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
The summation of data volume, the Z are the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Total number;
It is described that Secondary resource ability weight is obtained according to the lowest threshold of the bandwidth, including:
Using the lowest threshold of the bandwidth as the Secondary resource ability weight.
Mode can be realized with reference to the first, in the 7th kind of achievable mode, judges that the user identifies instruction described
User whether the lowest threshold of performance parameter is set after, methods described also includes:
When the user of user mark instruction is not provided with the lowest threshold of the performance parameter, acquisition current statistic cycle
The user of all lowest thresholds for being not provided with performance parameter scheduler object by default;
The corresponding relation of user and scheduler object is established according to user mark and the acquiescence scheduler object.
With reference to the 7th kind of achievable mode, in the 8th kind of achievable mode, described according to user mark and institute
State acquiescence scheduler object to establish after the corresponding relation of user and scheduler object, methods described also includes:
The resource capability weight Q of the acquiescence scheduler object, the acquiescence are determined according to default resource ability weight equation
Resource capability weight equation includes:
Q=P × D/ (1-D), P > 0;
Q=S, P=0;
Wherein, the P is the every other scheduling pair in addition to the acquiescence scheduler object in the current statistic cycle
The resource capability weight sum of elephant, the D allow the percentage given tacit consent to scheduler object and occupy resource capability, S to be default
To preset resource capability weighted value;
According to the resource capability weight of the acquiescence scheduler object and the acquiescence scheduler object, the scheduler object is established
With the corresponding relation of resource capability weight.
It is described to pass through inquiry in the 9th kind of achievable mode with reference to the first to the 8th kind of any achievable mode
User and the corresponding relation of resource capability weight, the resource capability weight that the user identifies the user of instruction is obtained, including:
Identified according to the user, inquire about the corresponding relation of the user and scheduler object, obtain user's mark pair
The scheduler object answered is as the first scheduler object;
According to first scheduler object, the corresponding relation of the scheduler object and resource capability weight is inquired about, obtains institute
State the resource capability weight that resource capability weight corresponding to the first scheduler object identifies the user of instruction as the user.
Mode can be realized with reference to the first, in the tenth kind of achievable mode, the acquisition scheduler object request to create, bag
Include:
When receiving user's request to create comprising user mark, scheduler object request to create is obtained;
Or when receiving the performance parameter renewal request comprising user mark, acquisition scheduler object creates please
Ask;
Or the resource request mean size change of the first two measurement period of the user of instruction is identified in the user
When, obtain scheduler object request to create.
Second aspect, there is provided a kind of resource capability distributing equipment, the resource capability distributing equipment include:
Receiving unit, for receiving the resource request of user equipment transmission, the resource request identifies including user;
First acquisition unit, for the corresponding relation by inquiring about user and resource capability weight, obtain user's mark
The each user's recorded in the corresponding relation of the resource capability weight of the user of knowledge instruction, the user and resource capability weight
Resource capability weight is set according to the lowest threshold of the performance parameter of the user;
Allocation unit, for being that the user identifies the user indicated distribution money according to the resource capability weight of the user
Source capability.
With reference to second aspect, in the first can realize mode,
The user and the corresponding relation of resource capability weight include:User and the corresponding relation of scheduler object, scheduling pair
As the corresponding relation with resource capability weight,
The resource capability distributing equipment also includes:
Second acquisition unit, for obtaining scheduler object request to create, the scheduler object request to create is marked including user
Know;
Judging unit, for judging that the user identifies the lowest threshold whether user indicated sets performance parameter;
First setting unit, the user for identifying instruction in the user set the lowest threshold of the performance parameter
When, for the user, newly-built scheduler object is set;
Second setting unit, for determining the resource of the newly-built scheduler object according to the lowest threshold of the performance parameter
Ability weight;
First establishes unit, for establishing user and scheduler object according to user mark and the newly-built scheduler object
Corresponding relation;
Second establishes unit, is weighed for the resource capability according to the newly-built scheduler object and the newly-built scheduler object
Weight, establish the corresponding relation of the scheduler object and resource capability weight.
Mode can be realized with reference to the first, in second can be achieved mode, the performance parameter includes handling capacity and band
Width,
The judging unit, including:
First judge module, for judging that the user identifies the minimum the threshold whether user indicated sets the handling capacity
Value;
Second judge module, for judging that the user identifies the minimum the threshold whether user indicated sets the bandwidth
Value;
3rd judge module, for the user be provided with the handling capacity lowest threshold and the bandwidth it is minimum
During at least one in threshold value, judge that the user identifies the user of instruction and is provided with the lowest threshold of the performance parameter;
4th judge module, for be not provided with the user handling capacity lowest threshold and the bandwidth it is minimum
During threshold value, judge that the user identifies the lowest threshold that the user indicated is not provided with the performance parameter.
Mode can be achieved with reference to second, in the third can realize mode, second setting unit, including:
First acquisition module, for the user be provided with the handling capacity lowest threshold and the bandwidth it is minimum
During threshold value, first resource ability weight is obtained according to the lowest threshold of the handling capacity;
Second acquisition module, for obtaining Secondary resource ability weight according to the lowest threshold of the bandwidth;
3rd acquisition module, for obtaining in the first resource ability weight and the Secondary resource ability weight most
It is worth the resource capability weight as the newly-built scheduler object greatly.
Mode can be achieved with reference to second, in the 4th kind of achievable mode,
First acquisition module, including:
First acquisition submodule, for the user only be provided with the handling capacity lowest threshold when, according to described
The lowest threshold of handling capacity obtains first resource ability weight;
First processing submodule, for the resource energy using the first resource ability weight as the newly-built scheduler object
Power weight;
Second acquisition module, including:
Second acquisition submodule, for the user only be provided with the bandwidth lowest threshold when, according to the band
Wide lowest threshold obtains Secondary resource ability weight;
Second processing submodule, for the resource energy using the Secondary resource ability weight as the newly-built scheduler object
Power weight.
With reference to the 3rd or the 4th kind of achievable mode, in the 5th kind of achievable mode,
First acquisition submodule, for being weighed the lowest threshold of the handling capacity as the first resource ability
Weight;
Second acquisition submodule, weighed for obtaining the Secondary resource ability according to Secondary resource ability weight equation
Weight X, the Secondary resource ability weight equation are:
X=M/N;
Wherein, the M is the lowest threshold of the bandwidth, and the N is that the resource request of previous measurement period is averagely big
Small, N=W/Z, the W are the number of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
According to the summation of amount, the Z is the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Total number.
With reference to the 3rd or the 4th kind of achievable mode, in the 6th kind of achievable mode,
First acquisition submodule, weighed for obtaining the first resource ability according to first resource ability weight formula
Weight Y, the first resource ability weight formula are:
Y=H × N;
Wherein, the H is the lowest threshold of the handling capacity, and the N is that the resource request of previous measurement period is averaged
Size, N=W/Z, the W are the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
The summation of data volume, the Z are the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Total number;
Second acquisition submodule, for using the lowest threshold of the bandwidth as the Secondary resource ability weight.
Mode can be realized with reference to the first, in the 7th kind of achievable mode,
The resource capability distributing equipment also includes:
3rd acquiring unit, the user for identifying instruction in the user are not provided with the lowest threshold of the performance parameter
When, obtain user's scheduler objects by default of current statistic cycle all lowest thresholds for being not provided with the performance parameter;
3rd establishes unit, for establishing user and scheduler object according to user mark and the acquiescence scheduler object
Corresponding relation.
With reference to the 7th kind of achievable mode, in the 8th kind of achievable mode,
The resource capability distributing equipment also includes:
Determining unit, for determining that the resource capability of the acquiescence scheduler object is weighed according to default resource ability weight equation
Weight Q, the default resource ability weight equation include:
Q=P × D/ (1-D), P > 0;
Q=S, P=0;
Wherein, the P is the every other scheduling pair in addition to the acquiescence scheduler object in the current statistic cycle
The resource capability weight sum of elephant, the D allow the percentage given tacit consent to scheduler object and occupy resource capability, S to be default
To preset resource capability weighted value;
4th establishes unit, for being weighed according to the resource capability of the acquiescence scheduler object and the acquiescence scheduler object
Weight, establish the corresponding relation of the scheduler object and resource capability weight.
With reference to the first to the 8th kind of any achievable mode, in the 9th kind of achievable mode,
The first acquisition unit, including:
4th acquisition module, for being identified according to the user, the corresponding relation of the user and scheduler object is inquired about, is obtained
Scheduler object corresponding to user's mark is taken as the first scheduler object;
5th acquisition module, for according to first scheduler object, inquiring about the scheduler object and resource capability weight
Corresponding relation, obtain the user that resource capability weight corresponding to first scheduler object identifies instruction as the user
Resource capability weight.
Mode can be realized with reference to the first, in the tenth kind of achievable mode,
The second acquisition unit, including:
6th acquisition module, for when receiving user's request to create comprising user mark, obtaining scheduling pair
As request to create;
Or when receiving the performance parameter renewal request comprising user mark, acquisition scheduler object creates please
Ask;
Or the resource request mean size change of the first two measurement period of the user of instruction is identified in the user
When, obtain scheduler object request to create.
The third aspect, there is provided a kind of resource capability distributing equipment, including:Central processing unit and memory;The centre
Reason device and the memory pass through bus communication;The memory storage computer executed instructions;The central processing unit performs
The computer executed instructions, for performing any described method of first aspect.
The invention provides a kind of resource capability distribution method and equipment, due to can be according to the lowest threshold of performance parameter
Determine the resource capability weight of user so that performance parameter and the resource capability weighted associations of user, and according to the resource of user
Ability weight, it is ser resource allocation ability, therefore, in resource capability assigning process, the performance parameter of user can be referred to
Lowest threshold determine the resource capability weight of user, so as to ensureing the minimum performance requirement of user.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of flow chart of resource capability distribution method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another resource capability distribution method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow for establishing user and resource capability weight corresponding relation method provided in an embodiment of the present invention
Figure;
Fig. 4 is a kind of flow of method for determining newly-built scheduler object resource capability weight provided in an embodiment of the present invention
Figure;
Fig. 5 is the flow of another method for determining newly-built scheduler object resource capability weight provided in an embodiment of the present invention
Figure;
Fig. 6 is a kind of structural representation of resource capability distributing equipment provided in an embodiment of the present invention;
Fig. 7 is the structural representation of another resource capability distributing equipment provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of the judging unit of resource capability distributing equipment provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation of the second setting unit of resource capability distributing equipment provided in an embodiment of the present invention
Figure;
Figure 10 is a kind of structural representation of the first acquisition module of resource capability distributing equipment provided in an embodiment of the present invention
Figure;
Figure 11 is a kind of structural representation of the second acquisition module of resource capability distributing equipment provided in an embodiment of the present invention
Figure;
The structural representation of Figure 12 another resource capability distributing equipment provided in an embodiment of the present invention;
Figure 13 is a kind of structural representation of the first acquisition unit of resource capability distributing equipment provided in an embodiment of the present invention
Figure;
Figure 14 is a kind of structural representation of the second acquisition unit of resource capability distributing equipment provided in an embodiment of the present invention
Figure;
The structural representation of Figure 15 another resource capability distributing equipment provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
The embodiment of the present invention provides a kind of resource capability distribution method, as shown in figure 1, this method includes:
Step 101, the resource request that user equipment is sent is received, the resource request identifies including user.
Step 102, the corresponding relation by inquiring about user and resource capability weight, obtain the user's of user's mark instruction
Resource capability weight, the resource capability weight of each user of the user with being recorded in the corresponding relation of resource capability weight is basis
What the lowest threshold of the performance parameter of user was set.
Step 103, the ser resource allocation ability according to the resource capability weight of user for user mark instruction.
In summary, resource capability distribution method provided in an embodiment of the present invention, due to can be according to performance parameter most
Low threshold determines the resource capability weight of user so that performance parameter and the resource capability weighted associations of user, and according to user
Resource capability weight, for the ser resource allocation ability.Therefore, in resource capability assigning process, it can refer to user's
The lowest threshold of performance parameter determines the resource capability weight of user, so as to ensureing the minimum performance requirement of user.
It should be noted that the user and the corresponding relation of resource capability weight in step 102 include:User and scheduling pair
The corresponding relation of elephant, scheduler object and the corresponding relation of resource capability weight.Wherein, the relation of user and scheduler object includes using
Family and the relation of newly-built scheduler object, user and the relation of acquiescence scheduler object;Scheduler object and the relation of resource capability weight
Relation including newly-built scheduler object Yu resource capability weight, acquiescence scheduler object and the relation of resource capability weight.
Further, before step 101, can also include:Scheduler object request to create is obtained, the scheduler object creates
Request includes user's mark;Judge that user identifies the lowest threshold whether user indicated sets performance parameter;When user identifies
The user of instruction sets the lowest threshold of performance parameter, and newly-built scheduler object is set for the user;According to the minimum of performance parameter
Threshold value determines the resource capability weight of the newly-built scheduler object;According to the user mark and the newly-built scheduler object establish user with
The corresponding relation of scheduler object;According to the resource capability weight of newly-built scheduler object and newly-built scheduler object, scheduler object is established
With the corresponding relation of resource capability weight.
It should be noted that obtaining the process of scheduler object request to create can include:Identified receiving comprising user
User's request to create when, obtain scheduler object request to create;Or receiving the performance parameter renewal comprising user's mark
During request, scheduler object request to create is obtained;Or the resource of the first two measurement period in the user of user's mark instruction please
When being averaging size variation, scheduler object request to create is obtained.
Because performance parameter includes handling capacity and bandwidth, then judge that user identifies whether the user indicated sets performance parameter
The process of lowest threshold can include:Judge that user identifies the lowest threshold whether user indicated sets handling capacity;Judge
User identifies the lowest threshold whether user indicated sets bandwidth;When user is provided with the lowest threshold and bandwidth of handling capacity
It is at least one in lowest threshold, judge that user identifies lowest threshold of the user there is provided performance parameter of instruction;When user not
The lowest threshold of handling capacity and the lowest threshold of bandwidth are set, judge that user identifies the user indicated and is not provided with performance parameter most
Low threshold.
After whether the user for judging user's mark instruction sets the lowest threshold of performance parameter, this method can also wrap
Include:When the user of user's mark instruction is not provided with the lowest threshold of performance parameter, acquisition current statistic cycle all being not provided with property
Can parameter lowest threshold user's scheduler object by default;Identified according to user and give tacit consent to scheduler object and establish user with adjusting
Spend the corresponding relation of object.
After the corresponding relation of user and scheduler object is established according to user's mark and acquiescence scheduler object, this method is also
It can include:
The resource capability weight Q of acquiescence scheduler object, the default resource energy are determined according to default resource ability weight equation
Power weight equation includes:Q=P × D/ (1-D), P > 0;Q=S, P=0;Wherein, P is except acquiescence scheduling in the current statistic cycle
The resource capability weight sum of every other scheduler object outside object, D allow acquiescence scheduler object to occupy money to be default
The percentage of source capability, S are default resource capability weighted value;According to acquiescence scheduler object and the resource capability for giving tacit consent to scheduler object
Weight, establish the corresponding relation of scheduler object and resource capability weight.
The resource capability weight for determining newly-built scheduler object according to the lowest threshold of performance parameter can include:Set in user
Put handling capacity lowest threshold and bandwidth lowest threshold when, first resource ability power is obtained according to the lowest threshold of handling capacity
Weight;Secondary resource ability weight is obtained according to the lowest threshold of bandwidth;Obtain first resource ability weight and Secondary resource ability
Resource capability weight of the maximum as the newly-built scheduler object in weight.
The resource capability weight of newly-built scheduler object is determined according to the lowest threshold of performance parameter, including:Only set in user
When having put the lowest threshold of handling capacity, first resource ability weight is obtained according to the lowest threshold of handling capacity;By first resource energy
Resource capability weight of the power weight as newly-built scheduler object;When user is only provided with the lowest threshold of bandwidth, according to bandwidth
Lowest threshold obtain Secondary resource ability weight;Weighed Secondary resource ability weight as the resource capability of newly-built scheduler object
Weight.
Wherein, the acquisition methods of first resource ability weight and Secondary resource ability weight can have a variety of, specific as follows:
In a first aspect, obtaining the method for first resource ability weight can include:Using the lowest threshold of handling capacity as
One resource capability weight.Obtaining the method for Secondary resource ability weight can include:Obtained according to Secondary resource ability weight equation
Secondary resource ability weight X is taken, Secondary resource ability weight equation is:X=M/N;Wherein, M is the lowest threshold of bandwidth, and N is
The resource request mean size of previous measurement period, N=W/Z, W is corresponding to newly-built scheduler objects in previous measurement period
The summation of the data volume of the resource request of user, Z are the resource of user corresponding to newly-built scheduler object in previous measurement period
The total number of request.It should be noted that the data volume of resource request refers to the data that the resource request actually takes in itself
Size, for example, resource request is read request, the size of data that the resource request actually takes in itself is 1KB, and the resource request is used
1MB data are read in request, then the data volume of the resource request is 1KB.
Second aspect, obtaining the method for first resource ability weight can include:According to first resource ability weight formula
First resource ability weight Y is obtained, first resource ability weight formula is:Y=H × N;Wherein, H is the minimum threshold of handling capacity
Value, N are the resource request mean size of previous measurement period, and N=W/Z, W are newly-built scheduler object in previous measurement period
The summation of the data volume of the resource request of corresponding user, Z are user corresponding to newly-built scheduler object in previous measurement period
Resource request total number.Obtaining the method for Secondary resource ability weight can include:Using the lowest threshold of bandwidth as
Two resource capability weights.
By inquiring about the corresponding relation of user and resource capability weight, the resource capability that user identifies the user of instruction is obtained
Weight, it can include:Identified according to user, inquire about the corresponding relation of user and scheduler object, obtained and adjusted corresponding to user's mark
Object is spent as the first scheduler object;According to the first scheduler object, query scheduling object and the corresponding relation of resource capability weight,
Obtain the resource capability weight that resource capability weight corresponding to the first scheduler object identifies the user of instruction as user.
In summary, resource capability distribution method provided in an embodiment of the present invention, due to can be according to performance parameter most
Low threshold determines the resource capability weight of user so that performance parameter and the resource capability weighted associations of user, and according to user
Resource capability weight, for the ser resource allocation ability.Therefore, in resource capability assigning process, it can refer to user's
The lowest threshold of performance parameter determines the resource capability weight of user, so as to ensureing the minimum performance requirement of user.
The embodiment of the present invention provides a kind of resource capability distribution method, as shown in Fig. 2 including:
Step 201, scheduler establish the corresponding relation of user and resource capability weight.Perform step 202.
Resource capability is allocated by the resource capability weight that scheduler is specified according to user between users, it is necessary first to
The corresponding relation established between user and resource capability weight.The corresponding relation of the user and resource capability weight have recorded each
User and the relation of the resource capability weight of the user, can include:User and the relation of scheduler object, scheduler object and resource
The relation of ability weight.Wherein, the relation of user and scheduler object includes user and the relation of newly-built scheduler object, and user is with writing from memory
Recognize the relation of scheduler object;Scheduler object and the relation of resource capability weight include newly-built scheduler object and resource capability weight
Relation, acquiescence scheduler object and the relation of resource capability weight.The user that instruction is identified as user is provided with performance parameter most
Low threshold, the user are newly-built scheduler object, when the user of user's mark instruction is not provided with the lowest threshold of performance parameter, the use
Family is acquiescence scheduler object.
Example, table 1 is the resource capability weight relationship table corresponding to user 0 to user 7.Wherein, user 0 is to user 3
Corresponding acquiescence scheduler object, i.e. user 0 are not provided with the lowest threshold of performance parameter to user 3.User with acquiescence scheduler object be
Many-to-one relation, resource capability weight corresponding to the acquiescence scheduler object are WO.User 4 is to the corresponding newly-built scheduling pair of user 7
As that is, user 4 to user 7 is provided with the lowest threshold of performance parameter.User and newly-built scheduler object are man-to-man relations,
That is the corresponding newly-built scheduler object A of user 4, the corresponding newly-built scheduler object B of user 5, the corresponding newly-built scheduler object C of user 6, user 7
Corresponding newly-built scheduler object D.The resource capability weight of newly-built scheduler object corresponding to user 4 to user 7 is W1, W2.W3 respectively
And W4.
The user of table 1 and the corresponding relation of resource capability weight
As shown in figure 3, step 201 specifically includes:
Step 2011, scheduler object request to create is obtained, scheduler object request to create identifies including user.
Scheduler object request to create is obtained, including:When receiving user's request to create comprising user's mark, obtain and adjust
Spend Object Creation request;Or when receiving the performance parameter renewal request comprising user's mark, obtain scheduler object and create
Request;Or when the resource request mean size change of the first two measurement period of the user of instruction is identified in user, obtain and adjust
Spend Object Creation request.
User's mark in scheduler object request to create can be that the user that scheduler is each competitive resource ability distributes
Identity recognition number (English:IDentity;Referred to as:ID), each scheduler object request to create corresponds to a unique ID.
If the performance parameter of user changes corresponding to some ID present in script scheduler, or is used corresponding to some ID
When the resource request mean size of the first two measurement period at family changes, scheduler object request to create is obtained, establishes the ID
Corresponding relation between corresponding scheduler object and the resource capability weight of user, the corresponding relation before covering;If one
New user needs competitive resource ability, obtains scheduler object request to create, and scheduler distributes an ID to the user, and establishing should
Corresponding relation between scheduler object corresponding to ID and the resource capability weight of the new user.
Step 2012, judge that user identifies the lowest threshold whether user indicated sets performance parameter.When user identifies
The user of instruction is provided with the lowest threshold of performance parameter, performs step 2013, when user identifies the being not provided with property of user of instruction
The lowest threshold of energy parameter, performs step 2017.
It should be noted that the performance parameter can include handling capacity and bandwidth, resource capability be typically by handling capacity or
Person's bandwidth embodies, and handling capacity refers to the data volume that can pass through in the unit interval on physical link, can reflect resource capability
The data volume of unit interval treatable resource request can be determined, the unit interval data volume of treatable resource request is got over
Greatly, resource capability is stronger;Bandwidth refers to the data volume that can pass through in the unit interval on link, can reflect resource capability i.e.
The data volume of unit interval treatable resource request can be determined, the unit interval data volume of treatable resource request is got over
Greatly, resource capability is stronger.The unit of handling capacity and bandwidth is all bps.Therefore, scheduler judges that the user that user identifies instruction is
The no lowest threshold that performance parameter is set, including:Judge that user identifies the lowest threshold whether user indicated sets handling capacity;
Judge that user identifies the lowest threshold whether user indicated sets bandwidth;When user is provided with the lowest threshold and band of handling capacity
At least one in wide lowest threshold, scheduler judges that user identifies minimum threshold of the user there is provided performance parameter of instruction
Value;The lowest threshold of handling capacity and the lowest threshold of bandwidth are not provided with as user, scheduler judges that user identifies the user of instruction
It is not provided with the lowest threshold of performance parameter.
The user that indicates when user identifies in actual applications is not provided with the lowest threshold of handling capacity and the minimum threshold of bandwidth
Any one in value, it is necessary first to obtain user's conduct of current statistic cycle all lowest thresholds for being not provided with performance parameter
Give tacit consent to scheduler object, identify and give tacit consent to the corresponding relation that scheduler object establishes user and scheduler object further according to user, if silent
The resource capability weight for recognizing scheduler object does not change, and can obtain the acquiescence scheduling pair counted in previous measurement period
The resource capability weight of elephant.Therefore step 2017 can be performed.
Step 2013, the newly-built scheduler object of the user indicated setting is identified for user.Perform step 2014.
When user identifies lowest threshold of the user there is provided performance parameter of instruction, the user that instruction is identified for the user sets
Put newly-built scheduler object.Example, as shown in table 1, it is assumed that the user of user 7 is identified as ID7, and user 7 is provided with performance parameter
Lowest threshold, so for ID7 instruction user 7 newly-built scheduler object D is set.
Step 2014, the resource capability weight for determining according to the lowest threshold of performance parameter newly-built scheduler object.Perform step
Rapid 2015.
On the one hand, scheduler may determine that user identifies the lowest threshold whether user indicated sets handling capacity, and
Judge that user identifies the lowest threshold whether user indicated sets bandwidth, the resource energy of scheduler object is determined according to judged result
Power weight.
In actual applications, can be using handling capacity as resource energy when determining the resource capability weight of newly-built scheduler object
The major parameter that power weight determines, the major parameter that bandwidth can also be determined as resource capability weight.Example, such as Fig. 4
It is shown, when the major parameter for determining handling capacity as resource capability weight, determine the resource capability power of newly-built scheduler object
The process of weight can include:
Step 2014a, judge that user identifies the lowest threshold whether user indicated sets handling capacity, if user identifies
The user of instruction is provided with the lowest threshold of handling capacity, performs step 2014b, if the user that user identifies instruction is not provided with gulping down
The lowest threshold for the amount of telling, perform step 2014c.
Step 2014b, using the lowest threshold of handling capacity as first resource ability weight.Perform step 2014c.
Step 2014c, judge that user identifies the lowest threshold whether user indicated sets bandwidth, if user's mark refers to
The user shown is provided with the lowest threshold of bandwidth, performs step 2014d, if the user that user identifies instruction is not provided with bandwidth
Lowest threshold, perform step 2014e.
Step 2014d, Secondary resource ability weight is obtained according to the lowest threshold of bandwidth, performs step 2014e.
Secondary resource ability weight X, the Secondary resource ability weight can be obtained according to Secondary resource ability weight equation
Formula is:
X=M/N;
Wherein, M is the lowest threshold of bandwidth, and N is the resource request mean size of previous measurement period, and N=W/Z, W are
The summation of the data volume of the resource request of user corresponding to newly-built scheduler object in previous measurement period, Z are previous statistics
The total number of the resource request of user corresponding to newly-built scheduler object in cycle.It should be noted that provided in the embodiment of the present invention
Source capability assigning process is periodically to carry out, and resource capability weight calculation formula is by periodically counting bandwidth or handling up
Measure to determine resource capability weight, corresponding measurement period is pre-set according to the performance of resource capability distribution system.
Common, a measurement period is 5 seconds.
Step 2014e, the maximum in first resource ability weight and Secondary resource ability weight is obtained as newly-built tune
Spend the resource capability weight of object.
In practical application, it can be determined that whether user identifies the user of instruction only there is provided the lowest threshold of handling capacity, or
Judge that whether user identifies the user of instruction only there is provided the lowest threshold of bandwidth, only there is provided the minimum threshold of handling capacity in user
During value, first resource ability weight is obtained according to the lowest threshold of handling capacity, then using first resource ability weight as newly-built tune
The resource capability weight of object is spent, therefore can directly perform 2014e after step 2014b is performed, gives tacit consent to Secondary resource energy
Power weight is 0;When user is only provided with the lowest threshold of bandwidth, Secondary resource ability power is obtained according to the lowest threshold of bandwidth
Weight, then the resource capability weight using Secondary resource ability weight as newly-built scheduler object, therefore can directly perform step
2014c to step 2014e, acquiescence first resource ability weight are 0.
As shown in figure 5, when the major parameter for determining bandwidth as resource capability weight, newly-built scheduler object is determined
The process of resource capability weight includes:
Step 2014A, judge that user identifies the lowest threshold whether user indicated sets handling capacity, if user identifies
The user of instruction is provided with the lowest threshold of handling capacity, performs step 2014B, if the user that user identifies instruction is not provided with gulping down
The lowest threshold for the amount of telling, perform step 2014C.
Step 2014B, first resource ability weight is obtained according to the lowest threshold of handling capacity.Perform step 2014C.
First resource ability weight Y, the first resource ability weight can be obtained according to first resource ability weight formula
Formula is:
Y=H × N;
Wherein, H be handling capacity lowest threshold, N be previous measurement period resource request mean size, N=W/Z, W
For the summation of the data volume of the resource request of user corresponding to newly-built scheduler object in previous measurement period, Z is previous system
Count the total number of the resource request of user corresponding to newly-built scheduler object in the cycle.
Step 2014C, judge that user identifies the lowest threshold whether user indicated sets bandwidth, if user's mark refers to
The user shown is provided with the lowest threshold of bandwidth, performs step 2014D, if the user that user identifies instruction is not provided with bandwidth
Lowest threshold, perform step 2014E.
Step 2014D, using the lowest threshold of bandwidth as Secondary resource ability weight, step 2014E is performed.
Step 2014E, the maximum in first resource ability weight and Secondary resource ability weight is obtained as newly-built tune
Spend the resource capability weight of object.
In practical application, it can be determined that whether user identifies the user of instruction only there is provided the lowest threshold of handling capacity, or
Judge that whether user identifies the user of instruction only there is provided the lowest threshold of bandwidth, only there is provided the minimum threshold of handling capacity in user
During value, first resource ability weight is obtained according to the lowest threshold of handling capacity, then using first resource ability weight as newly-built tune
The resource capability weight of object is spent, therefore can directly perform 2014E after step 2014B is performed, gives tacit consent to Secondary resource energy
Power weight is 0;When user is only provided with the lowest threshold of bandwidth, Secondary resource ability power is obtained according to the lowest threshold of bandwidth
Weight, then the resource capability weight using Secondary resource ability weight as newly-built scheduler object, therefore can directly perform step
2014C to step 2014E, acquiescence first resource ability weight are 0.
Example, as shown in table 1, the newly-built scheduling determined according to the lowest threshold of the performance parameter of the ID7 users 7 indicated
Object D resource capability weight is W4.
Step 2015, the corresponding relation of user and scheduler object established according to user's mark and newly-built scheduler object.Perform
Step 2016.
Example, as shown in table 1, ID7 and newly-built scheduler object D is identified according to user and establishes user 7 and newly-built scheduling pair
As D relation.
Step 2016, the resource capability weight according to newly-built scheduler object and newly-built scheduler object, establish scheduler object with
The corresponding relation of resource capability weight.
Example, as shown in table 1, established according to newly-built scheduler object D and newly-built scheduler object D resource capability weight W4
Newly-built scheduler object D and resource capability weight W4 corresponding relation.
In actual applications, due to give tacit consent to scheduler object resource capability weight be according in the current statistic cycle except acquiescence
Every other scheduler object outside scheduler object is that the resource capability weight sum of newly-built scheduler object calculates, therefore, when
When the resource capability weight of newly-built scheduler object changes, giving tacit consent to the resource capability weight of scheduler object also should accordingly repair
Change, it is necessary to further according to acquiescence scheduler object and the resource capability weight for giving tacit consent to scheduler object, establish scheduler object and resource capability
The corresponding relation of weight.Therefore step 2017 can be performed.
Step 2017, the user of acquisition current statistic cycle all lowest thresholds for being not provided with performance parameter adjust by default
Spend object.
The lowest threshold of handling capacity and the lowest threshold of bandwidth are not provided with as user, scheduler judges that the user identifies instruction
User be not provided with the lowest threshold of performance parameter, then the user is identified into the user of instruction scheduler object by default.Example
, if the user 0 in table 1 is to give tacit consent to scheduler object.
Step 2018, the corresponding relation that scheduler object establishes user and scheduler object is identified and given tacit consent to according to user.
It should be noted that when the lowest threshold that user identifies the performance parameter of user's setting of instruction changes,
The resource capability weight of the newly-built scheduler object corresponding to modification user is needed, because the resource capability weight of acquiescence scheduler object
Be according to the resource capability Weight Acquisition of the every other scheduler object in the current statistic cycle in addition to scheduler object is given tacit consent to,
Therefore, it is also desirable to the resource capability weight of modification acquiescence scheduler object.
Example, as shown in table 1, it is assumed that the user of user 0 to user 3 mark is ID0, ID1, ID2 and ID3 respectively, root
User 0 is established to user 3 and the corresponding relation of acquiescence scheduler object according to ID0, ID1, ID2 and ID3, and is many-to-one pass
System.
Step 2019, the resource capability weight for determining acquiescence scheduler object.
The resource capability weight Q of acquiescence scheduler object, default resource ability are determined according to default resource ability weight equation
Weight equation includes:
Q=P × D/ (1-D), P > 0;
Q=S, P=0;
Wherein, P is the resource capability of the every other scheduler object in addition to scheduler object is given tacit consent in the current statistic cycle
Weight sum, D are the default percentage for allowing acquiescence scheduler object to occupy resource capability, and S is default resource capability weighted value.
Example, as shown in table 1, the user of current statistic cycle all lowest thresholds for being not provided with performance parameter is user
0 to user 3, so by user 0 to user 3 scheduler object by default, determines that this is silent according to default resource ability weight equation
The resource capability weight for recognizing scheduler object is W0.When the money of newly-built scheduler object corresponding to user 4 to user 7 any one user
Source capability weight is changed, and is given tacit consent to the resource capability weight W0 of scheduler object and also can accordingly be changed.
In actual applications, if the resource capability weight of acquiescence scheduler object does not change, can obtain previous
The resource capability weight of the acquiescence scheduler object counted in individual measurement period.
Step 2020, according to acquiescence scheduler object with give tacit consent to scheduler object resource capability weight, establish scheduler object with
The corresponding relation of resource capability weight.
Example, as shown in table 1, user identifies acquiescence scheduler object and resource capability corresponding to ID0, ID1, ID2 and ID3
Weight W0, establish the corresponding relation of acquiescence scheduler object and resource capability weight W0.
Step 202, scheduler receive the resource request that user equipment is sent, and the resource request identifies including user.
When user equipment needs resource capability, user equipment can ask to scheduler dispatches resource capability, with request
The resource capability needed.The user can be real terminal user, data flow, file, catalogue or LUN (English:
Logical Unit Number;Referred to as:LUN) etc..The resource can be network, central processing unit (English:Central
Processing Unit;Referred to as:CPU), any one in storage system and distributed system, wherein, storage system includes:
Hardware memory system and internal memory, the hardware memory system can be one or more hard disks, and resource capability refers to the band of network
Wide ability, CPU disposal ability, storage system and the bandwidth of distributed system or throughput capabilities etc..In resource request
User's mark can be the identification number ID that the user that scheduler is each competitive resource ability distributes.
Step 203, scheduler obtain the user and identify instruction by inquiring about the corresponding relation of user and resource capability weight
User resource capability weight.
The resource capability weight of each user of the user with being recorded in the corresponding relation of resource capability weight is according to user
Performance parameter lowest threshold set.
User and the corresponding relation of resource capability weight include:User and the corresponding relation of scheduler object, scheduler object with
The corresponding relation of resource capability weight.The relation of user and scheduler object includes user and the relation of newly-built scheduler object, user
Relation with giving tacit consent to scheduler object;The relation of scheduler object and resource capability weight includes newly-built scheduler object and weighed with resource capability
The relation of weight, acquiescence scheduler object and the relation of resource capability weight.
Accordingly, step 203 can specifically include:
Identified according to user, inquire about the corresponding relation of user and scheduler object, obtain scheduler object corresponding to user's mark
As the first scheduler object;According to the first scheduler object, query scheduling object and the corresponding relation of resource capability weight, the is obtained
Resource capability weight corresponding to one scheduler object identifies the resource capability weight of the user of instruction as user.
Example, as shown in table 1, if user's mark of user 4 is ID4, ID4, inquiry are identified according to the user of user 4
User 4 and the first row and secondary series of the corresponding relation, i.e. table 1 of scheduler object, obtain user and identify scheduler object corresponding to ID4
A is as the first scheduler object;According to the first scheduler object A, query scheduling object and the corresponding relation of resource capability weight, i.e. table
1 secondary series and the 3rd row, obtain resource capability weight W1 corresponding to the first scheduler object A and identify ID4 instructions as user
The resource capability weight of user 4.
Step 204, scheduler are according to the user resource allocation energy that the resource capability weight of user is user mark instruction
Power.
When user identifies lowest threshold of the user there is provided performance parameter of instruction, i.e. the user corresponds to newly-built scheduling pair
As the resource capability weight that the user that user identifies instruction is obtained according to step 2014 is the ser resource allocation ability;When with
The user of family mark instruction is not provided with the lowest threshold of performance parameter, i.e. the user correspondingly gives tacit consent to scheduler object, according to step
The 2019 resource capability weights for obtaining the user that user identifies instruction are the ser resource allocation ability, due to giving tacit consent to scheduler object
It may be made up of multiple users, then for corresponding to acquiescence scheduler object after ser resource allocation ability, in the acquiescence scheduler object
The resource capability of each user can be allocated according to default rule, the embodiment of the present invention is not limited this.
Particularly, the user in the embodiment of the present invention can be multiple user equipmenies, it is multiple data flows, multiple files, more
Any one in individual catalogue and multiple LUN.
Using resource capability distribution method provided in an embodiment of the present invention, due to the resource capability weight according to user, it is
User identifies the ser resource allocation ability of instruction, and the resource capability weight of user determines according to performance parameter, then
When resource capability abundance, the minimum performance requirement of user, i.e., the money that the high user of resource capability weight is allocated can be ensured
Source capability is more, and the resource capability that the low user of resource capability weight is allocated is few;When resource capability deficiency, user can be fair
Ground punishes, i.e., resource capability weight high user's Relative resource ability abundance when reduction resource capability it is more, resource capability weight
The resource capability of reduction is few during low user's Relative resource ability abundance.Example, it is assumed that in resource capability distribution system, exist
User A and user B carries out resource capability competition, and user A minimum IOPS requirements are 1200bps, and user B minimum IOPS is required
For 600bps, then the resource capability weight of the newly-built scheduler object corresponding to user A is 1200, newly-built corresponding to user B
The resource capability weight of scheduler object is 600, if system allows acquiescence, scheduler object occupies the 10% of resource capability, gives tacit consent to
The resource capability weight of scheduler object is [(1200+600) × 10%]/90%=200, then as the resource capability > of system
2000, i.e., resource capability abundance when, be user A distribution resource capability be 1200bps, be user B distribute resource capability be
600bps, user A and user B minimum performance requirement can be ensured simultaneously;When the resource capability of system is 1000bps, that is, provide
During source capability deficiency, the resource capability for being user A distribution is 600bps, and the resource capability for being user B distribution is 300bps, can not
Ensure user A and user B minimum performance requirement, but during relative to resource abundance, the resource capability for user A distribution is reduced
600bps, reduce 300bps for the resource capability of user B distribution, i.e. minimum performance requirement high user will than lowest performance
The resource capability for asking low user to punish is more, belongs to fair punishment.
In summary, resource capability distribution method provided in an embodiment of the present invention, due to can be according to performance parameter most
Low threshold determines the resource capability weight of user so that performance parameter and the resource capability weighted associations of user, and according to user
Resource capability weight, for the ser resource allocation ability.Therefore, in resource capability assigning process, it can refer to user's
The lowest threshold of performance parameter determines the resource capability weight of user, so as to ensureing the minimum performance requirement of user.
The embodiment of the present invention provides a kind of resource capability distributing equipment 70, and the resource capability distributing equipment 70 can be scheduling
Device, as shown in fig. 6, the resource capability distributing equipment 70 includes:
Receiving unit 701, first acquisition unit 702 and allocation unit 703.
Receiving unit 701, for receiving the resource request of user equipment transmission, resource request identifies including user.
First acquisition unit 702, for inquiring about the corresponding relation of user and resource capability weight, obtain user and identify instruction
User resource capability weight, the resource capability of each user recorded in the corresponding relation of user and resource capability weight weighs
It is to be set according to the lowest threshold of the performance parameter of the user again.
Allocation unit 703, for being that user identifies the user resource allocation energy indicated according to the resource capability weight of user
Power.
In summary, resource capability distributing equipment provided in an embodiment of the present invention, because first acquisition unit being capable of basis
The lowest threshold of performance parameter determines the resource capability weight of user so that performance parameter and the resource capability weight of user are closed
Connection, so that resource capability weight of the allocation unit according to user, for the ser resource allocation ability.Therefore, in resource capability
In assigning process, the lowest threshold for the performance parameter that can refer to user determines the resource capability weight of user, so as to ensure
The minimum performance requirement of user.
The embodiment of the present invention provides another resource capability distributing equipment 70, and the resource capability distributing equipment 70 can be to adjust
Device is spent, as shown in fig. 7, the resource capability distributing equipment 70 includes:
Receiving unit 701, first acquisition unit 702, allocation unit 703, second acquisition unit 704, judging unit 705,
First setting unit 706, the second setting unit 707, first establishes unit 708, and second establishes unit 709.
Receiving unit 701, for receiving the resource request of user equipment transmission, resource request identifies including user.
First acquisition unit 702, for the corresponding relation by inquiring about user and resource capability weight, obtain user's mark
The resource capability weight of the user of instruction, user and the resource energy of each user recorded in the corresponding relation of resource capability weight
Power weight is set according to the lowest threshold of the performance parameter of the user.
Allocation unit 703, for being that user identifies the user resource allocation energy indicated according to the resource capability weight of user
Power.
Second acquisition unit 704, for obtaining scheduler object request to create, scheduler object request to create is marked including user
Know.
Judging unit 705, for judging that user identifies the lowest threshold whether user indicated sets performance parameter.
First setting unit 706, for user identify instruction user set performance parameter lowest threshold when, for
Family sets newly-built scheduler object.
Second setting unit 707, for determining the resource capability of newly-built scheduler object according to the lowest threshold of performance parameter
Weight.
First establishes unit 708, for establishing pair of user and scheduler object according to user's mark and newly-built scheduler object
It should be related to.
Second establishes unit 709, for the resource capability weight according to newly-built scheduler object and newly-built scheduler object, establishes
Scheduler object and the corresponding relation of resource capability weight.
It should be noted that the performance parameter includes handling capacity and bandwidth, as shown in figure 8, the judging unit 705, including:
First judge module 7051, the second judge module 7052, the 3rd judge module 7053 and the 4th judge module 7054.
First judge module 7051, for judging that user identifies the lowest threshold whether user indicated sets handling capacity.
Second judge module 7052, for judging that user identifies the lowest threshold whether user indicated sets bandwidth.
3rd judge module 7053, for being provided with user in the lowest threshold of handling capacity and the lowest threshold of bandwidth
When at least one, judge that user identifies lowest threshold of the user there is provided performance parameter of instruction.
4th judge module 7054, for be not provided with user handling capacity lowest threshold and bandwidth lowest threshold when,
Judge that user identifies the lowest threshold that the user indicated is not provided with performance parameter.
As shown in figure 9, the second setting unit 707, including:
First acquisition module 7071, the second acquisition module 7072 and the 3rd acquisition module 7073.
First acquisition module 7071, for user be provided with handling capacity lowest threshold and bandwidth lowest threshold when,
First resource ability weight is obtained according to the lowest threshold of handling capacity.
Second acquisition module 7072, for obtaining Secondary resource ability weight according to the lowest threshold of bandwidth.
3rd acquisition module 7073, for obtaining the maximum in first resource ability weight and Secondary resource ability weight
Resource capability weight as newly-built scheduler object.
As shown in Figure 10, the first acquisition module 7071, including:
First acquisition submodule 70711 and the first processing submodule 70712.
First acquisition submodule, for user only be provided with handling capacity lowest threshold when, according to the minimum of handling capacity
Threshold value obtains first resource ability weight.
First processing submodule, for the resource capability weight using first resource ability weight as newly-built scheduler object.
As shown in figure 11, the second acquisition module 7072, including:
Second acquisition submodule 70721 and second processing submodule 70722.
Second acquisition submodule 70721, for user only be provided with bandwidth lowest threshold when, according to the minimum of bandwidth
Threshold value obtains Secondary resource ability weight.
Second processing submodule 70722, for the resource capability using Secondary resource ability weight as newly-built scheduler object
Weight.
On the one hand, the first acquisition submodule 70711, for being weighed the lowest threshold of handling capacity as first resource ability
Weight.
Second acquisition submodule 70721, for obtaining Secondary resource ability weight according to Secondary resource ability weight equation
X, Secondary resource ability weight equation are:
X=M/N;
Wherein, M is the lowest threshold of bandwidth, and N is the resource request mean size of previous measurement period, and N=W/Z, W are
The summation of the data volume of the resource request of user corresponding to newly-built scheduler object in previous measurement period, Z are previous statistics
The total number of the resource request of user corresponding to newly-built scheduler object in cycle.
On the other hand, the first acquisition submodule 70711, for obtaining first resource according to first resource ability weight formula
Ability weight Y, first resource ability weight formula are:
Y=H × N;
Wherein, H be handling capacity lowest threshold, N be previous measurement period resource request mean size, N=W/Z, W
For the summation of the data volume of the resource request of user corresponding to newly-built scheduler object in previous measurement period, Z is previous system
Count the total number of the resource request of user corresponding to newly-built scheduler object in the cycle.
Second acquisition submodule 70721, for using the lowest threshold of bandwidth as Secondary resource ability weight.
Further, the embodiment of the present invention provides another resource capability distributing equipment 70, as shown in figure 12, the resource energy
Power distributing equipment 70 includes:
Receiving unit 701, first acquisition unit 702, allocation unit 703, second acquisition unit 704, judging unit 705,
First setting unit 706, the second setting unit 707, first establishes unit 708, and second establishes unit 709, the 3rd acquiring unit
710, the 3rd establishes unit 711, and determining unit 712, the 4th establishes unit 713.
Receiving unit 701, for receiving the resource request of user equipment transmission, resource request identifies including user.
First acquisition unit 702, for the corresponding relation by inquiring about user and resource capability weight, obtain user's mark
The resource capability weight of the user of instruction, user and the resource energy of each user recorded in the corresponding relation of resource capability weight
Power weight is set according to the lowest threshold of the performance parameter of the user.
Allocation unit 703, for being that user identifies the user resource allocation energy indicated according to the resource capability weight of user
Power.
Second acquisition unit 704, for obtaining scheduler object request to create, scheduler object request to create is marked including user
Know.
Judging unit 705, for judging that user identifies the lowest threshold whether user indicated sets performance parameter.
First setting unit 706, for user identify instruction user set performance parameter lowest threshold when, for
Family sets newly-built scheduler object.
Second setting unit 707, for determining the resource capability of newly-built scheduler object according to the lowest threshold of performance parameter
Weight.
First establishes unit 708, for establishing pair of user and scheduler object according to user's mark and newly-built scheduler object
It should be related to.
Second establishes unit 709, for the resource capability weight according to newly-built scheduler object and newly-built scheduler object, establishes
Scheduler object and the corresponding relation of resource capability weight.
3rd acquiring unit 710, when the user for identifying instruction in user is not provided with the lowest threshold of performance parameter, obtain
Take the users of current statistic cycle all lowest thresholds for being not provided with performance parameter scheduler object by default.
3rd establishes unit 711, pair for establishing user and scheduler object for identifying and giving tacit consent to scheduler object according to user
It should be related to.
Determining unit 712, for determining that the resource capability of acquiescence scheduler object is weighed according to default resource ability weight equation
Weight Q, the default resource ability weight equation include:
Q=P × D/ (1-D), P > O;
Q=S, P=O;
Wherein, P is the resource capability of the every other scheduler object in addition to scheduler object is given tacit consent in the current statistic cycle
Weight sum, D are the default percentage for allowing acquiescence scheduler object to occupy resource capability, and S is default resource capability weighted value.
4th establishes unit 713, according to acquiescence scheduler object and the resource capability weight for giving tacit consent to scheduler object, establishes scheduling
Object and the corresponding relation of resource capability weight.
It should be noted that as shown in figure 13, first acquisition unit 702, including:
4th acquisition module 7021 and the 5th acquisition module 7022.
4th acquisition module 7021, for being identified according to user, the corresponding relation of user and scheduler object is inquired about, obtains and uses
Scheduler object is as the first scheduler object corresponding to the mark of family.
5th acquisition module 7022, according to the first scheduler object, query scheduling object is corresponding with resource capability weight to close
System, obtain the resource capability weight that resource capability weight corresponding to the first scheduler object identifies the user of instruction as user.
As shown in figure 14, second acquisition unit 704, including:
6th acquisition module 7041, for when receiving user's request to create comprising user's mark, obtaining scheduling pair
As request to create;Or when receiving the performance parameter renewal request comprising user's mark, acquisition scheduler object creates please
Ask;Or when the resource request mean size change of the first two measurement period of the user of instruction is identified in user, obtain scheduling
Object Creation is asked.
In summary, resource capability distributing equipment provided in an embodiment of the present invention, because first acquisition unit being capable of basis
The lowest threshold of performance parameter determines the resource capability weight of user so that performance parameter and the resource capability weight of user are closed
Connection, so that resource capability weight of the allocation unit according to user, for the ser resource allocation ability.Therefore, in resource capability
In assigning process, the lowest threshold for the performance parameter that can refer to user determines the resource capability weight of user, so as to ensure
The minimum performance requirement of user.
The embodiment of the present invention provides another resource capability distributing equipment, as shown in figure 15, the resource capability distributing equipment
Including:Central processing unit 001 and memory 002;Central processing unit 001 and memory 002 are communicated by bus 003;Memory
002 storage computer executed instructions 0021;Central processing unit 001 performs computer executed instructions 0021, and the computer, which performs, to be referred to
Making 0021 includes:
The resource request that user equipment is sent is received, resource request identifies including user;
By inquiring about the corresponding relation of user and resource capability weight, the resource capability that user identifies the user of instruction is obtained
Weight, the resource capability weight of each user of the user with being recorded in the corresponding relation of resource capability weight are the property according to user
What the lowest threshold of energy parameter was set;
It is the ser resource allocation ability that user identifies instruction according to the resource capability weight of user.
Optionally, user and the corresponding relation of resource capability weight include:User and the corresponding relation of scheduler object, scheduling
Object and the corresponding relation of resource capability weight,
Before the resource request that user equipment is sent is received, this method also includes:
Scheduler object request to create is obtained, scheduler object request to create identifies including user;
Judge that user identifies the lowest threshold whether user indicated sets performance parameter;
When the lowest threshold of user's setting performance parameter of user's mark instruction, newly-built scheduler object is set for user;
The resource capability weight of newly-built scheduler object is determined according to the lowest threshold of performance parameter;
The corresponding relation of user and scheduler object is established according to user's mark and newly-built scheduler object;
According to the resource capability weight of newly-built scheduler object and newly-built scheduler object, establish scheduler object and weighed with resource capability
The corresponding relation of weight.
Optionally, performance parameter includes handling capacity and bandwidth,
Judge that user identifies the lowest threshold whether user indicated sets performance parameter, including:
Judge that user identifies the lowest threshold whether user indicated sets handling capacity;
Judge that user identifies the lowest threshold whether user indicated sets bandwidth;
When user be provided with handling capacity lowest threshold and bandwidth lowest threshold in it is at least one, judge user identify
The user of instruction is provided with the lowest threshold of performance parameter;
The lowest threshold of handling capacity and the lowest threshold of bandwidth are not provided with as user, judges that user identifies the user of instruction not
The lowest threshold of performance parameter is set.
Optionally, the resource capability weight of newly-built scheduler object is determined according to the lowest threshold of performance parameter, including:
In user there is provided when the lowest threshold of handling capacity and the lowest threshold of bandwidth, obtained according to the lowest threshold of handling capacity
Take first resource ability weight;
Secondary resource ability weight is obtained according to the lowest threshold of bandwidth;
Obtain money of the maximum in first resource ability weight and Secondary resource ability weight as newly-built scheduler object
Source capability weight.
Optionally, the resource capability weight of newly-built scheduler object is determined according to the lowest threshold of performance parameter, including:
When user is only provided with the lowest threshold of handling capacity, first resource ability is obtained according to the lowest threshold of handling capacity
Weight;
Resource capability weight using first resource ability weight as newly-built scheduler object;
When user is only provided with the lowest threshold of bandwidth, Secondary resource ability power is obtained according to the lowest threshold of bandwidth
Weight;
Resource capability weight using Secondary resource ability weight as newly-built scheduler object.
Optionally,
First resource ability weight is obtained according to the lowest threshold of handling capacity, including:
Using the lowest threshold of handling capacity as first resource ability weight;
Secondary resource ability weight is obtained according to the lowest threshold of bandwidth, including:
Secondary resource ability weight X is obtained according to Secondary resource ability weight equation, Secondary resource ability weight equation is:
X=M/N;
Wherein, M is the lowest threshold of bandwidth, and N is the resource request mean size of previous measurement period, and N=W/Z, W are
The summation of the data volume of the resource request of user corresponding to newly-built scheduler object in previous measurement period, Z are previous statistics
The total number of the resource request of user corresponding to newly-built scheduler object in cycle.
Optionally,
First resource ability weight is obtained according to the lowest threshold of handling capacity, including:
First resource ability weight Y is obtained according to first resource ability weight formula, first resource ability weight formula is:
Y=H × N;
Wherein, H be handling capacity lowest threshold, N be previous measurement period resource request mean size, N=W/Z, W
For the summation of the data volume of the resource request of user corresponding to newly-built scheduler object in previous measurement period, Z is previous system
Count the total number of the resource request of user corresponding to newly-built scheduler object in the cycle;
Secondary resource ability weight is obtained according to the lowest threshold of bandwidth, including:
Using the lowest threshold of bandwidth as Secondary resource ability weight.
Optionally,
After whether the user for judging user's mark instruction sets the lowest threshold of performance parameter, this method also includes:
The user that instruction is identified as user is not provided with the lowest threshold of performance parameter, obtains the current statistic cycle and all does not set
The user for putting the lowest threshold of performance parameter scheduler object by default;
The corresponding relation that scheduler object establishes user and scheduler object is identified and given tacit consent to according to user.
Optionally, after the corresponding relation of user and scheduler object is established according to user's mark and acquiescence scheduler object,
This method also includes:
The resource capability weight Q of acquiescence scheduler object, default resource ability are determined according to default resource ability weight equation
Weight equation includes:
Q=P × D/ (1-D), P > 0;
Q=S, P=0;
Wherein, P is the resource capability of the every other scheduler object in addition to scheduler object is given tacit consent in the current statistic cycle
Weight sum, D are the default percentage for allowing acquiescence scheduler object to occupy resource capability, and S is default resource capability weighted value;
According to acquiescence scheduler object and the resource capability weight for giving tacit consent to scheduler object, establish scheduler object and weighed with resource capability
The corresponding relation of weight.
Optionally,
By inquiring about the corresponding relation of user and resource capability weight, the resource capability that user identifies the user of instruction is obtained
Weight, including:
Identified according to user, inquire about the corresponding relation of user and scheduler object, obtain scheduler object corresponding to user's mark
As the first scheduler object;
According to the first scheduler object, query scheduling object and the corresponding relation of resource capability weight, the first scheduling pair is obtained
As resource capability weight of the corresponding resource capability weight as user.
Optionally,
Scheduler object request to create is obtained, including:
When receiving user's request to create comprising user's mark, scheduler object request to create is obtained;
Or when receiving the performance parameter renewal request comprising user's mark, obtain scheduler object request to create;
Or when the resource request mean size change of the first two measurement period of the user of instruction is identified in user, obtain
Take scheduler object request to create.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.
Claims (27)
1. a kind of resource capability distribution method, it is characterised in that methods described includes:
Scheduler object request to create is obtained, the scheduler object request to create identifies including user;
When the user that the user identifies instruction sets the lowest threshold of performance parameter, newly-built scheduling pair is set for the user
As;
The resource capability weight of the newly-built scheduler object is determined according to the lowest threshold of the performance parameter;
The corresponding relation of user and scheduler object is established according to user mark and the newly-built scheduler object;
According to the resource capability weight of the newly-built scheduler object and the newly-built scheduler object, the scheduler object and money are established
The corresponding relation of source capability weight;
The resource request that user equipment is sent is received, the resource request identifies including user;
By inquiring about the corresponding relation of user and resource capability weight, the resource capability that the user identifies the user of instruction is obtained
Weight, the user and the corresponding relation of resource capability weight include:User and the corresponding relation of scheduler object, scheduler object with
The corresponding relation of resource capability weight;
It is the ser resource allocation ability that the user identifies instruction according to the resource capability weight of the user.
2. according to the method for claim 1, it is characterised in that after scheduler object request to create is obtained, methods described
Also include:
Judge that the user identifies the lowest threshold whether user indicated sets performance parameter.
3. resource capability distribution method according to claim 2, it is characterised in that the performance parameter include handling capacity and
Bandwidth,
It is described to judge that the user identifies the lowest threshold whether user indicated sets performance parameter, including:
Judge that the user identifies the lowest threshold whether user indicated sets the handling capacity;
Judge that the user identifies the lowest threshold whether user indicated sets the bandwidth;
At least one in the lowest threshold of the handling capacity and the lowest threshold of the bandwidth, judgement is provided with as the user
The user identifies lowest threshold of the user there is provided the performance parameter of instruction;
The lowest threshold of the handling capacity and the lowest threshold of the bandwidth are not provided with as the user, judges user's mark
The user of instruction is not provided with the lowest threshold of the performance parameter.
4. resource capability distribution method according to claim 3, it is characterised in that it is described according to the performance parameter most
Low threshold determines the resource capability weight of the newly-built scheduler object, including:
The user be provided with the handling capacity lowest threshold and the bandwidth lowest threshold when, according to the handling capacity
Lowest threshold obtain first resource ability weight;
Secondary resource ability weight is obtained according to the lowest threshold of the bandwidth;
The maximum in the first resource ability weight and the Secondary resource ability weight is obtained as the newly-built scheduling
The resource capability weight of object.
5. resource capability distribution method according to claim 3, it is characterised in that it is described according to the performance parameter most
Low threshold determines the resource capability weight of the newly-built scheduler object, including:
When the user is only provided with the lowest threshold of the handling capacity, first is obtained according to the lowest threshold of the handling capacity
Resource capability weight;
Resource capability weight using the first resource ability weight as the newly-built scheduler object;
When the user is only provided with the lowest threshold of the bandwidth, Secondary resource is obtained according to the lowest threshold of the bandwidth
Ability weight;
Resource capability weight using the Secondary resource ability weight as the newly-built scheduler object.
6. resource capability distribution method according to claim 4, it is characterised in that
It is described that first resource ability weight is obtained according to the lowest threshold of the handling capacity, including:
Using the lowest threshold of the handling capacity as the first resource ability weight;
It is described that Secondary resource ability weight is obtained according to the lowest threshold of the bandwidth, including:
The Secondary resource ability weight X is obtained according to Secondary resource ability weight equation, the Secondary resource ability weight is public
Formula is:
X=M/N;
Wherein, the M be the bandwidth lowest threshold, the N be previous measurement period resource request mean size, N
=W/Z, the W are the data volume of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Summation, the Z is the total of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Number.
7. resource capability distribution method according to claim 5, it is characterised in that
It is described that first resource ability weight is obtained according to the lowest threshold of the handling capacity, including:
Using the lowest threshold of the handling capacity as the first resource ability weight;
It is described that Secondary resource ability weight is obtained according to the lowest threshold of the bandwidth, including:
The Secondary resource ability weight X is obtained according to Secondary resource ability weight equation, the Secondary resource ability weight is public
Formula is:
X=M/N;
Wherein, the M be the bandwidth lowest threshold, the N be previous measurement period resource request mean size, N
=W/Z, the W are the data volume of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Summation, the Z is the total of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Number.
8. resource capability distribution method according to claim 4, it is characterised in that
It is described that first resource ability weight is obtained according to the lowest threshold of the handling capacity, including:
The first resource ability weight Y is obtained according to first resource ability weight formula, the first resource ability weight is public
Formula is:
Y=H × N;
Wherein, the H is the lowest threshold of the handling capacity, and the N is the resource request mean size of previous measurement period,
N=W/Z, the W are the data of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
The summation of amount, the Z are the total of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Number;
It is described that Secondary resource ability weight is obtained according to the lowest threshold of the bandwidth, including:
Using the lowest threshold of the bandwidth as the Secondary resource ability weight.
9. resource capability distribution method according to claim 5, it is characterised in that
It is described that first resource ability weight is obtained according to the lowest threshold of the handling capacity, including:
The first resource ability weight Y is obtained according to first resource ability weight formula, the first resource ability weight is public
Formula is:
Y=H × N;
Wherein, the H is the lowest threshold of the handling capacity, and the N is the resource request mean size of previous measurement period,
N=W/Z, the W are the data of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
The summation of amount, the Z are the total of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Number;
It is described that Secondary resource ability weight is obtained according to the lowest threshold of the bandwidth, including:
Using the lowest threshold of the bandwidth as the Secondary resource ability weight.
10. resource capability distribution method according to claim 2, it is characterised in that
After whether the user for judging user's mark instruction sets the lowest threshold of performance parameter, methods described is also
Including:
When the user of user mark instruction is not provided with the lowest threshold of the performance parameter, the acquisition current statistic cycle owns
It is not provided with the user of the lowest threshold of performance parameter scheduler object by default;
The corresponding relation of user and scheduler object is established according to user mark and the acquiescence scheduler object.
11. resource capability distribution method according to claim 10, it is characterised in that identified described according to the user
After establishing the corresponding relation of user and scheduler object with the acquiescence scheduler object, methods described also includes:
The resource capability weight Q of the acquiescence scheduler object, the default resource are determined according to default resource ability weight equation
Ability weight equation includes:
Q=P × D/ (1-D), P > 0;
Q=S, P=0;
Wherein, the P is the every other scheduler object in addition to the acquiescence scheduler object in the current statistic cycle
Resource capability weight sum, the D are the default percentage for allowing the acquiescence scheduler object to occupy resource capability, and S is pre-
If resource capability weighted value;
According to the resource capability weight of the acquiescence scheduler object and the acquiescence scheduler object, the scheduler object and money are established
The corresponding relation of source capability weight.
12. according to the method described in claim 1 to 11 any one claim, it is characterised in that
The corresponding relation by inquiring about user and resource capability weight, obtain the resource that the user identifies the user of instruction
Ability weight, including:
Identified according to the user, inquire about the corresponding relation of the user and scheduler object, obtained corresponding to user's mark
Scheduler object is as the first scheduler object;
According to first scheduler object, the corresponding relation of the scheduler object and resource capability weight is inquired about, obtains described the
Resource capability weight of the resource capability weight corresponding to one scheduler object as the user.
13. according to the method for claim 1, it is characterised in that
The acquisition scheduler object request to create, including:
When receiving user's request to create comprising user mark, scheduler object request to create is obtained;
Or when receiving the performance parameter renewal request comprising user mark, obtain scheduler object request to create;
Or when the resource request mean size change of the first two measurement period of the user of instruction is identified in the user, obtain
Take scheduler object request to create.
14. a kind of resource capability distributing equipment, it is characterised in that the resource capability distributing equipment includes:
Second acquisition unit, for obtaining scheduler object request to create, the scheduler object request to create identifies including user;
First setting unit, it is described when the user for identifying instruction in the user sets the lowest threshold of performance parameter
User sets newly-built scheduler object;
Second setting unit, for determining the resource capability of the newly-built scheduler object according to the lowest threshold of the performance parameter
Weight;
First establishes unit, for establishing pair of user and scheduler object according to user mark and the newly-built scheduler object
It should be related to;
Second establishes unit, for the resource capability weight according to the newly-built scheduler object and the newly-built scheduler object, builds
Found the scheduler object and the corresponding relation of resource capability weight;
Receiving unit, for receiving the resource request of user equipment transmission, the resource request identifies including user;
First acquisition unit, for the corresponding relation by inquiring about user and resource capability weight, obtain user's mark and refer to
The resource capability weight of the user shown, the user and the corresponding relation of resource capability weight include:User and scheduler object
Corresponding relation, scheduler object and the corresponding relation of resource capability weight;
Allocation unit, for being that the user identifies the user resource allocation energy indicated according to the resource capability weight of the user
Power.
15. resource capability distributing equipment according to claim 14, it is characterised in that the resource capability distributing equipment is also
Including:
Judging unit, for judging that the user identifies the lowest threshold whether user indicated sets performance parameter.
16. resource capability distributing equipment according to claim 15, it is characterised in that the performance parameter includes handling capacity
And bandwidth,
The judging unit, including:
First judge module, for judging that the user identifies the lowest threshold whether user indicated sets the handling capacity;
Second judge module, for judging that the user identifies the lowest threshold whether user indicated sets the bandwidth;
3rd judge module, for being provided with the lowest threshold of the handling capacity and the lowest threshold of the bandwidth in the user
In it is at least one when, judge that the user identifies the user of instruction and is provided with the lowest threshold of the performance parameter;
4th judge module, for being not provided with the lowest threshold of the handling capacity and the lowest threshold of the bandwidth in the user
When, judge that the user identifies the lowest threshold that the user indicated is not provided with the performance parameter.
17. resource capability distributing equipment according to claim 16, it is characterised in that second setting unit, including:
First acquisition module, for being provided with the lowest threshold of the handling capacity and the lowest threshold of the bandwidth in the user
When, first resource ability weight is obtained according to the lowest threshold of the handling capacity;
Second acquisition module, for obtaining Secondary resource ability weight according to the lowest threshold of the bandwidth;
3rd acquisition module, for obtaining the maximum in the first resource ability weight and the Secondary resource ability weight
Resource capability weight as the newly-built scheduler object.
18. resource capability distributing equipment according to claim 16, it is characterised in that
First acquisition module, including:
First acquisition submodule, for when the user is only provided with the lowest threshold of the handling capacity, being handled up according to described
The lowest threshold of amount obtains first resource ability weight;
First processing submodule, for being weighed the first resource ability weight as the resource capability of the newly-built scheduler object
Weight;
Second acquisition module, including:
Second acquisition submodule, for the user only be provided with the bandwidth lowest threshold when, according to the bandwidth
Lowest threshold obtains Secondary resource ability weight;
Second processing submodule, for being weighed the Secondary resource ability weight as the resource capability of the newly-built scheduler object
Weight.
19. resource capability distributing equipment according to claim 17, it is characterised in that
First acquisition submodule, for using the lowest threshold of the handling capacity as the first resource ability weight;
Second acquisition submodule, for obtaining the Secondary resource ability weight X according to Secondary resource ability weight equation,
The Secondary resource ability weight equation is:
X=M/N;
Wherein, the M be the bandwidth lowest threshold, the N be previous measurement period resource request mean size, N
=W/Z, the W are the data volume of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Summation, the Z is the total of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Number.
20. resource capability distributing equipment according to claim 18, it is characterised in that
First acquisition submodule, for using the lowest threshold of the handling capacity as the first resource ability weight;
Second acquisition submodule, for obtaining the Secondary resource ability weight X according to Secondary resource ability weight equation,
The Secondary resource ability weight equation is:
X=M/N;
Wherein, the M be the bandwidth lowest threshold, the N be previous measurement period resource request mean size, N
=W/Z, the W are the data volume of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Summation, the Z is the total of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Number.
21. resource capability distributing equipment according to claim 17, it is characterised in that
First acquisition submodule, for obtaining the first resource ability weight Y according to first resource ability weight formula,
The first resource ability weight formula is:
Y=H × N;
Wherein, the H is the lowest threshold of the handling capacity, and the N is the resource request mean size of previous measurement period,
N=W/Z, the W are the data of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
The summation of amount, the Z are the total of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Number;
Second acquisition submodule, for using the lowest threshold of the bandwidth as the Secondary resource ability weight.
22. resource capability distributing equipment according to claim 18, it is characterised in that
First acquisition submodule, for obtaining the first resource ability weight Y according to first resource ability weight formula,
The first resource ability weight formula is:
Y=H × N;
Wherein, the H is the lowest threshold of the handling capacity, and the N is the resource request mean size of previous measurement period,
N=W/Z, the W are the data of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
The summation of amount, the Z are the total of the resource request of user corresponding to newly-built scheduler object described in the previous measurement period
Number;
Second acquisition submodule, for using the lowest threshold of the bandwidth as the Secondary resource ability weight.
23. resource capability distributing equipment according to claim 15, it is characterised in that
The resource capability distributing equipment also includes:
3rd acquiring unit, when the user for identifying instruction in the user is not provided with the lowest threshold of the performance parameter,
Obtain user's scheduler object by default of current statistic cycle all lowest thresholds for being not provided with the performance parameter;
3rd establishes unit, for establishing pair of user and scheduler object according to user mark and the acquiescence scheduler object
It should be related to.
24. resource capability distributing equipment according to claim 23, it is characterised in that
The resource capability distributing equipment also includes:
Determining unit, for determining the resource capability weight Q of the acquiescence scheduler object according to default resource ability weight equation,
The default resource ability weight equation includes:
Q=P × D/ (1-D), P > 0;
Q=S, P=0;
Wherein, the P is the every other scheduler object in addition to the acquiescence scheduler object in the current statistic cycle
Resource capability weight sum, the D are the default percentage for allowing the acquiescence scheduler object to occupy resource capability, and S is pre-
If resource capability weighted value;
4th establishes unit, for the resource capability weight according to the acquiescence scheduler object and the acquiescence scheduler object, builds
Found the scheduler object and the corresponding relation of resource capability weight.
25. according to the equipment described in claim 14 to 24 any one claim, it is characterised in that
The first acquisition unit, including:
4th acquisition module, for being identified according to the user, the corresponding relation of the user and scheduler object is inquired about, obtains institute
Scheduler object corresponding to user's mark is stated as the first scheduler object;
5th acquisition module, for according to first scheduler object, inquiring about pair of the scheduler object and resource capability weight
It should be related to, obtain the resource that resource capability weight corresponding to first scheduler object identifies the user of instruction as the user
Ability weight.
26. equipment according to claim 14, it is characterised in that
The second acquisition unit, including:
6th acquisition module, for when receiving user's request to create comprising user mark, obtaining scheduler object wound
Build request;
Or when receiving the performance parameter renewal request comprising user mark, obtain scheduler object request to create;
Or when the resource request mean size change of the first two measurement period of the user of instruction is identified in the user, obtain
Take scheduler object request to create.
A kind of 27. resource capability distributing equipment, it is characterised in that including:Central processing unit and memory;The central processing unit
Pass through bus communication with the memory;The memory storage computer executed instructions;Described in the central processing unit performs
Computer executed instructions, any described methods of 1-13 are required for perform claim.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410476151.4A CN104301944B (en) | 2014-09-17 | 2014-09-17 | Resource capability distribution method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410476151.4A CN104301944B (en) | 2014-09-17 | 2014-09-17 | Resource capability distribution method and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104301944A CN104301944A (en) | 2015-01-21 |
CN104301944B true CN104301944B (en) | 2018-02-13 |
Family
ID=52321459
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410476151.4A Active CN104301944B (en) | 2014-09-17 | 2014-09-17 | Resource capability distribution method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104301944B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106899521B (en) * | 2016-08-30 | 2020-07-03 | 阿里巴巴集团控股有限公司 | Internet resource scheduling method and device |
CN109274729B (en) * | 2018-09-04 | 2021-06-29 | 中国人民大学 | Adaptive method for multi-tenant-oriented resource isolation of hybrid storage device |
CN111225050B (en) * | 2020-01-02 | 2022-10-18 | 中国神华能源股份有限公司神朔铁路分公司 | Cloud computing resource allocation method and device |
CN116893903B (en) * | 2023-09-11 | 2023-12-08 | 北京格尔国信科技有限公司 | Encryption resource allocation method, system, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100717846B1 (en) * | 2005-12-09 | 2007-05-14 | 한국전자통신연구원 | Dynamic resource allocation apparatus for furnishing good quality of service in interactive satellite multimedia system and its method |
CN101170834A (en) * | 2007-12-06 | 2008-04-30 | 华为技术有限公司 | Resource distributing method and device |
CN101938838A (en) * | 2009-07-02 | 2011-01-05 | 中兴通讯股份有限公司 | Service quality base system resource allocation method and device |
CN101562842B (en) * | 2008-04-16 | 2011-05-04 | 大唐移动通信设备有限公司 | Method, system and device for resource allocation |
CN102752805A (en) * | 2012-06-21 | 2012-10-24 | 中国科学院计算技术研究所 | Radio resource distributing method and system based on business satisfaction degree |
CN103338486A (en) * | 2012-12-27 | 2013-10-02 | 上海华为技术有限公司 | Method and system for bandwidth allocation |
-
2014
- 2014-09-17 CN CN201410476151.4A patent/CN104301944B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100717846B1 (en) * | 2005-12-09 | 2007-05-14 | 한국전자통신연구원 | Dynamic resource allocation apparatus for furnishing good quality of service in interactive satellite multimedia system and its method |
CN101170834A (en) * | 2007-12-06 | 2008-04-30 | 华为技术有限公司 | Resource distributing method and device |
CN101562842B (en) * | 2008-04-16 | 2011-05-04 | 大唐移动通信设备有限公司 | Method, system and device for resource allocation |
CN101938838A (en) * | 2009-07-02 | 2011-01-05 | 中兴通讯股份有限公司 | Service quality base system resource allocation method and device |
CN102752805A (en) * | 2012-06-21 | 2012-10-24 | 中国科学院计算技术研究所 | Radio resource distributing method and system based on business satisfaction degree |
CN103338486A (en) * | 2012-12-27 | 2013-10-02 | 上海华为技术有限公司 | Method and system for bandwidth allocation |
Also Published As
Publication number | Publication date |
---|---|
CN104301944A (en) | 2015-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105718479B (en) | Execution strategy generation method and device under cross-IDC big data processing architecture | |
CN104301944B (en) | Resource capability distribution method and equipment | |
CN104901989B (en) | A kind of Site Service offer system and method | |
CN104202220B (en) | Method for testing pressure and device | |
CN102722577B (en) | The determination method and device of index changeable weight | |
CN109981744B (en) | Data distribution method and device, storage medium and electronic equipment | |
CN111176840B (en) | Distribution optimization method and device for distributed tasks, storage medium and electronic device | |
WO2020164476A1 (en) | Data downloading method and related apparatus | |
CN111600967A (en) | Access pressure-based load balancing system among block chain nodes | |
CN110838031A (en) | Data operation method and device based on ABtest | |
CN110049474A (en) | A kind of wireless resource allocation methods, device and base station | |
CN112020098A (en) | Load balancing method and device, computing equipment and computer storage medium | |
CN103889000B (en) | A kind of method for channel allocation and device | |
CN111147330A (en) | Network quality evaluation method and device, storage medium and processor | |
CN106055561A (en) | Method and device for preventing vicious operation of network user | |
CN109347982A (en) | A kind of dispatching method and device of data center | |
CN110753117B (en) | Computing migration method giving consideration to privacy protection under wireless metropolitan area network environment | |
CN109120548A (en) | A kind of flow control methods and device | |
CN112492591A (en) | Method and device for accessing power Internet of things terminal to network | |
CN106850822A (en) | Load-balancing method, equipment and distributed system | |
CN105302808B (en) | A kind of method and apparatus reducing load peak in user group matching process | |
CN116360704A (en) | Kernel parameter determining method and device, storage medium and electronic equipment | |
CN110290513A (en) | A kind of recognition methods and system for reentrying network users | |
CN110335032A (en) | Method for processing business and device | |
CN103096380B (en) | Wireless access point load balancing load balancing |
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 |