CN104301944A - Resource capacity allocation method and equipment - Google Patents
Resource capacity allocation method and equipment Download PDFInfo
- Publication number
- CN104301944A CN104301944A CN201410476151.4A CN201410476151A CN104301944A CN 104301944 A CN104301944 A CN 104301944A CN 201410476151 A CN201410476151 A CN 201410476151A CN 104301944 A CN104301944 A CN 104301944A
- 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.)
- Granted
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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses resource capacity allocation method and equipment, and belongs to the field of storage. The method includes the steps that a resource request sent by user equipment is received, and the resource request comprises user identification; by inquiring the corresponding relation between users and the resource capacity weights, the resource capacity weights of the users indicated by the user identification are obtained, and the resource capacity weights of all the users recorded in the corresponding relation of the users and the resource capacity weights are set according to the minimum threshold value of the performance parameters of the users; the resource capacity is allocated to the users indicted by the user identification according to the resource capacity weights of the users. By means of the resource capacity allocation method and equipment, the problem that the minimum performance requirement of the users cannot be guaranteed can be solved, and the effect of guaranteeing the minimum performance requirement of the users can be achieved.
Description
Technical field
The present invention relates to field of storage, particularly a kind of resource capability distribution method and equipment.
Background technology
Along with the develop rapidly of Internet technology, the demands of object to resource capability such as subscriber equipment, data flow, file and catalogue are increasing, when the object of request resource ability is very many, resource capability competition will be carried out between each object, scheduler is now just needed to carry out the scheduling of resource capability, realize the reasonable distribution of resource capability, wherein, resource capability comprises the capacity of resource and the performance of resource.
In prior art, the object being carried out resource capability distribution by scheduler is needed to can be described as user, scheduler carries out resource capability distribution according to the user resources ability weight pre-set usually, the resource capability that the user that resource capability weight is high obtains is many, and the resource capability that the user that resource capability weight is low obtains is few.Suppose that there are two users in resource capability distribution system is at war with to resource capability, the resource capability weight of first user is 2, the resource capability weight of the second user is 1, then when first user and the second user carry out resource capability competition, scheduler can be the resource capability of first user distribution 2/3, is the resource capability that the second user distributes 1/3.
When multiple user accesses same resource, the resource performance between each user requires may be different, and the minimum flow of such as a certain user requires as throughput is (English: Input/Output Per Second; Be called for short: IOPS) be not less than 1000 bps of (English: bits per second; Be called for short: bps), if carry out scheduling of resource according to existing resource capability distribution method, then can only be user resource allocation ability according to the resource capability weight pre-set, possibly cannot ensure the minimum resources performance requirement of user.
Summary of the invention
In order to solve the problem of the minimum performance requirement that cannot ensure user, the invention provides a kind of resource capability distribution method and equipment.Described technical scheme is as follows:
First aspect, provides a kind of resource capability distribution method, and described resource capability distribution method comprises:
Receive the resource request that subscriber equipment sends, described resource request comprises user ID;
By the corresponding relation of inquiring user and resource capability weight, obtain the resource capability weight of the user of described user ID instruction, the resource capability weight of each user recorded in the corresponding relation of described user and resource capability weight arranges according to the lowest threshold of the performance parameter of described user;
According to the user resource allocation ability that the resource capability weight of described user is the instruction of described user ID.
In conjunction with first aspect, can in implementation at the first,
The corresponding relation of described user and resource capability weight comprises: the corresponding relation of user and scheduler object, the corresponding relation of scheduler object and resource capability weight,
Before the resource request that described reception subscriber equipment sends, described method also comprises:
Obtain scheduler object request to create, described scheduler object request to create comprises user ID;
Judge whether user that described user ID indicates arranges the lowest threshold of performance parameter;
The user indicated when described user ID arranges the lowest threshold of described performance parameter, for described user arranges newly-built scheduler object;
The resource capability weight of described newly-built scheduler object is determined according to the lowest threshold of described performance parameter;
The corresponding relation of user and scheduler object is set up according to described user ID and described newly-built scheduler object;
According to the resource capability weight of described newly-built scheduler object and described newly-built scheduler object, set up the corresponding relation of described scheduler object and resource capability weight.
Can implementation in conjunction with the first, can in implementation at the second, described performance parameter comprises throughput and bandwidth,
Whether the described user judging that described user ID indicates arranges the lowest threshold of performance parameter, comprising:
Judge whether user that described user ID indicates arranges the lowest threshold of described throughput;
Judge whether user that described user ID indicates arranges the lowest threshold of described bandwidth;
When described user is provided with at least one in the lowest threshold of described throughput and the lowest threshold of described bandwidth, judge that user that described user ID indicates is provided with the lowest threshold of described performance parameter;
When described user does not arrange the lowest threshold of described throughput and the lowest threshold of described bandwidth, judge that user that described user ID indicates does not arrange the lowest threshold of described performance parameter.
Can implementation in conjunction with the second, can in implementation at the third, the described lowest threshold according to described performance parameter determines the resource capability weight of described newly-built scheduler object, comprising:
When described user is provided with the lowest threshold of the lowest threshold of described throughput and described bandwidth, obtain first resource ability weight according to the lowest threshold of described throughput;
Secondary resource ability weight is obtained according to the lowest threshold of described bandwidth;
Obtain the resource capability weight of the maximum in described first resource ability weight and described Secondary resource ability weight as described newly-built scheduler object.
Can implementation in conjunction with the second, can in implementation at the 4th kind, the described lowest threshold according to described performance parameter determines the resource capability weight of described newly-built scheduler object, comprising:
When described user is only provided with the lowest threshold of described throughput, obtain first resource ability weight according to the lowest threshold of described throughput;
Using the resource capability weight of described first resource ability weight as described newly-built scheduler object;
When described user is only provided with the lowest threshold of described bandwidth, obtain Secondary resource ability weight according to the lowest threshold of described bandwidth;
Using the resource capability weight of described Secondary resource ability weight as described newly-built scheduler object.
Can implementation in conjunction with the 3rd or the 4th kind, can in implementation at the 5th kind,
The described lowest threshold according to described throughput obtains first resource ability weight, comprising:
Using the lowest threshold of described throughput as described first resource ability weight;
The described lowest threshold according to described bandwidth obtains Secondary resource ability weight, comprising:
Obtain described Secondary resource ability weight X according to Secondary resource ability weight equation, described Secondary resource ability weight equation is:
X=M/N;
Wherein, described M is the lowest threshold of described bandwidth, described N is the resource request mean size of previous measurement period, N=W/Z, described W is the summation of the data volume of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period, and described Z is total number of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period.
Can implementation in conjunction with the 3rd or the 4th kind, can in implementation at the 6th kind,
The described lowest threshold according to described throughput obtains first resource ability weight, comprising:
Obtain described first resource ability weight Y according to first resource ability weight equation, described first resource ability weight equation is:
Y=H×N;
Wherein, described H is the lowest threshold of described throughput, described N is the resource request mean size of previous measurement period, N=W/Z, described W is the summation of the data volume of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period, and described Z is total number of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period;
The described lowest threshold according to described bandwidth obtains Secondary resource ability weight, comprising:
Using the lowest threshold of described bandwidth as described Secondary resource ability weight.
Can implementation in conjunction with the first, can in implementation at the 7th kind, after whether the described user judging that described user ID indicates arranges the lowest threshold of performance parameter, described method also comprises:
The user indicated when described user ID does not arrange the lowest threshold of described performance parameter, obtains current statistic cycle all user's scheduler objects by default not arranging the lowest threshold of described performance parameter;
The corresponding relation of user and scheduler object is set up according to described user ID and described acquiescence scheduler object.
Can implementation in conjunction with the 7th kind, can in implementation at the 8th kind, described set up the corresponding relation of user and scheduler object according to described user ID and described acquiescence scheduler object after, described method also comprises:
Determine the resource capability weight Q of described acquiescence scheduler object according to default resource ability weight equation, described default resource ability weight equation comprises:
Q=P×D/(1-D),P>0;
Q=S,P=0;
Wherein, described P is the resource capability weight sum of the every other scheduler object in the described current statistic cycle except described acquiescence scheduler object, described D is the percentage that the default described acquiescence scheduler object of permission occupies resource capability, and S is for presetting resource capability weighted value;
According to the resource capability weight of described acquiescence scheduler object and described acquiescence scheduler object, set up the corresponding relation of described scheduler object and resource capability weight.
In conjunction with the first to the 8th kind any one can implementation, can in implementation at the 9th kind, the described corresponding relation by inquiring user and resource capability weight, obtains the resource capability weight of the user of described user ID instruction, comprising:
According to described user ID, inquire about the corresponding relation of described user and scheduler object, obtain scheduler object corresponding to described user ID as the first scheduler object;
According to described first scheduler object, inquire about the corresponding relation of described scheduler object and resource capability weight, obtain the resource capability weight of the user that resource capability weight corresponding to described first scheduler object indicates as described user ID.
Can implementation in conjunction with the first, can in implementation at the tenth kind, described acquisition scheduler object request to create, comprising:
When receiving the user's request to create comprising described user ID, obtain scheduler object request to create;
Or, when receiving the performance parameter update request comprising described user ID, obtain scheduler object request to create;
Or, when the resource request mean size change of the first two measurement period of the user that described user ID indicates, obtain scheduler object request to create.
Second aspect, provides a kind of resource capability distributing equipment, and described resource capability distributing equipment comprises:
Receiving element, for receiving the resource request that subscriber equipment sends, described resource request comprises user ID;
First acquiring unit, for the corresponding relation by inquiring user and resource capability weight, obtain the resource capability weight of the user of described user ID instruction, the resource capability weight of each user recorded in the corresponding relation of described user and resource capability weight arranges according to the lowest threshold of the performance parameter of described user;
Allocation units, for according to the resource capability weight of described user being the user resource allocation ability of described user ID instruction.
In conjunction with second aspect, can in implementation at the first,
The corresponding relation of described user and resource capability weight comprises: the corresponding relation of user and scheduler object, the corresponding relation of scheduler object and resource capability weight,
Described resource capability distributing equipment also comprises:
Second acquisition unit, for obtaining scheduler object request to create, described scheduler object request to create comprises user ID;
Judging unit, for judging whether user that described user ID indicates arranges the lowest threshold of performance parameter;
First setting unit, when the user for indicating in described user ID arranges the lowest threshold of described performance parameter, for described user arranges newly-built scheduler object;
Second setting unit, for determining the resource capability weight of described newly-built scheduler object according to the lowest threshold of described performance parameter;
First sets up unit, for setting up the corresponding relation of user and scheduler object according to described user ID and described newly-built scheduler object;
Second sets up unit, for the resource capability weight according to described newly-built scheduler object and described newly-built scheduler object, sets up the corresponding relation of described scheduler object and resource capability weight.
Can implementation in conjunction with the first, can in implementation at the second, described performance parameter comprises throughput and bandwidth,
Described judging unit, comprising:
First judge module, for judging whether user that described user ID indicates arranges the lowest threshold of described throughput;
Second judge module, for judging whether user that described user ID indicates arranges the lowest threshold of described bandwidth;
3rd judge module, during for being provided with at least one in the lowest threshold of described throughput and the lowest threshold of described bandwidth described user, judges that user that described user ID indicates is provided with the lowest threshold of described performance parameter;
4th judge module, during for not arranging the lowest threshold of the lowest threshold of described throughput and described bandwidth described user, judges that user that described user ID indicates does not arrange the lowest threshold of described performance parameter.
Can implementation in conjunction with the second, can in implementation at the third, described second setting unit, comprising:
First acquisition module, during for being provided with the lowest threshold of the lowest threshold of described throughput and described bandwidth described user, obtains first resource ability weight according to the lowest threshold of described throughput;
Second acquisition module, for obtaining Secondary resource ability weight according to the lowest threshold of described bandwidth;
3rd acquisition module, for obtaining the resource capability weight of the maximum in described first resource ability weight and described Secondary resource ability weight as described newly-built scheduler object.
Can implementation in conjunction with the second, can in implementation at the 4th kind,
Described first acquisition module, comprising:
First obtains submodule, for when described user is only provided with the lowest threshold of described throughput, obtains first resource ability weight according to the lowest threshold of described throughput;
First process submodule, for using the resource capability weight of described first resource ability weight as described newly-built scheduler object;
Described second acquisition module, comprising:
Second obtains submodule, for when described user is only provided with the lowest threshold of described bandwidth, obtains Secondary resource ability weight according to the lowest threshold of described bandwidth;
Second process submodule, for using the resource capability weight of described Secondary resource ability weight as described newly-built scheduler object.
Can implementation in conjunction with the 3rd or the 4th kind, can in implementation at the 5th kind,
Described first obtain submodule, for using the lowest threshold of described throughput as described first resource ability weight;
Described second obtains submodule, and for obtaining described Secondary resource ability weight X according to Secondary resource ability weight equation, described Secondary resource ability weight equation is:
X=M/N;
Wherein, described M is the lowest threshold of described bandwidth, described N is the resource request mean size of previous measurement period, N=W/Z, described W is the summation of the data volume of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period, and described Z is total number of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period.
Can implementation in conjunction with the 3rd or the 4th kind, can in implementation at the 6th kind,
Described first obtains submodule, and for obtaining described first resource ability weight Y according to first resource ability weight equation, described first resource ability weight equation is:
Y=H×N;
Wherein, described H is the lowest threshold of described throughput, described N is the resource request mean size of previous measurement period, N=W/Z, described W is the summation of the data volume of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period, and described Z is total number of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period;
Described second obtain submodule, for using the lowest threshold of described bandwidth as described Secondary resource ability weight.
Can implementation in conjunction with the first, can in implementation at the 7th kind,
Described resource capability distributing equipment also comprises:
3rd acquiring unit, when the user for indicating in described user ID does not arrange the lowest threshold of described performance parameter, obtains current statistic cycle all user's scheduler objects by default not arranging the lowest threshold of described performance parameter;
3rd sets up unit, for setting up the corresponding relation of user and scheduler object according to described user ID and described acquiescence scheduler object.
Can implementation in conjunction with the 7th kind, can in implementation at the 8th kind,
Described resource capability distributing equipment also comprises:
Determining unit, for determining the resource capability weight Q of described acquiescence scheduler object according to default resource ability weight equation, described default resource ability weight equation comprises:
Q=P×D/(1-D),P>0;
Q=S,P=0;
Wherein, described P is the resource capability weight sum of the every other scheduler object in the described current statistic cycle except described acquiescence scheduler object, described D is the percentage that the default described acquiescence scheduler object of permission occupies resource capability, and S is for presetting resource capability weighted value;
4th sets up unit, for the resource capability weight according to described acquiescence scheduler object and described acquiescence scheduler object, sets up the corresponding relation of described scheduler object and resource capability weight.
In conjunction with the first to the 8th kind any one can implementation, can in implementation at the 9th kind,
Described first acquiring unit, comprising:
4th acquisition module, for according to described user ID, inquires about the corresponding relation of described user and scheduler object, obtains scheduler object corresponding to described user ID as the first scheduler object;
5th acquisition module, for according to described first scheduler object, inquires about the corresponding relation of described scheduler object and resource capability weight, obtains the resource capability weight of the user that resource capability weight corresponding to described first scheduler object indicates as described user ID.
Can implementation in conjunction with the first, can in implementation at the tenth kind,
Described second acquisition unit, comprising:
6th acquisition module, for when receiving the user's request to create comprising described user ID, obtains scheduler object request to create;
Or, when receiving the performance parameter update request comprising described user ID, obtain scheduler object request to create;
Or, when the resource request mean size change of the first two measurement period of the user that described user ID indicates, obtain scheduler object request to create.
The third aspect, provides a kind of resource capability distributing equipment, comprising: central processing unit and memory; Described central processing unit and described memory pass through bus communication; Described memory stores computer executed instructions; Described central processing unit performs described computer executed instructions, requires the arbitrary described method of 1-11 for enforcement of rights.
The invention provides a kind of resource capability distribution method and equipment, owing to can determine the resource capability weight of user according to the lowest threshold of performance parameter, make the resource capability weighted associations of performance parameter and user, and according to the resource capability weight of user, for user resource allocation ability, therefore, in resource capability assigning process, the resource capability weight of user can be determined with reference to the lowest threshold of the performance parameter of user, thus ensure the minimum performance requirement of user.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of resource capability distribution method that the embodiment of the present invention provides;
Fig. 2 is the flow chart of the another kind of resource capability distribution method that the embodiment of the present invention provides;
Fig. 3 is a kind of flow chart setting up user and resource capability weight corresponding relation method that the embodiment of the present invention provides;
Fig. 4 is a kind of flow chart determining the method for newly-built scheduler object resource capability weight that the embodiment of the present invention provides;
Fig. 5 is the flow chart that another kind that the embodiment of the present invention provides determines the method for newly-built scheduler object resource capability weight;
Fig. 6 is the structural representation of a kind of resource capability distributing equipment that the embodiment of the present invention provides;
Fig. 7 is the structural representation of the another kind of resource capability distributing equipment that the embodiment of the present invention provides;
Fig. 8 is the structural representation of the judging unit of a kind of resource capability distributing equipment that the embodiment of the present invention provides;
Fig. 9 is the structural representation of the second setting unit of a kind of resource capability distributing equipment that the embodiment of the present invention provides;
Figure 10 is the structural representation of the first acquisition module of a kind of resource capability distributing equipment that the embodiment of the present invention provides;
Figure 11 is the structural representation of the second acquisition module of a kind of resource capability distributing equipment that the embodiment of the present invention provides;
The structural representation of another resource capability distributing equipment that Figure 12 embodiment of the present invention provides;
Figure 13 is the structural representation of the first acquiring unit of a kind of resource capability distributing equipment that the embodiment of the present invention provides;
Figure 14 is the structural representation of the second acquisition unit of a kind of resource capability distributing equipment that the embodiment of the present invention provides;
The structural representation of another resource capability distributing equipment that Figure 15 embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
The embodiment of the present invention provides a kind of resource capability distribution method, and as shown in Figure 1, the method comprises:
The resource request that step 101, reception subscriber equipment send, this resource request comprises user ID.
Step 102, corresponding relation by inquiring user and resource capability weight, obtain the resource capability weight of the user of user ID instruction, the resource capability weight of each user recorded in the corresponding relation of user and resource capability weight arranges according to the lowest threshold of the performance parameter of user.
Step 103, be the user resource allocation ability of this user ID instruction according to the resource capability weight of user.
In sum, the resource capability distribution method that the embodiment of the present invention provides, owing to can determine the resource capability weight of user according to the lowest threshold of performance parameter, make the resource capability weighted associations of performance parameter and user, and according to the resource capability weight of user, be this user resource allocation ability.Therefore, in resource capability assigning process, the resource capability weight of user can be determined with reference to the lowest threshold of the performance parameter of user, thus ensure the minimum performance requirement of user.
It should be noted that, the corresponding relation of the user in step 102 and resource capability weight comprises: the corresponding relation of user and scheduler object, the corresponding relation of scheduler object and resource capability weight.Wherein, the relation of user and scheduler object comprises the relation of user and newly-built scheduler object, user and the relation giving tacit consent to scheduler object; The relation of scheduler object and resource capability weight comprises the relation of newly-built scheduler object and resource capability weight, the relation of acquiescence scheduler object and resource capability weight.
Further, before step 101, can also comprise: obtain scheduler object request to create, this scheduler object request to create comprises user ID; Judge whether user that user ID indicates arranges the lowest threshold of performance parameter; When the user of user ID instruction arranges the lowest threshold of performance parameter, for this user arranges newly-built scheduler object; The resource capability weight of this newly-built scheduler object is determined according to the lowest threshold of performance parameter; The corresponding relation of user and scheduler object is set up according to this user ID and this newly-built scheduler object; According to the resource capability weight of newly-built scheduler object and newly-built scheduler object, set up the corresponding relation of scheduler object and resource capability weight.
It should be noted that, the process obtaining scheduler object request to create can comprise: when receiving the user's request to create comprising user ID, obtains scheduler object request to create; Or, when receiving the performance parameter update request comprising user ID, obtain scheduler object request to create; Or, when the resource request mean size change of the first two measurement period of the user of user ID instruction, obtain scheduler object request to create.
Because performance parameter comprises throughput and bandwidth, then judge that the process whether user that user ID indicates arranges the lowest threshold of performance parameter can comprise: judge whether user that user ID indicates arranges the lowest threshold of throughput; Judge whether user that user ID indicates arranges the lowest threshold of bandwidth; When user is provided with at least one in the lowest threshold of throughput and the lowest threshold of bandwidth, judge that user that user ID indicates is provided with the lowest threshold of performance parameter; When user does not arrange the lowest threshold of throughput and the lowest threshold of bandwidth, judge that user that user ID indicates does not arrange the lowest threshold of performance parameter.
After judging whether user that user ID indicates arranges the lowest threshold of performance parameter, the method can also comprise: when the user of user ID instruction does not arrange the lowest threshold of performance parameter, obtain current statistic cycle all user's scheduler objects by default not arranging the lowest threshold of performance parameter; The corresponding relation of user and scheduler object is set up according to user ID and acquiescence scheduler object.
After setting up the corresponding relation of user and scheduler object according to user ID and acquiescence scheduler object, the method can also comprise:
Determine according to default resource ability weight equation the resource capability weight Q giving tacit consent to scheduler object, this default resource ability weight equation comprises: Q=P × D/ (1-D), P>0; Q=S, P=0; Wherein, P is the resource capability weight sum of the every other scheduler object in the current statistic cycle except acquiescence scheduler object, and D is the percentage that default permission acquiescence scheduler object occupies resource capability, and S is for presetting resource capability weighted value; According to acquiescence scheduler object and the resource capability weight of acquiescence scheduler object, set up the corresponding relation of scheduler object and resource capability weight.
Determine that the resource capability weight of newly-built scheduler object can comprise according to the lowest threshold of performance parameter: when user is provided with the lowest threshold of the lowest threshold of throughput and bandwidth, obtain first resource ability weight according to the lowest threshold of throughput; Secondary resource ability weight is obtained according to the lowest threshold of bandwidth; Obtain the resource capability weight of the maximum in first resource ability weight and Secondary resource ability weight as this newly-built scheduler object.
Determine the resource capability weight of newly-built scheduler object according to the lowest threshold of performance parameter, comprising: when user is only provided with the lowest threshold of throughput, obtain first resource ability weight according to the lowest threshold of throughput; Using the resource capability weight of first resource ability weight as newly-built scheduler object; When user is only provided with the lowest threshold of bandwidth, obtain Secondary resource ability weight according to the lowest threshold of bandwidth; Using the resource capability weight of Secondary resource ability weight as newly-built scheduler object.
Wherein, the acquisition methods of first resource ability weight and Secondary resource ability weight can have multiple, specific as follows:
First aspect, the method obtaining first resource ability weight can comprise: using the lowest threshold of throughput as first resource ability weight.The method obtaining Secondary resource ability weight can comprise: obtain Secondary resource ability weight X according to Secondary resource ability weight equation, Secondary resource ability weight equation is: X=M/N; Wherein, M is the lowest threshold of bandwidth, N is the resource request mean size of previous measurement period, N=W/Z, W is the summation of the data volume of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding, and Z is total number of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding.It should be noted that, the data volume of resource request refers to the actual size of data taken of this resource request itself, such as, resource request is read request, the actual size of data taken of this resource request itself is 1KB, this resource request is for asking the data reading 1MB, then the data volume of this resource request is 1KB.
Second aspect, the method obtaining first resource ability weight can comprise: obtain first resource ability weight Y according to first resource ability weight equation, first resource ability weight equation is: Y=H × N; Wherein, H is the lowest threshold of throughput, N is the resource request mean size of previous measurement period, N=W/Z, W is the summation of the data volume of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding, and Z is total number of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding.The method obtaining Secondary resource ability weight can comprise: using the lowest threshold of bandwidth as Secondary resource ability weight.
By the corresponding relation of inquiring user and resource capability weight, obtain the resource capability weight of the user of user ID instruction, can comprise: according to user ID, the corresponding relation of inquiring user and scheduler object, obtain scheduler object corresponding to user ID as the first scheduler object; According to the first scheduler object, the corresponding relation of query scheduling object and resource capability weight, obtains the resource capability weight of the user that resource capability weight corresponding to the first scheduler object indicates as user ID.
In sum, the resource capability distribution method that the embodiment of the present invention provides, owing to can determine the resource capability weight of user according to the lowest threshold of performance parameter, make the resource capability weighted associations of performance parameter and user, and according to the resource capability weight of user, be this user resource allocation ability.Therefore, in resource capability assigning process, the resource capability weight of user can be determined with reference to the lowest threshold of the performance parameter of user, thus ensure the minimum performance requirement of user.
The embodiment of the present invention provides a kind of resource capability distribution method, as shown in Figure 2, comprising:
The corresponding relation of user and resource capability weight set up by step 201, scheduler.Perform step 202.
Resource capability distributes by resource capability weight that scheduler is specified according to user between users, first needs to set up the corresponding relation between user and resource capability weight.The corresponding relation of this user and resource capability weight have recorded the relation of the resource capability weight of each user and this user, can comprise: the relation of user and scheduler object, the relation of scheduler object and resource capability weight.Wherein, the relation of user and scheduler object comprises the relation of user and newly-built scheduler object, user and the relation giving tacit consent to scheduler object; The relation of scheduler object and resource capability weight comprises the relation of newly-built scheduler object and resource capability weight, the relation of acquiescence scheduler object and resource capability weight.When the user of user ID instruction is provided with the lowest threshold of performance parameter, this user be newly-built scheduler object, and when the user of user ID instruction does not arrange the lowest threshold of performance parameter, this user is for giving tacit consent to scheduler object.
Example, the resource capability weight relationship table of table 1 corresponding to user 0 to user 7.Wherein, user 0 to user 3 correspondence acquiescence scheduler object, namely user 0 to user 3 does not arrange the lowest threshold of performance parameter.User is many-to-one relation with acquiescence scheduler object, and the resource capability weight that this acquiescence scheduler object is corresponding is W0.The corresponding newly-built scheduler object of user 4 to user 7, namely 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, i.e. 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, the corresponding newly-built scheduler object D of user 7.The resource capability weight of the newly-built scheduler object of user 4 to user 7 correspondence is W1, W2, W3 and W4 respectively.
The corresponding relation of table 1 user and resource capability weight
As shown in Figure 3, step 201 specifically comprises:
Step 2011, acquisition scheduler object request to create, scheduler object request to create comprises user ID.
Obtaining scheduler object request to create, comprising: when receiving the user's request to create comprising user ID, obtain scheduler object request to create; Or, when receiving the performance parameter update request comprising user ID, obtain scheduler object request to create; Or, when the resource request mean size change of the first two measurement period of the user of user ID instruction, obtain scheduler object request to create.
The identity recognition number that the user of can be scheduler the be each competitive resource ability of the user ID in scheduler object request to create distributes is (English: IDentity; Be called for short: ID), the ID that each scheduler object request to create correspondence one is unique.If the performance parameter of the user that certain ID originally existed in scheduler is corresponding changes, or the resource request mean size of the first two measurement period of user corresponding to certain ID is when changing, obtain scheduler object request to create, set up the corresponding relation between scheduler object corresponding to this ID and the resource capability weight of user, the corresponding relation before covering; If a new user needs competitive resource ability, obtain scheduler object request to create, scheduler distributes an ID to this user, sets up the corresponding relation between scheduler object corresponding to this ID and the resource capability weight of this new user.
Step 2012, judge whether user that user ID indicates arranges the lowest threshold of performance parameter.When the user of user ID instruction is provided with the lowest threshold of performance parameter, perform step 2013, when the lowest threshold that the user of user ID instruction does not arrange performance parameter, perform step 2017.
It should be noted that, this performance parameter can comprise throughput and bandwidth, resource capability is normally embodied by throughput or bandwidth, throughput refers to the data volume that physical link can pass through in the unit interval, can reflect that namely resource capability can determine the data volume of unit interval treatable resource request, the unit interval data volume of treatable resource request is larger, and resource capability is stronger; Bandwidth refers to the data volume that link can pass through in the unit interval, and can reflect that namely resource capability can determine the data volume of unit interval treatable resource request, the unit interval data volume of treatable resource request is larger, and resource capability is stronger.The unit of throughput and bandwidth is all bps.Therefore, scheduler judges whether user that user ID indicates arranges the lowest threshold of performance parameter, comprising: judge whether user that user ID indicates arranges the lowest threshold of throughput; Judge whether user that user ID indicates arranges the lowest threshold of bandwidth; When user is provided with at least one in the lowest threshold of throughput and the lowest threshold of bandwidth, scheduler judges that user that user ID indicates is provided with the lowest threshold of performance parameter; When user does not arrange the lowest threshold of throughput and the lowest threshold of bandwidth, scheduler judges that user that user ID indicates does not arrange the lowest threshold of performance parameter.
In actual applications, when the user of user ID instruction do not arrange in the lowest threshold of throughput and the lowest threshold of bandwidth any one, first need to obtain current statistic cycle all user's scheduler objects by default not arranging the lowest threshold of performance parameter, the corresponding relation of user and scheduler object is set up again according to user ID and acquiescence scheduler object, if the resource capability weight of acquiescence scheduler object does not change, the resource capability weight of the acquiescence scheduler object added up in previous measurement period can be obtained.Therefore step 2017 can be performed.
Step 2013, for user ID instruction user newly-built scheduler object is set.Perform step 2014.
When the user of user ID instruction is provided with the lowest threshold of performance parameter, the user indicated for this user ID arranges newly-built scheduler object.Example, as shown in table 1, suppose that the user ID of user 7 is ID7, user 7 is provided with the lowest threshold of performance parameter, think that the user 7 that ID7 indicates arranges newly-built scheduler object D.
Step 2014, determine the resource capability weight of newly-built scheduler object according to the lowest threshold of performance parameter.Perform step 2015.
On the one hand, scheduler can judge whether user that user ID indicates arranges the lowest threshold of throughput, and judges whether user that user ID indicates arranges the lowest threshold of bandwidth, according to the resource capability weight of judged result determination scheduler object.
In actual applications, when determining the resource capability weight of newly-built scheduler object, major parameter throughput can determined as resource capability weight, the major parameter also bandwidth can determined as resource capability weight.Example, as shown in Figure 4, when major parameter throughput determined as resource capability weight, determine that the process of the resource capability weight of newly-built scheduler object can comprise:
Step 2014a, judge whether user that user ID indicates arranges the lowest threshold of throughput, if the user of user ID instruction is provided with the lowest threshold of throughput, perform step 2014b, if the user of user ID instruction does not arrange the lowest threshold of throughput, perform step 2014c.
Step 2014b, using the lowest threshold of throughput as first resource ability weight.Perform step 2014c.
Step 2014c, judge whether user that user ID indicates arranges the lowest threshold of bandwidth, if the user of user ID instruction is provided with the lowest threshold of bandwidth, perform step 2014d, if the user of user ID instruction does not arrange the lowest threshold of bandwidth, perform step 2014e.
Step 2014d, obtain Secondary resource ability weight according to the lowest threshold of bandwidth, perform step 2014e.
Can obtain Secondary resource ability weight X according to Secondary resource ability weight equation, this Secondary resource ability weight equation is:
X=M/N;
Wherein, M is the lowest threshold of bandwidth, N is the resource request mean size of previous measurement period, N=W/Z, W is the summation of the data volume of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding, and Z is total number of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding.It should be noted that, in the embodiment of the present invention, resource capability assigning process periodically carries out, resource capability weight calculation formula is by periodically adding up bandwidth or throughput determines resource capability weight, and corresponding measurement period pre-sets according to the performance of resource capability distribution system.Common, a measurement period is 5 seconds.
Maximum in step 2014e, acquisition first resource ability weight and Secondary resource ability weight is as the resource capability weight of newly-built scheduler object.
In practical application, can judge whether user that user ID indicates only is provided with the lowest threshold of throughput, or judge whether user that user ID indicates only is provided with the lowest threshold of bandwidth, when user is only provided with the lowest threshold of throughput, first resource ability weight is obtained according to the lowest threshold of throughput, again using the resource capability weight of first resource ability weight as newly-built scheduler object, therefore can after execution step 2014b, directly perform 2014e, acquiescence Secondary resource ability weight is 0; When user is only provided with the lowest threshold of bandwidth, Secondary resource ability weight is obtained according to the lowest threshold of bandwidth, again using the resource capability weight of Secondary resource ability weight as newly-built scheduler object, therefore can directly perform step 2014c to step 2014e, acquiescence first resource ability weight is 0.
As shown in Figure 5, when major parameter bandwidth determined as resource capability weight, determine that the process of the resource capability weight of newly-built scheduler object comprises:
Step 2014A, judge whether user that user ID indicates arranges the lowest threshold of throughput, if the user of user ID instruction is provided with the lowest threshold of throughput, perform step 2014B, if the user of user ID instruction does not arrange the lowest threshold of throughput, perform step 2014C.
Step 2014B, obtain first resource ability weight according to the lowest threshold of throughput.Perform step 2014C.
Can obtain first resource ability weight Y according to first resource ability weight equation, this first resource ability weight equation is:
Y=H×N;
Wherein, H is the lowest threshold of throughput, N is the resource request mean size of previous measurement period, N=W/Z, W is the summation of the data volume of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding, and Z is total number of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding.
Step 2014C, judge whether user that user ID indicates arranges the lowest threshold of bandwidth, if the user of user ID instruction is provided with the lowest threshold of bandwidth, perform step 2014D, if the user of user ID instruction does not arrange the lowest threshold of bandwidth, perform step 2014E.
Step 2014D, using the lowest threshold of bandwidth as Secondary resource ability weight, perform step 2014E.
Maximum in step 2014E, acquisition first resource ability weight and Secondary resource ability weight is as the resource capability weight of newly-built scheduler object.
In practical application, can judge whether user that user ID indicates only is provided with the lowest threshold of throughput, or judge whether user that user ID indicates only is provided with the lowest threshold of bandwidth, when user is only provided with the lowest threshold of throughput, first resource ability weight is obtained according to the lowest threshold of throughput, again using the resource capability weight of first resource ability weight as newly-built scheduler object, therefore can after execution step 2014B, directly perform 2014E, acquiescence Secondary resource ability weight is 0; When user is only provided with the lowest threshold of bandwidth, Secondary resource ability weight is obtained according to the lowest threshold of bandwidth, again using the resource capability weight of Secondary resource ability weight as newly-built scheduler object, therefore can directly perform step 2014C to step 2014E, acquiescence first resource ability weight is 0.
Example, as shown in table 1, the resource capability weight of the newly-built scheduler object D determined according to the lowest threshold of performance parameter of the user 7 of ID7 instruction is W4.
Step 2015, set up the corresponding relation of user and scheduler object according to user ID and newly-built scheduler object.Perform step 2016.
Example, as shown in table 1, the relation of user 7 and newly-built scheduler object D is set up according to user ID ID7 and newly-built scheduler object D.
Step 2016, resource capability weight according to newly-built scheduler object and newly-built scheduler object, set up the corresponding relation of scheduler object and resource capability weight.
Example, as shown in table 1, the corresponding relation of newly-built scheduler object D and resource capability weights W 4 is set up according to the resource capability weights W 4 of newly-built scheduler object D and newly-built scheduler object D.
In actual applications, because the resource capability weight giving tacit consent to scheduler object calculates according to the resource capability weight sum of the every other scheduler object in the current statistic cycle except acquiescence scheduler object and newly-built scheduler object, therefore, when the resource capability weight of newly-built scheduler object changes, the resource capability weight of acquiescence scheduler object also should corresponding modify, need, again according to acquiescence scheduler object and the resource capability weight of acquiescence scheduler object, to set up the corresponding relation of scheduler object and resource capability weight.Therefore step 2017 can be performed.
Step 2017, acquisition current statistic cycle all user's scheduler objects by default that the lowest threshold of performance parameter is not set.
When user does not arrange the lowest threshold of throughput and the lowest threshold of bandwidth, scheduler judges that user that this user ID indicates does not arrange the lowest threshold of performance parameter, then the user's scheduler object by default this user ID indicated.Example, as the user 0 in table 1 is acquiescence scheduler object.
Step 2018, set up the corresponding relation of user and scheduler object according to user ID and acquiescence scheduler object.
It should be noted that, when the lowest threshold of the performance parameter that the user of user ID instruction is arranged changes, need the resource capability weight of the newly-built scheduler object revised corresponding to user, because the resource capability weight of acquiescence scheduler object is according in the current statistic cycle except the resource capability Weight Acquisition of the every other scheduler object given tacit consent to except scheduler object, therefore, the resource capability weight revising acquiescence scheduler object is also needed.
Example, as shown in table 1, suppose that the user ID of user 0 to user 3 is ID0, ID1, ID2 and ID3 respectively, set up user 0 to user 3 and the corresponding relation giving tacit consent to scheduler object according to ID0, ID1, ID2 and ID3, and be many-to-one relation.
Step 2019, determine to give tacit consent to the resource capability weight of scheduler object.
Determine according to default resource ability weight equation the resource capability weight Q giving tacit consent to scheduler object, default resource ability weight equation comprises:
Q=P×D/(1-D),P>0;
Q=S,P=0;
Wherein, P is the resource capability weight sum of the every other scheduler object in the current statistic cycle except acquiescence scheduler object, and D is the percentage that default permission acquiescence scheduler object occupies resource capability, and S is for presetting resource capability weighted value.
Example, as shown in table 1, the current statistic cycle, all users not arranging the lowest threshold of performance parameter were user 0 to user 3, so by user 0 to user 3 scheduler object by default, determined that the resource capability weight of this acquiescence scheduler object is W0 according to default resource ability weight equation.When the resource capability weight of newly-built scheduler object corresponding to any one user of user 4 to user 7 is modified, the resource capability weights W 0 of acquiescence scheduler object also can correspondingly be modified.
In actual applications, if the resource capability weight of acquiescence scheduler object does not change, the resource capability weight of the acquiescence scheduler object added up in previous measurement period can be obtained.
Step 2020, according to acquiescence scheduler object with acquiescence scheduler object resource capability weight, set up the corresponding relation of scheduler object and resource capability weight.
Example, as shown in table 1, the acquiescence scheduler object that user ID ID0, ID1, ID2 and ID3 are corresponding and resource capability weights W 0, set up the corresponding relation of acquiescence scheduler object and resource capability weights W 0.
Step 202, scheduler receive the resource request that subscriber equipment sends, and this resource request comprises user ID.
When subscriber equipment needs resource capability, subscriber equipment can to the request of scheduler dispatches resource capability, to ask the resource capability needed.This user can be that real terminal use, data flow, file, catalogue or LUN are (English: Logical Unit Number; Be called for short: LUN) etc.This resource can be network, central processing unit (English: Central Processing Unit; Be called for short: any one CPU), in storage system and distributed system, wherein, storage system comprises: hardware memory system and internal memory, this hardware memory system can be one or more hard disk, and resource capability refers to the bandwidth or throughput capabilities etc. of the bandwidth ability of network, the disposal ability of CPU, storage system and distributed system.The identification number ID that the user of can be scheduler the be each competitive resource ability of the user ID in resource request distributes.
Step 203, scheduler, by the corresponding relation of inquiring user and resource capability weight, obtain the resource capability weight of the user of this user ID instruction.
The resource capability weight of each user recorded in the corresponding relation of user and resource capability weight arranges according to the lowest threshold of the performance parameter of user.
The corresponding relation of user and resource capability weight comprises: the corresponding relation of user and scheduler object, the corresponding relation of scheduler object and resource capability weight.The relation of user and scheduler object comprises the relation of user and newly-built scheduler object, user and the relation giving tacit consent to scheduler object; The relation of scheduler object and resource capability weight comprises the relation of newly-built scheduler object and resource capability weight, the relation of acquiescence scheduler object and resource capability weight.
Accordingly, step 203 specifically can comprise:
According to user ID, the corresponding relation of inquiring user and scheduler object, obtains scheduler object corresponding to user ID as the first scheduler object; According to the first scheduler object, the corresponding relation of query scheduling object and resource capability weight, obtains the resource capability weight of the user that resource capability weight corresponding to the first scheduler object indicates as user ID.
Example, as shown in table 1, if the user ID of user 4 is ID4, according to the user ID ID4 of user 4, the corresponding relation of inquiring user 4 and scheduler object, namely the first row of table 1 and secondary series, obtain scheduler object A corresponding to user ID ID4 as the first scheduler object; According to the first scheduler object A, the corresponding relation of query scheduling object and resource capability weight, namely the secondary series and the 3rd of table 1 arranges, and obtains the resource capability weight of the user 4 that resource capability weights W 1 corresponding to the first scheduler object A indicates as user ID ID4.
Step 204, scheduler are the user resource allocation ability of this user ID instruction according to the resource capability weight of user.
When the user of user ID instruction is provided with the lowest threshold of performance parameter, i.e. the corresponding newly-built scheduler object of this user, the resource capability weight obtaining the user of user ID instruction according to step 2014 is this user resource allocation ability; When the user of user ID instruction does not arrange the lowest threshold of performance parameter, this user's correspondence acquiescence scheduler object i.e., the resource capability weight obtaining the user of user ID instruction according to step 2019 is this user resource allocation ability, because acquiescence scheduler object may be made up of multiple user, be then after the user resource allocation ability that acquiescence scheduler object is corresponding, the resource capability of each user in this acquiescence scheduler object can distribute according to the rule preset, and the embodiment of the present invention does not limit this.
Especially, the user in the embodiment of the present invention can be any one in multiple subscriber equipment, multiple data flow, multiple file, multiple catalogue and multiple LUN.
Adopt the resource capability distribution method that the embodiment of the present invention provides, due to the resource capability weight according to user, for the user resource allocation ability of user ID instruction, and the resource capability weight of user is determined according to performance parameter, then when resource capability is sufficient, can ensure the minimum performance requirement of user, the resource capability that the user that namely resource capability weight is high is assigned with is many, and the resource capability that the user that resource capability weight is low is assigned with is few; When resource capability is not enough, user can be punished liberally, and the resource capability reduced when user's Relative resource ability that namely resource capability weight is high is sufficient is many, and the resource capability reduced when user's Relative resource ability that resource capability weight is low is sufficient is few.Example, suppose in resource capability distribution system, there is user A and user B carries out resource capability competition, the minimum IOPS of user A requires as 1200bps, the minimum IOPS of user B requires as 600bps, the resource capability weight of the newly-built scheduler object so corresponding to user A is 1200, the resource capability weight of the newly-built scheduler object corresponding to user B is 600, if system allows acquiescence, scheduler object occupies 10% of resource capability, then give tacit consent to the resource capability weight of scheduler object for [(1200+600) × 10%]/90%=200, so as the resource capability >2000 of system, namely when resource capability is sufficient, the resource capability distributed for user A is 1200bps, the resource capability distributed for user B is 600bps, the minimum performance requirement of user A and user B can be ensured simultaneously, when the resource capability of system is 1000bps, namely when resource capability is not enough, the resource capability distributed for user A is 600bps, the resource capability distributed for user B is 300bps, the minimum performance requirement of user A and user B cannot be ensured, but time sufficient relative to resource, the resource capability distributed for user A decreases 600bps, the resource capability distributed for user B decreases 300bps, the resource capability of user's punishment that the user that namely minimum performance requirement is high is lower than minimum performance requirement is many, belongs to fair punishment.
In sum, the resource capability distribution method that the embodiment of the present invention provides, owing to can determine the resource capability weight of user according to the lowest threshold of performance parameter, make the resource capability weighted associations of performance parameter and user, and according to the resource capability weight of user, be this user resource allocation ability.Therefore, in resource capability assigning process, the resource capability weight of user can be determined with reference to the lowest threshold of the performance parameter of user, thus ensure the minimum performance requirement of user.
The embodiment of the present invention provides a kind of resource capability distributing equipment 70, and this resource capability distributing equipment 70 can be scheduler, and as shown in Figure 6, this resource capability distributing equipment 70 comprises:
Receiving element 701, the first acquiring unit 702 and allocation units 703.
Receiving element 701, for receiving the resource request that subscriber equipment sends, resource request comprises user ID.
First acquiring unit 702, for the corresponding relation of inquiring user and resource capability weight, obtain the resource capability weight of the user of user ID instruction, the resource capability weight of each user recorded in the corresponding relation of user and resource capability weight arranges according to the lowest threshold of the performance parameter of this user.
Allocation units 703, for according to the resource capability weight of user being the user resource allocation ability of user ID instruction.
In sum, the resource capability distributing equipment that the embodiment of the present invention provides, because the first acquiring unit can determine the resource capability weight of user according to the lowest threshold of performance parameter, make the resource capability weighted associations of performance parameter and user, thus make allocation units according to the resource capability weight of user, be this user resource allocation ability.Therefore, in resource capability assigning process, the resource capability weight of user can be determined with reference to the lowest threshold of the performance parameter of user, thus ensure the minimum performance requirement of user.
The embodiment of the present invention provides another kind of resource capability distributing equipment 70, and this resource capability distributing equipment 70 can be scheduler, and as shown in Figure 7, this resource capability distributing equipment 70 comprises:
Receiving element 701, the first acquiring unit 702, allocation units 703, second acquisition unit 704, judging unit 705, the first setting unit 706, second setting unit 707, the first sets up unit 708, and second sets up unit 709.
Receiving element 701, for receiving the resource request that subscriber equipment sends, resource request comprises user ID.
First acquiring unit 702, for the corresponding relation by inquiring user and resource capability weight, obtain the resource capability weight of the user of user ID instruction, the resource capability weight of each user recorded in the corresponding relation of user and resource capability weight arranges according to the lowest threshold of the performance parameter of this user.
Allocation units 703, for according to the resource capability weight of user being the user resource allocation ability of user ID instruction.
Second acquisition unit 704, for obtaining scheduler object request to create, scheduler object request to create comprises user ID.
Judging unit 705, for judging whether user that user ID indicates arranges the lowest threshold of performance parameter.
First setting unit 706, when the user for indicating in user ID arranges the lowest threshold of performance parameter, for user arranges newly-built scheduler object.
Second setting unit 707, for determining the resource capability weight of newly-built scheduler object according to the lowest threshold of performance parameter.
First sets up unit 708, for setting up the corresponding relation of user and scheduler object according to user ID and newly-built scheduler object.
Second sets up unit 709, for the resource capability weight according to newly-built scheduler object and newly-built scheduler object, sets up the corresponding relation of scheduler object and resource capability weight.
It should be noted that, this performance parameter comprises throughput and bandwidth, and as shown in Figure 8, this judging unit 705, comprising:
First judge module 7051, second judge module 7052, the 3rd judge module 7053 and the 4th judge module 7054.
First judge module 7051, for judging whether user that user ID indicates arranges the lowest threshold of throughput.
Second judge module 7052, for judging whether user that user ID indicates arranges the lowest threshold of bandwidth.
3rd judge module 7053, during for being provided with at least one in the lowest threshold of throughput and the lowest threshold of bandwidth user, judges that user that user ID indicates is provided with the lowest threshold of performance parameter.
4th judge module 7054, during for not arranging the lowest threshold of the lowest threshold of throughput and bandwidth user, judges that user that user ID indicates does not arrange the lowest threshold of performance parameter.
As shown in Figure 9, the second setting unit 707, comprising:
First acquisition module 7071, second acquisition module 7072 and the 3rd acquisition module 7073.
First acquisition module 7071, during for being provided with the lowest threshold of the lowest threshold of throughput and bandwidth user, obtains first resource ability weight according to the lowest threshold of throughput.
Second acquisition module 7072, for obtaining Secondary resource ability weight according to the lowest threshold of bandwidth.
3rd acquisition module 7073, for obtaining the resource capability weight of the maximum in first resource ability weight and Secondary resource ability weight as newly-built scheduler object.
As shown in Figure 10, the first acquisition module 7071, comprising:
First obtains submodule 70711 and the first process submodule 70712.
First obtains submodule, for when user is only provided with the lowest threshold of throughput, obtains first resource ability weight according to the lowest threshold of throughput.
First process submodule, for using the resource capability weight of first resource ability weight as newly-built scheduler object.
As shown in figure 11, the second acquisition module 7072, comprising:
Second obtains submodule 70721 and the second process submodule 70722.
Second obtains submodule 70721, for when user is only provided with the lowest threshold of bandwidth, obtains Secondary resource ability weight according to the lowest threshold of bandwidth.
Second process submodule 70722, for using the resource capability weight of Secondary resource ability weight as newly-built scheduler object.
On the one hand, first obtain submodule 70711, for using the lowest threshold of throughput as first resource ability weight.
Second obtains submodule 70721, and for obtaining Secondary resource ability weight X according to Secondary resource ability weight equation, Secondary resource ability weight equation is:
X=M/N;
Wherein, M is the lowest threshold of bandwidth, N is the resource request mean size of previous measurement period, N=W/Z, W is the summation of the data volume of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding, and Z is total number of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding.
On the other hand, first obtains submodule 70711, and for obtaining first resource ability weight Y according to first resource ability weight equation, first resource ability weight equation is:
Y=H×N;
Wherein, H is the lowest threshold of throughput, N is the resource request mean size of previous measurement period, N=W/Z, W is the summation of the data volume of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding, and Z is total number of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding.
Second obtain 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, and as shown in figure 12, this resource capability distributing equipment 70 comprises:
Receiving element 701, the first acquiring unit 702, allocation units 703, second acquisition unit 704, judging unit 705, the first setting unit 706, second setting unit 707, first sets up unit 708, second sets up unit 709, and the 3rd acquiring unit the 710, three sets up unit 711, determining unit 712, the 4th sets up unit 713.
Receiving element 701, for receiving the resource request that subscriber equipment sends, resource request comprises user ID.
First acquiring unit 702, for the corresponding relation by inquiring user and resource capability weight, obtain the resource capability weight of the user of user ID instruction, the resource capability weight of each user recorded in the corresponding relation of user and resource capability weight arranges according to the lowest threshold of the performance parameter of this user.
Allocation units 703, for according to the resource capability weight of user being the user resource allocation ability of user ID instruction.
Second acquisition unit 704, for obtaining scheduler object request to create, scheduler object request to create comprises user ID.
Judging unit 705, for judging whether user that user ID indicates arranges the lowest threshold of performance parameter.
First setting unit 706, when the user for indicating in user ID arranges the lowest threshold of performance parameter, for user arranges newly-built scheduler object.
Second setting unit 707, for determining the resource capability weight of newly-built scheduler object according to the lowest threshold of performance parameter.
First sets up unit 708, for setting up the corresponding relation of user and scheduler object according to user ID and newly-built scheduler object.
Second sets up unit 709, for the resource capability weight according to newly-built scheduler object and newly-built scheduler object, sets up the corresponding relation of scheduler object and resource capability weight.
3rd acquiring unit 710, when the user for indicating in user ID does not arrange the lowest threshold of performance parameter, obtains current statistic cycle all user's scheduler objects by default not arranging the lowest threshold of performance parameter.
3rd sets up unit 711, for setting up the corresponding relation of user and scheduler object according to user ID and acquiescence scheduler object.
Determining unit 712, for determining the resource capability weight Q giving tacit consent to scheduler object according to default resource ability weight equation, this default resource ability weight equation comprises:
Q=P×D/(1-D),P>0;
Q=S,P=0;
Wherein, P is the resource capability weight sum of the every other scheduler object in the current statistic cycle except acquiescence scheduler object, and D is the percentage that default permission acquiescence scheduler object occupies resource capability, and S is for presetting resource capability weighted value.
4th sets up unit 713, according to acquiescence scheduler object and the resource capability weight of acquiescence scheduler object, sets up the corresponding relation of scheduler object and resource capability weight.
It should be noted that, as shown in figure 13, the first acquiring unit 702, comprising:
4th acquisition module 7021 and the 5th acquisition module 7022.
4th acquisition module 7021, for according to user ID, the corresponding relation of inquiring user and scheduler object, obtains scheduler object corresponding to user ID as the first scheduler object.
5th acquisition module 7022, according to the first scheduler object, the corresponding relation of query scheduling object and resource capability weight, obtains the resource capability weight of the user that resource capability weight corresponding to the first scheduler object indicates as user ID.
As shown in figure 14, second acquisition unit 704, comprising:
6th acquisition module 7041, for when receiving the user's request to create comprising user ID, obtains scheduler object request to create; Or, when receiving the performance parameter update request comprising user ID, obtain scheduler object request to create; Or, when the resource request mean size change of the first two measurement period of the user of user ID instruction, obtain scheduler object request to create.
In sum, the resource capability distributing equipment that the embodiment of the present invention provides, because the first acquiring unit can determine the resource capability weight of user according to the lowest threshold of performance parameter, make the resource capability weighted associations of performance parameter and user, thus make allocation units according to the resource capability weight of user, be this user resource allocation ability.Therefore, in resource capability assigning process, the resource capability weight of user can be determined with reference to the lowest threshold of the performance parameter of user, thus ensure the minimum performance requirement of user.
The embodiment of the present invention provides another resource capability distributing equipment, and as shown in figure 15, this resource capability distributing equipment comprises: central processing unit 001 and memory 002; Central processing unit 001 is communicated by bus 003 with memory 002; Memory 002 stores computer executed instructions 0021; Central processing unit 001 performs computer executed instructions 0021, and this computer executed instructions 0021 comprises:
Receive the resource request that subscriber equipment sends, resource request comprises user ID;
By the corresponding relation of inquiring user and resource capability weight, obtain the resource capability weight of the user of user ID instruction, the resource capability weight of each user recorded in the corresponding relation of user and resource capability weight arranges according to the lowest threshold of the performance parameter of user;
According to the user resource allocation ability that the resource capability weight of user is user ID instruction.
Optionally, the corresponding relation of user and resource capability weight comprises: the corresponding relation of user and scheduler object, the corresponding relation of scheduler object and resource capability weight,
Before the resource request receiving subscriber equipment transmission, the method also comprises:
Obtain scheduler object request to create, scheduler object request to create comprises user ID;
Judge whether user that user ID indicates arranges the lowest threshold of performance parameter;
When the user of user ID instruction arranges the lowest threshold of performance parameter, for user arranges newly-built scheduler object;
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 set up according to user ID and newly-built scheduler object;
According to the resource capability weight of newly-built scheduler object and newly-built scheduler object, set up the corresponding relation of scheduler object and resource capability weight.
Optionally, performance parameter comprises throughput and bandwidth,
Judge whether user that user ID indicates arranges the lowest threshold of performance parameter, comprising:
Judge whether user that user ID indicates arranges the lowest threshold of throughput;
Judge whether user that user ID indicates arranges the lowest threshold of bandwidth;
When user is provided with at least one in the lowest threshold of throughput and the lowest threshold of bandwidth, judge that user that user ID indicates is provided with the lowest threshold of performance parameter;
When user does not arrange the lowest threshold of throughput and the lowest threshold of bandwidth, judge that user that user ID indicates does not arrange the lowest threshold of performance parameter.
Optionally, determine the resource capability weight of newly-built scheduler object according to the lowest threshold of performance parameter, comprising:
When user is provided with the lowest threshold of the lowest threshold of throughput and bandwidth, obtain first resource ability weight according to the lowest threshold of throughput;
Secondary resource ability weight is obtained according to the lowest threshold of bandwidth;
Obtain the resource capability weight of the maximum in first resource ability weight and Secondary resource ability weight as newly-built scheduler object.
Optionally, determine the resource capability weight of newly-built scheduler object according to the lowest threshold of performance parameter, comprising:
When user is only provided with the lowest threshold of throughput, obtain first resource ability weight according to the lowest threshold of throughput;
Using the resource capability weight of first resource ability weight as newly-built scheduler object;
When user is only provided with the lowest threshold of bandwidth, obtain Secondary resource ability weight according to the lowest threshold of bandwidth;
Using the resource capability weight of Secondary resource ability weight as newly-built scheduler object.
Optionally,
Obtain first resource ability weight according to the lowest threshold of throughput, comprising:
Using the lowest threshold of throughput as first resource ability weight;
Obtain Secondary resource ability weight according to the lowest threshold of bandwidth, comprising:
Obtain Secondary resource ability weight X according to Secondary resource ability weight equation, Secondary resource ability weight equation is:
X=M/N;
Wherein, M is the lowest threshold of bandwidth, N is the resource request mean size of previous measurement period, N=W/Z, W is the summation of the data volume of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding, and Z is total number of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding.
Optionally,
Obtain first resource ability weight according to the lowest threshold of throughput, comprising:
Obtain first resource ability weight Y according to first resource ability weight equation, first resource ability weight equation is:
Y=H×N;
Wherein, H is the lowest threshold of throughput, N is the resource request mean size of previous measurement period, N=W/Z, W is the summation of the data volume of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding, and Z is total number of the resource request of the user that in previous measurement period, newly-built scheduler object is corresponding;
Obtain Secondary resource ability weight according to the lowest threshold of bandwidth, comprising:
Using the lowest threshold of bandwidth as Secondary resource ability weight.
Optionally,
After judging whether user that user ID indicates arranges the lowest threshold of performance parameter, the method also comprises:
When the user of user ID instruction does not arrange the lowest threshold of performance parameter, obtain current statistic cycle all user's scheduler objects by default that the lowest threshold of performance parameter is not set;
The corresponding relation of user and scheduler object is set up according to user ID and acquiescence scheduler object.
Optionally, after setting up the corresponding relation of user and scheduler object according to user ID and acquiescence scheduler object, the method also comprises:
Determine according to default resource ability weight equation the resource capability weight Q giving tacit consent to scheduler object, default resource ability weight equation comprises:
Q=P×D/(1-D),P>0;
Q=S,P=0;
Wherein, P is the resource capability weight sum of the every other scheduler object in the current statistic cycle except acquiescence scheduler object, and D is the percentage that default permission acquiescence scheduler object occupies resource capability, and S is for presetting resource capability weighted value;
According to acquiescence scheduler object and the resource capability weight of acquiescence scheduler object, set up the corresponding relation of scheduler object and resource capability weight.
Optionally,
By the corresponding relation of inquiring user and resource capability weight, obtain the resource capability weight of the user of user ID instruction, comprising:
According to user ID, the corresponding relation of inquiring user and scheduler object, obtains scheduler object corresponding to user ID as the first scheduler object;
According to the first scheduler object, the corresponding relation of query scheduling object and resource capability weight, obtains the resource capability weight of resource capability weight corresponding to the first scheduler object as user.
Optionally,
Obtain scheduler object request to create, comprising:
When receiving the user's request to create comprising user ID, obtain scheduler object request to create;
Or, when receiving the performance parameter update request comprising user ID, obtain scheduler object request to create;
Or, when the resource request mean size change of the first two measurement period of the user of user ID instruction, obtain scheduler object request to create.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (23)
1. a resource capability distribution method, is characterized in that, described method comprises:
Receive the resource request that subscriber equipment sends, described resource request comprises user ID;
By the corresponding relation of inquiring user and resource capability weight, obtain the resource capability weight of the user of described user ID instruction, the resource capability weight of each user recorded in the corresponding relation of described user and resource capability weight arranges according to the lowest threshold of the performance parameter of described user;
According to the user resource allocation ability that the resource capability weight of described user is the instruction of described user ID.
2. method according to claim 1, is characterized in that, the corresponding relation of described user and resource capability weight comprises: the corresponding relation of user and scheduler object, the corresponding relation of scheduler object and resource capability weight,
Before the resource request that described reception subscriber equipment sends, described method also comprises:
Obtain scheduler object request to create, described scheduler object request to create comprises user ID;
Judge whether user that described user ID indicates arranges the lowest threshold of performance parameter;
The user indicated when described user ID arranges the lowest threshold of described performance parameter, for described user arranges newly-built scheduler object;
The resource capability weight of described newly-built scheduler object is determined according to the lowest threshold of described performance parameter;
The corresponding relation of user and scheduler object is set up according to described user ID and described newly-built scheduler object;
According to the resource capability weight of described newly-built scheduler object and described newly-built scheduler object, set up the corresponding relation of described scheduler object and resource capability weight.
3. resource capability distribution method according to claim 2, is characterized in that, described performance parameter comprises throughput and bandwidth,
Whether the described user judging that described user ID indicates arranges the lowest threshold of performance parameter, comprising:
Judge whether user that described user ID indicates arranges the lowest threshold of described throughput;
Judge whether user that described user ID indicates arranges the lowest threshold of described bandwidth;
When described user is provided with at least one in the lowest threshold of described throughput and the lowest threshold of described bandwidth, judge that user that described user ID indicates is provided with the lowest threshold of described performance parameter;
When described user does not arrange the lowest threshold of described throughput and the lowest threshold of described bandwidth, judge that user that described user ID indicates does not arrange the lowest threshold of described performance parameter.
4. resource capability distribution method according to claim 3, is characterized in that, the described lowest threshold according to described performance parameter determines the resource capability weight of described newly-built scheduler object, comprising:
When described user is provided with the lowest threshold of the lowest threshold of described throughput and described bandwidth, obtain first resource ability weight according to the lowest threshold of described throughput;
Secondary resource ability weight is obtained according to the lowest threshold of described bandwidth;
Obtain the resource capability weight of the maximum in described first resource ability weight and described Secondary resource ability weight as described newly-built scheduler object.
5. resource capability distribution method according to claim 3, is characterized in that, the described lowest threshold according to described performance parameter determines the resource capability weight of described newly-built scheduler object, comprising:
When described user is only provided with the lowest threshold of described throughput, obtain first resource ability weight according to the lowest threshold of described throughput;
Using the resource capability weight of described first resource ability weight as described newly-built scheduler object;
When described user is only provided with the lowest threshold of described bandwidth, obtain Secondary resource ability weight according to the lowest threshold of described bandwidth;
Using the resource capability weight of described Secondary resource ability weight as described newly-built scheduler object.
6. the resource capability distribution method according to claim 4 or 5, is characterized in that,
The described lowest threshold according to described throughput obtains first resource ability weight, comprising:
Using the lowest threshold of described throughput as described first resource ability weight;
The described lowest threshold according to described bandwidth obtains Secondary resource ability weight, comprising:
Obtain described Secondary resource ability weight X according to Secondary resource ability weight equation, described Secondary resource ability weight equation is:
X=M/N;
Wherein, described M is the lowest threshold of described bandwidth, described N is the resource request mean size of previous measurement period, N=W/Z, described W is the summation of the data volume of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period, and described Z is total number of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period.
7. the resource capability distribution method according to claim 4 or 5, is characterized in that,
The described lowest threshold according to described throughput obtains first resource ability weight, comprising:
Obtain described first resource ability weight Y according to first resource ability weight equation, described first resource ability weight equation is:
Y=H×N;
Wherein, described H is the lowest threshold of described throughput, described N is the resource request mean size of previous measurement period, N=W/Z, described W is the summation of the data volume of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period, and described Z is total number of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period;
The described lowest threshold according to described bandwidth obtains Secondary resource ability weight, comprising:
Using the lowest threshold of described bandwidth as described Secondary resource ability weight.
8. resource capability distribution method according to claim 2, is characterized in that,
After whether the described user judging that described user ID indicates arranges the lowest threshold of performance parameter, described method also comprises:
The user indicated when described user ID does not arrange the lowest threshold of described performance parameter, obtains current statistic cycle all user's scheduler objects by default not arranging the lowest threshold of described performance parameter;
The corresponding relation of user and scheduler object is set up according to described user ID and described acquiescence scheduler object.
9. resource capability distribution method according to claim 8, is characterized in that, described set up the corresponding relation of user and scheduler object according to described user ID and described acquiescence scheduler object after, described method also comprises:
Determine the resource capability weight Q of described acquiescence scheduler object according to default resource ability weight equation, described default resource ability weight equation comprises:
Q=P×D/(1-D),P>0;
Q=S,P=0;
Wherein, described P is the resource capability weight sum of the every other scheduler object in the described current statistic cycle except described acquiescence scheduler object, described D is the percentage that the default described acquiescence scheduler object of permission occupies resource capability, and S is for presetting resource capability weighted value;
According to the resource capability weight of described acquiescence scheduler object and described acquiescence scheduler object, set up the corresponding relation of described scheduler object and resource capability weight.
10. the method according to claim 2 to 9 any one claim, is characterized in that,
The described corresponding relation by inquiring user and resource capability weight, obtains the resource capability weight of the user of described user ID instruction, comprising:
According to described user ID, inquire about the corresponding relation of described user and scheduler object, obtain scheduler object corresponding to described user ID as the first scheduler object;
According to described first scheduler object, inquire about the corresponding relation of described scheduler object and resource capability weight, obtain the resource capability weight of resource capability weight corresponding to described first scheduler object as described user.
11. methods according to claim 2, is characterized in that,
Described acquisition scheduler object request to create, comprising:
When receiving the user's request to create comprising described user ID, obtain scheduler object request to create;
Or, when receiving the performance parameter update request comprising described user ID, obtain scheduler object request to create;
Or, when the resource request mean size change of the first two measurement period of the user that described user ID indicates, obtain scheduler object request to create.
12. 1 kinds of resource capability distributing equipments, is characterized in that, described resource capability distributing equipment comprises:
Receiving element, for receiving the resource request that subscriber equipment sends, described resource request comprises user ID;
First acquiring unit, for the corresponding relation by inquiring user and resource capability weight, obtain the resource capability weight of the user of described user ID instruction, the resource capability weight of each user recorded in the corresponding relation of described user and resource capability weight arranges according to the lowest threshold of the performance parameter of described user;
Allocation units, for according to the resource capability weight of described user being the user resource allocation ability of described user ID instruction.
13. resource capability distributing equipments according to claim 12, it is characterized in that, the corresponding relation of described user and resource capability weight comprises: the corresponding relation of user and scheduler object, the corresponding relation of scheduler object and resource capability weight,
Described resource capability distributing equipment also comprises:
Second acquisition unit, for obtaining scheduler object request to create, described scheduler object request to create comprises user ID;
Judging unit, for judging whether user that described user ID indicates arranges the lowest threshold of performance parameter;
First setting unit, when the user for indicating in described user ID arranges the lowest threshold of described performance parameter, for described user arranges newly-built scheduler object;
Second setting unit, for determining the resource capability weight of described newly-built scheduler object according to the lowest threshold of described performance parameter;
First sets up unit, for setting up the corresponding relation of user and scheduler object according to described user ID and described newly-built scheduler object;
Second sets up unit, for the resource capability weight according to described newly-built scheduler object and described newly-built scheduler object, sets up the corresponding relation of described scheduler object and resource capability weight.
14. resource capability distributing equipments according to claim 13, it is characterized in that, described performance parameter comprises throughput and bandwidth,
Described judging unit, comprising:
First judge module, for judging whether user that described user ID indicates arranges the lowest threshold of described throughput;
Second judge module, for judging whether user that described user ID indicates arranges the lowest threshold of described bandwidth;
3rd judge module, during for being provided with at least one in the lowest threshold of described throughput and the lowest threshold of described bandwidth described user, judges that user that described user ID indicates is provided with the lowest threshold of described performance parameter;
4th judge module, during for not arranging the lowest threshold of the lowest threshold of described throughput and described bandwidth described user, judges that user that described user ID indicates does not arrange the lowest threshold of described performance parameter.
15. resource capability distributing equipments according to claim 14, is characterized in that, described second setting unit, comprising:
First acquisition module, during for being provided with the lowest threshold of the lowest threshold of described throughput and described bandwidth described user, obtains first resource ability weight according to the lowest threshold of described throughput;
Second acquisition module, for obtaining Secondary resource ability weight according to the lowest threshold of described bandwidth;
3rd acquisition module, for obtaining the resource capability weight of the maximum in described first resource ability weight and described Secondary resource ability weight as described newly-built scheduler object.
16. resource capability distributing equipments according to claim 14, is characterized in that,
Described first acquisition module, comprising:
First obtains submodule, for when described user is only provided with the lowest threshold of described throughput, obtains first resource ability weight according to the lowest threshold of described throughput;
First process submodule, for using the resource capability weight of described first resource ability weight as described newly-built scheduler object;
Described second acquisition module, comprising:
Second obtains submodule, for when described user is only provided with the lowest threshold of described bandwidth, obtains Secondary resource ability weight according to the lowest threshold of described bandwidth;
Second process submodule, for using the resource capability weight of described Secondary resource ability weight as described newly-built scheduler object.
17. resource capability distributing equipments according to claim 15 or 16, is characterized in that,
Described first obtain submodule, for using the lowest threshold of described throughput as described first resource ability weight;
Described second obtains submodule, and for obtaining described Secondary resource ability weight X according to Secondary resource ability weight equation, described Secondary resource ability weight equation is:
X=M/N;
Wherein, described M is the lowest threshold of described bandwidth, described N is the resource request mean size of previous measurement period, N=W/Z, described W is the summation of the data volume of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period, and described Z is total number of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period.
18. resource capability distributing equipments according to claim 15 or 16, is characterized in that,
Described first obtains submodule, and for obtaining described first resource ability weight Y according to first resource ability weight equation, described first resource ability weight equation is:
Y=H×N;
Wherein, described H is the lowest threshold of described throughput, described N is the resource request mean size of previous measurement period, N=W/Z, described W is the summation of the data volume of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period, and described Z is total number of the resource request of user corresponding to newly-built scheduler object described in described previous measurement period;
Described second obtain submodule, for using the lowest threshold of described bandwidth as described Secondary resource ability weight.
19. resource capability distributing equipments according to claim 13, is characterized in that,
Described resource capability distributing equipment also comprises:
3rd acquiring unit, when the user for indicating in described user ID does not arrange the lowest threshold of described performance parameter, obtains current statistic cycle all user's scheduler objects by default not arranging the lowest threshold of described performance parameter;
3rd sets up unit, for setting up the corresponding relation of user and scheduler object according to described user ID and described acquiescence scheduler object.
20. resource capability distributing equipments according to claim 19, is characterized in that,
Described resource capability distributing equipment also comprises:
Determining unit, for determining the resource capability weight Q of described acquiescence scheduler object according to default resource ability weight equation, described default resource ability weight equation comprises:
Q=P×D/(1-D),P>0;
Q=S,P=0;
Wherein, described P is the resource capability weight sum of the every other scheduler object in the described current statistic cycle except described acquiescence scheduler object, described D is the percentage that the default described acquiescence scheduler object of permission occupies resource capability, and S is for presetting resource capability weighted value;
4th sets up unit, for the resource capability weight according to described acquiescence scheduler object and described acquiescence scheduler object, sets up the corresponding relation of described scheduler object and resource capability weight.
21., according to claim 13 to the equipment described in 20 any one claims, is characterized in that,
Described first acquiring unit, comprising:
4th acquisition module, for according to described user ID, inquires about the corresponding relation of described user and scheduler object, obtains scheduler object corresponding to described user ID as the first scheduler object;
5th acquisition module, for according to described first scheduler object, inquires about the corresponding relation of described scheduler object and resource capability weight, obtains the resource capability weight of the user that resource capability weight corresponding to described first scheduler object indicates as described user ID.
22. equipment according to claim 13, is characterized in that,
Described second acquisition unit, comprising:
6th acquisition module, for when receiving the user's request to create comprising described user ID, obtains scheduler object request to create;
Or, when receiving the performance parameter update request comprising described user ID, obtain scheduler object request to create;
Or, when the resource request mean size change of the first two measurement period of the user that described user ID indicates, obtain scheduler object request to create.
23. 1 kinds of resource capability distributing equipments, is characterized in that, comprising: central processing unit and memory; Described central processing unit and described memory pass through bus communication; Described memory stores computer executed instructions; Described central processing unit performs described computer executed instructions, requires the arbitrary described method of 1-11 for enforcement of rights.
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 true CN104301944A (en) | 2015-01-21 |
CN104301944B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106899521A (en) * | 2016-08-30 | 2017-06-27 | 阿里巴巴集团控股有限公司 | Internet resources dispatching method and device, guarantee method and device |
CN109274729A (en) * | 2018-09-04 | 2019-01-25 | 中国人民大学 | A kind of adaptive approach of the mixing storage device resource isolation towards multi-tenant |
CN111225050A (en) * | 2020-01-02 | 2020-06-02 | 中国神华能源股份有限公司神朔铁路分公司 | Cloud computing resource allocation method and device |
CN116893903A (en) * | 2023-09-11 | 2023-10-17 | 北京格尔国信科技有限公司 | 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 |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106899521A (en) * | 2016-08-30 | 2017-06-27 | 阿里巴巴集团控股有限公司 | Internet resources dispatching method and device, guarantee method and device |
CN106899521B (en) * | 2016-08-30 | 2020-07-03 | 阿里巴巴集团控股有限公司 | Internet resource scheduling method and device |
CN109274729A (en) * | 2018-09-04 | 2019-01-25 | 中国人民大学 | A kind of adaptive approach of the mixing storage device resource isolation towards multi-tenant |
CN109274729B (en) * | 2018-09-04 | 2021-06-29 | 中国人民大学 | Adaptive method for multi-tenant-oriented resource isolation of hybrid storage device |
CN111225050A (en) * | 2020-01-02 | 2020-06-02 | 中国神华能源股份有限公司神朔铁路分公司 | Cloud computing resource allocation method and device |
CN111225050B (en) * | 2020-01-02 | 2022-10-18 | 中国神华能源股份有限公司神朔铁路分公司 | Cloud computing resource allocation method and device |
CN116893903A (en) * | 2023-09-11 | 2023-10-17 | 北京格尔国信科技有限公司 | Encryption resource allocation method, system, equipment and storage medium |
CN116893903B (en) * | 2023-09-11 | 2023-12-08 | 北京格尔国信科技有限公司 | Encryption resource allocation method, system, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104301944B (en) | 2018-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112153700B (en) | Network slice resource management method and equipment | |
CN110896355B (en) | Network slice selection method and device | |
CN107748696B (en) | Task scheduling method and terminal equipment | |
CN110351375B (en) | Data processing method and device, computer device and readable storage medium | |
US8572621B2 (en) | Selection of server for relocation of application program based on largest number of algorithms with identical output using selected server resource criteria | |
CN109729519B (en) | Data downloading method and related device | |
CN104301944A (en) | Resource capacity allocation method and equipment | |
CN105791254A (en) | Network request processing method, device and terminal | |
CN113595926B (en) | API data transmission method, device, equipment and medium based on data middlebox | |
CN111176840A (en) | Distributed task allocation optimization method and device, storage medium and electronic device | |
CN109041236B (en) | Wireless resource allocation method and device for services with different weights | |
CN107634978B (en) | Resource scheduling method and device | |
CN112565074A (en) | Target path determination method and multi-domain controller | |
CN116820769A (en) | Task allocation method, device and system | |
CN113472591B (en) | Method and device for determining service performance | |
CN111800446B (en) | Scheduling processing method, device, equipment and storage medium | |
CN114490083A (en) | CPU resource binding method and device, storage medium and electronic device | |
CN108156086A (en) | A kind of strategy rule downloading method and device | |
CN106385385B (en) | Resource allocation method and device | |
CN110888741A (en) | Resource scheduling method and device for application container, server and storage medium | |
CN111008124A (en) | Task scheduling method and device for database test | |
CN115278897B (en) | Resource allocation method and device, electronic equipment and storage medium | |
CN112565320B (en) | Load balancing method and device | |
CN115729692A (en) | Cluster load balancing processing method, device and equipment and computer storage medium | |
CN111030844B (en) | Method and device for establishing flow processing framework |
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 |