The present invention relates to the information technology field, and in particular, to a method for scheduling a user request in a distributed resource system, and an apparatus.
There are multiple resource-providing entities in a distributed resource system. Resources include a computing capability of a Central Processing Unit (CPU), hard disk space, memory space, network bandwidth, and the like, where a resource may be a physical resource or a virtual resource. When a resource-providing entity provides a resource according to a user request, a resource competition occurs between users. Therefore, scheduling a user request to ensure performance for users becomes extremely important.
In the distributed resource system shown in
Because the user agent A and the user agent B are applicable only to a distributed file system scenario, the solution in an architecture shown in
According to a first aspect, an embodiment of the present invention provides a method for scheduling a user request in a distributed resource system, where the distributed resource system includes schedulers Sx, resource-providing entities Rx, and a coordinator Gy, where x is any one of consecutive natural numbers from 1 to M, and M≧2; y is any one of consecutive natural numbers from 1 to Y, and Y is a natural number; the Sx communicates with the Rx; the Gy communicates with any Sx; and the method includes:
acquiring, by an Sd in a Tn+1 period and from a coordinator Gk of a user z, a resource Cz(Tn) that is consumed by a user z request in a Tn period, where
d and k are natural numbers, 1≦d≦M, and 1≦k≦Y; a resource weight of the user z is φz; Cz,x(Tn) is a quantity of resources that are provided by the Rx, and consumed by Nz,x(Tn) user z requests received by the Sx in the Tn period; and z indicates an identifier of the user; and
scheduling, by the Sd according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn), a Piz,d by using a scheduling algorithm, where the Piz,d is the ith user z request received by the Sd and Cz,d(Tn) is a quantity of resources that are provided by an Rd and consumed by Nz,d(Tn) user z requests received by the Sd in the Tn period.
With reference to the first aspect of the embodiment of the present invention, in a first possible implementation manner, the scheduling, by the Sd according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn), a Piz,d by using a scheduling algorithm specifically includes:
computing, by the Sd according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn), a virtual start time S(Piz,d) and a virtual finish time F(Piz,d) of the Piz,d; and adding the Piz,d to a scheduling queue, where the scheduling queue ranks the user request according to a value of the virtual start time of the user request.
With reference to the first possible implementation manner of the first aspect of the embodiment of the present invention, in a second possible implementation manner,
where v(Piz,d) indicates a virtual time of the Sd when the Sd receives the Piz,d, and c(Piz,d) indicates a resource that is provided by the Rd and consumed by the Piz,d.
With reference to the first possible implementation manner of the first aspect of the embodiment of the present invention, in a third possible implementation manner,
where v(Piz,d) indicates a virtual time of the Sd when the Sd receives the Piz,d, and c(Piz,d) indicates a resource that is provided by the Rd and consumed by the Piz,d.
According to a second aspect, an embodiment of the present invention provides a scheduler Sd, where the scheduler Sd is applied to a distributed resource system, and the distributed resource system includes schedulers Sx, resource-providing entities Rx, and a coordinator Gy, where x is any one of consecutive natural numbers from 1 to M, and M≧2; d is a number in x; y is any one of consecutive natural numbers from 1 to Y; the Sx communicates with the Rx; the Gy communicates with any Sx; the scheduler Sd includes a central processing unit and a memory, where the central processing unit executes an executable instruction in the memory, to perform the method in any one of the first aspect to the third possible implementation manner of the first aspect of the embodiment of the present invention.
According to a third aspect, an embodiment of the present invention provides a scheduler Sd, where the scheduler Sd is applied to a distributed resource system, and the distributed resource system includes schedulers Sx, resource-providing entities Rx and a coordinator Gy, where x is any one of consecutive natural numbers from 1 to M, and M≧2; d is a number in x; y is any one of consecutive natural numbers from 1 to Y; the Sx communicates with the Rx; the Gy communicates with any Sx; and the scheduler Sd includes an acquiring unit and a scheduling unit, where:
the acquiring unit is configured to acquire, in a Tn+1 period and from a coordinator Gk of a user z, a resource Cz(Tn) that is consumed by a user z request in a Tn, period, where
k is a natural number, and 1≧k≧Y; a resource weight of the user z is φz; Cz,x(Tn) is a quantity of resources that are provided by the Rx and consumed by Nz,x(Tn) user z requests received by the Sx in the Tn period; and z indicates an identifier of the user; and
the scheduling unit is configured to schedule, according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn), Piz,d by using a scheduling algorithm, where Piz,d is the ith user z request received by the Sd, and Cz,d(Tn) is resource that is provided by an Rd and consumed by Nz,d(Tn) user z requests received by the Sd in the Tn period.
According to a fourth aspect, an embodiment of the present invention provides a non-volatile computer readable storage medium, where the non-volatile computer readable storage medium stores a computer instruction that is used to perform user request scheduling in a distributed resource system, and the distributed resource system includes schedulers Sx, resource-providing entities Rx, and a coordinator Gy, where x is any one of consecutive natural numbers from 1 to M, and M≧2; y is any one of consecutive natural numbers from 1 to Y, and Y is a natural number; the Sx communicates with the Rx, and the Gy communicates with any Sx; and a scheduler Sd executes the computer instruction, to perform the method in any one of the first aspect to the third possible implementation manner of the first aspect of the embodiment of the present invention, where d is a number in x.
According to a fifth aspect, an embodiment of the present invention provides a distributed resource system, where the distributed resource system includes schedulers Sx, resource-providing entities Rx, and a coordinator Gy, where x is any one of consecutive natural numbers from 1 to M, and M≧2; y is any one of consecutive natural numbers from 1 to Y, and Y is a natural number; the Sx communicates with the Rx; and the Gy communicates with any Sx;
a coordinator Gk of a user z is configured to provide, for a scheduler Sd in a Tn+1 period, a resource Cz(Tn) that is consumed by a user z request in a Tn period, where
d and k are natural numbers, 1≦d≦M, and 1≦k≦Y; a resource weight of the user z is φz; Cz,x(Tn) is a quantity of resources that are provided by the Rx and consumed by Nz,x(Tn) user z requests received by the Sx in the Tn period; and z indicates an identifier of the user; and
the scheduler Sd is configured to schedule, according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn), a Piz,d by using a scheduling algorithm, where the Piz,d is the ith user z request received by the Sd, and Cz,d(Tn) is a quantity of resources that are provided by an Rd and consumed by Nz,d(Tn) user z requests received by the Sd in the Tn period.
According to a sixth aspect, an embodiment of the present invention provides a resource scheduling method in a distributed resource system, where the distributed resource system includes multiple schedulers;
a first scheduler in the multiple schedulers acquires, from a coordinator of the first user, the sum of resources that are consumed in the multiple schedulers by a user request of the first user in a previous period; and
the first scheduler schedules the user request of the first user according to a resource weight of the first user, the sum of resources that are consumed in the multiple schedulers by the user request of the first user in the previous period, a resource that is consumed in the first scheduler by the user request of the first user in the previous period, and a quantity of user requests of the first user received by the first scheduler in the previous period.
With reference to the sixth aspect, in a first possible implementation manner, that the first scheduler schedules the user request of the first user according to a resource weight of the first user, the sum of resources that are consumed in the multiple schedulers by the user request of the first user in the previous period, a resource that is consumed in the first scheduler by the user request of the first user in the previous period, and a quantity of user requests of the first user received by the first scheduler in the previous period specifically includes:
computing, by the first scheduler according to the resource weight of the first user, the sum of resources that are consumed in the multiple schedulers by the user request of the first user in the previous period, the resource that is consumed in the first scheduler by the user request of the first user in the previous period, and the quantity of the user requests of the first user received by the first scheduler in the previous period, a virtual start time and a virtual finish time of the user request of the first user; and adding the user request of the first user to a scheduling queue, where the scheduling queue ranks the user request of the first user according to a value of the virtual start time of the user request.
According to a seventh aspect, an embodiment of the present invention provides a distributed resource system, where the distributed resource system includes multiple schedulers, and a first scheduler in the multiple schedulers includes an acquiring unit and a scheduling unit, where:
the acquiring unit is configured to acquire, from a coordinator of the first user, the sum of resources that are consumed in the multiple schedulers by a user request of the first user in a previous period; and
the scheduling unit is configured to schedule the user request of the first user according to a resource weight of the first user, the sum of resources that are consumed in the multiple schedulers by the user request of the first user in the previous period, a resource that is consumed in the first scheduler by the user request of the first user in the previous period, and a quantity of user requests of the first user received by the first scheduler in the previous period.
With reference to the seventh aspect, in a first possible implementation manner, the scheduling unit is specifically configured to compute, according to the resource weight of the first user, the sum of resources that are consumed in the multiple schedulers by the user request of the first user in the previous period, the resource that is consumed in the first scheduler by the user request of the first user in the previous period, and the quantity of the user requests of the first user received by the first scheduler in the previous period, a virtual start time and a virtual finish time of the user request of the first user; and add the user request of the first user to a scheduling queue, where the scheduling queue ranks the user request of the first user according to a value of the virtual start time of the user request.
According to the method for scheduling a user request in a distributed resource system, the apparatus, and the system that are provided by embodiments of the present invention, in a Tn+1 period, an Sd acquires, from a coordinator Gk of a user z, a resource Cz(Tn) that is consumed by a user z request in a Tn period, and the Sd schedules, according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn), a Piz,d by using a scheduling algorithm. The user z request can be scheduled without depending on a user agent. In addition, the Sd schedules, according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn), the Piz,d by using the scheduling algorithm, thereby implementing global scheduling on the user z request and ensuring a performance requirement of the user z.
To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments.
The following clearly describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention.
As shown in
This embodiment of the present invention is described by using an example in which a resource is an IOPS capability, the resource-providing entity A is a storage array A, and the resource-providing entity B is a storage array B.
Before this embodiment of the present invention is further described, it should be noted that, a relationship among the scheduler A, the coordinator A, and the resource-providing entity A shown in
In the distributed resource system shown in
There is a resource competition relationship between the user A and the user B. To ensure performance for the users, a resource weight is generally allocated to each user in the distributed resource system. The user A and the user B are used as an example in this embodiment of the present invention, where a resource weight φA of the user A is 2, and a resource weight φB of the user B is 1. Then a ratio of the resource weight of the user A to the resource weight of the user B is 2:1. The resource weights of the user A and the user B are configured in both the scheduler A and the scheduler B. Specifically, the resource weight of the user A may be delivered by the user A to each of the scheduler A and the scheduler B, and the resource weight of the user B is delivered by the user B to each of the scheduler A and the scheduler B; the scheduler A and the scheduler B perform the foregoing configuration. A form of a resource weight is not limited to the form described in this embodiment of the present invention, and may also be that the resource weight φA of the user A is ⅔, and the resource weight φB of the user B is ⅓.
The scheduler A receives the user A request sent by the user A, and the scheduler A receives the user B request sent by the user B. The storage array A needs to provide the IOPS capability for both the user A request and the user B request, or in other words, both the user A request and the user B request consume the IOPS capability provided by the storage array A. Likewise, the scheduler B receives the user A request sent by the user A, and the scheduler B receives the user B request sent by the user B. When the IOPS capability of the storage array A can meet the user A request and the user B request, the scheduler A does not need to schedule the received user A request and the received user B request according to a scheduling algorithm; when the IOPS capability of the storage array B can meet the user A request and the user B request, the scheduler B does not need to schedule the received user A request and the received user B request according to a scheduling algorithm. The scheduler A only needs to compute virtual start times and virtual finish times of the received user requests according to a scheduling algorithm. Likewise, the scheduler B also only needs to compute virtual start times and virtual finish times of the received user requests according to a scheduling algorithm. For meanings of a virtual start time and a virtual finish time, refer to a Start-time Fairness Queuing (SFQ) algorithm. When the user requests need to be scheduled, the scheduler A needs to add, according to a scheduling algorithm, the received user A request and the received user B request to a scheduling queue of the scheduler A for scheduling; the scheduler B also needs to add, according to the scheduling algorithm, the received user A request and the received user B request to a scheduling queue of the scheduler B for scheduling.
As shown in
The scheduler A acquires, in the Tn period and according to a resource that is provided by the resource-providing entity A and consumed by each received user A request, the resource CA,A(Tn) that is provided by the resource-providing entity A and consumed by the NA,A(Tn) user A requests processed by the scheduler A in the Tn period; and the scheduler A acquires, in the Tn period and according to a resource that is provided by the resource-providing entity A and consumed by each received user B request, the resource CB,A(Tn) that is provided by the resource-providing entity A and consumed by the NB,A(Tn) user B requests processed by the scheduler A in the Tn period. Likewise, the scheduler B acquires, in the Tn period and according to a resource that is provided by the resource-providing entity B and consumed by each received user A request, the resource CA,B(Tn) that is provided by the resource-providing entity B and consumed by the NA,B(Tn) user A requests processed by the scheduler B in the Tn period; and the scheduler B acquires, in the Tn period and according to a resource that is provided by the resource-providing entity B and consumed by each received user B request, the resource CB,B(Tn) that is provided by the resource-providing entity B and consumed by the NB,B(Tn) user B requests processed by the scheduler B in the Tn period. Resources consumed by the user A requests processed in the Tn period are CA(Tn)=CA,A(Tn)+CA,B(Tn), and resources consumed by the user B requests processed in the Tn period are CB(Tn)=CB,A(Tn)+CB,B(Tn).
Specifically, the coordinator A acquires CA,A(Tn) and CA,B(Tn). An implementation manner is that the scheduler A proactively sends the CA,A(Tn) to the coordinator A, and the scheduler B proactively sends the CA,B(Tn) to the coordinator A. Another implementation manner is that the coordinator A requests to acquire the CA,A(Tn) from the scheduler A, and the coordinator A requests to acquire the CA,B(Tn) from the scheduler B. Specifically, the coordinator A may acquire the CA,A(Tn) and the CA,B(Tn) at one time, or the coordinator A may communicate with the scheduler A and the scheduler B in real time, to acquire, in real time, the resource that is provided by the resource-providing entity A and consumed by each user A request received by the scheduler A, and acquire, in real time, the resource that is provided by the resource-providing entity B and consumed by each user A request received by the scheduler B. For a manner in which the coordinator B acquires the resources CB(Tn) consumed for processing the user B requests, refer to the manner of the coordinator A, and details are not described herein again.
The scheduler A acquires, from the home coordinator A of the user A, the resource CA(Tn) consumed by the user A requests in the Tn period, and acquires, from the home coordinator B of the user B, the resource CB(Tn) consumed by the user B requests in the Tn period. In an implementation manner, in a Tn+1 period, the coordinator A sends the CA(Tn) to each of the scheduler A and the scheduler B, and the coordinator B sends the CB(Tn) to each of the scheduler A and the scheduler B. In another implementation manner, in a Tn+1 period, the scheduler A requests the CA(Tn) from the coordinator A, the scheduler A requests the CB(Tn) from the coordinator B; and the scheduler B requests the CA(Tn) from the coordinator A, the scheduler B requests the CB(Tn) from the coordinator B. The foregoing two manners are both described as: in a Tn+1 period, the scheduler A acquires, from the home coordinator A of the user A, the resources CA(Tn) consumed by the user A requests in the Tn period, and acquires, from the home coordinator B of the user B, the resources CB(Tn) consumed by the user B requests in the Tn period. It can be known from the foregoing description that, in either of the foregoing implementation manners, the scheduler A stores the NA,A(Tn), NB,A(Tn), CA,A(Tn), and CB,A(Tn); and the scheduler B stores the NA,B(Tn), NB,B(Tn), CA,B(Tn), and CB,B(Tn).
As for determining of a home coordinator of a user, a manner may be that a coordinator is configured as a home coordinator of a user; or when an identifier of a user is an integer, a modulo operation is performed on a total quantity of coordinators according to the identifier of the user, to determine a home coordinator of the user; or a hash function may be used to perform computation on an identifier of a user to obtain a hash value, and then a modulo operation is performed on a total quantity of coordinators by using the hash value, to determine a home coordinator of the user. For example, there are 100 users and 20 coordinators, and identifiers of the users are from 1 to 100, the 20 coordinators are numbered from 1 to 20, and a modulo operation is performed on a total quantity of the coordinators according to the identifiers of the users, to determine a home coordinator of each user. The present invention sets no limitation thereto. A total quantity of coordinators may be less than or equal to a quantity of schedulers, and each coordinator can communicate with any scheduler.
Step 402. The scheduler A schedules, according to φA, CA(Tn), CA,A(Tn), and NA,A(Tn), the received user A request by using a scheduling algorithm; and the scheduler A schedules, according to φB, CB(Tn), CB,A(Tn), and NB,A(Tn), the received user B request by using the scheduling algorithm.
Likewise, the scheduler B schedules, according to φA, CA(Tn), CA,B(Tn), and NA,B(Tn), a received user A request by using a scheduling algorithm; and the scheduler B schedules, according to φB, CB(Tn), CB,B(Tn), and NB,B(Tn), a received user B request by using the scheduling algorithm.
When a user request in a scheduler is scheduled according to the method shown in
When the scheduler A schedules the user B request, or the scheduler B schedules the user A request, or the scheduler B schedules the user B request, the same foregoing effect can also be achieved. In a user agent-based architecture in the prior art, a scheduler can acquire only a user request and statistics of the user request that are sent by one user agent; therefore, it is difficult to implement global scheduling on a same user request.
In this embodiment of the present invention, that a scheduler A schedules a user A request is used as an example. During global scheduling on the user A request, the scheduler A needs to consider CA(Tn) in addition to φA, CA,A(Tn), and NA,A(Tn) in a previous period, thereby implementing scheduling of the user A request and further ensuring performance for a user A.
Specifically, in this embodiment of the present invention, PiA,A indicates the ith user A request that is sent by the user A and received by the scheduler A, where a storage array A provides a resource for the PiA,A; and PiA,B indicates the ith user A request that is sent by the user A and received by a scheduler B, where a storage array B provides a resource for the PiA,B. PkB,A indicates the kth user B request that is sent by a user B and received by the scheduler A, where the storage array A provides a resource for the PkB,A; and PkB,B indicates the kth user B request that is sent by the user B and received by the scheduler B, where the storage array B provides a resource for the PkB,B. In this embodiment of the present invention, φA=2, and φB=1.
In a Tn period, when a quantity of user A requests and user B requests that are received by the scheduler A is less than an IOPS capability of the storage array A, there is no need to schedule, by using a scheduling algorithm, the user A requests and the user B requests that are received by the scheduler A, and the user A requests and the user B requests are directly processed by the storage array A. When a quantity of user A requests and user B requests that are received by the scheduler B is less than an IOPS capability of the storage array B, there is also no need to schedule, by using a scheduling algorithm, the user A requests and the user B requests that are received by the scheduler B, and the user A requests and the user B requests are directly processed by the storage array B. However, a home coordinator A of the user A needs to acquire resources that are consumed by user A requests received by schedulers in the Tn period. In this embodiment of the present invention, the home coordinator A of the user A acquires a resource CA(Tn) that is consumed by the user A requests that are received by the scheduler A and the scheduler B in the Tn period. A home coordinator B of the user B also acquires a resource CB(Tn) that is consumed by the user B requests that are received by the scheduler A and the scheduler B in the Tn period. The coordinator A sends CA(Tn) to the scheduler A and the scheduler B, and the coordinator B sends CB(Tn) to the scheduler A and the scheduler B. When a quantity of the user A requests received by the scheduler A in the Tn period is NA,A(Tn), a consumed resource that is provided by the storage array A is CA,A(Tn); when a quantity of the user B requests received by the scheduler A in the Tn period is NB,A(Tn), a consumed resource that is provided by the storage array A is CB,A(Tn). When a quantity of the user A requests received by the scheduler B in the Tn period is NA,B(Tn), a consumed resource that is provided by the storage array B is CA,B(Tn); when a quantity of the user B requests received by the scheduler B in the Tn period is NB,B(Tn), a consumed resource that is provided by the storage array A is CB,B(Tn).
The scheduler A is used as an example. In a Tn+1 period, the scheduler A acquires, from the home coordinator A of the user A, a resource CA(Tn) that is consumed by a user A request in the Tn period. In the Tn+1 period, when an IOPS capability of the storage array A cannot meet a user A request and a user B request, the scheduler A adds, by using a scheduling algorithm, the received user A request and the received user B request to a scheduling queue of the scheduler A for scheduling. When receiving the user A request and the user B request, the scheduler A computes a virtual start time and a virtual finish time of the user A request, and a virtual start time and a virtual finish time of the user B request. The user A request and the user B request are added to the scheduling queue, and the user A request and the user B request are ranked in the scheduling queue in ascending order of the virtual start times for processing. A user request whose virtual start time is the earliest is ranked at the queue head of the scheduling queue, and a user request whose virtual start time is the latest is ranked at the queue tail of the scheduling queue. The queue head of the scheduling queue refers to a position at which the storage array A performs user request processing first in the scheduling queue. When processing the user requests, the storage array A acquires a user request from the queue head of the scheduling queue for processing, that is, a user request whose virtual start time is the earliest is processed first. The storage array A processes the user requests in the scheduling queue in ascending order of the virtual start times of the user requests.
In a first implementation manner, a virtual start time of a PiA,A that is received by the scheduler A is represented by S(PiA,A), and a virtual finish time of the PiA,A is represented by F(PiA,A). S(PiA,A)=max {v(PiA,A), F(Pi−1A,A)}, where v(PiA,A) indicates a virtual time of the scheduler A when the scheduler A receives the PiA,A F(Pi−1A,A) indicates a virtual finish time of a Pi−1A,A, and max {v(PiA,A), F(Pi−1A,A)} indicates a maximum value in v(PiA,A) and F(Pi−1A,A).
For meanings of the virtual start time S(PiA,A), the virtual finish time F(PiA,A), and the virtual time v(PiA,A), refer to a Start-time Fairness Queuing (SFQ) algorithm, and details are not described in this embodiment of the present invention again. c(PiA,A) indicates a resource that is provided by the storage array A and consumed by the PiA,A which is one IOPS in this embodiment of the present invention; and d(PA,A(Tn+1)) indicates a value of a delay of each user A request that is received by the scheduler A in a Tn+1 period, and
Likewise, a virtual start time of a PkB,A that is received by the scheduler A is represented by S(PkB,A), and a virtual finish time of the PkB,A is represented by F(PkB,A). S(PkB,A)=max {v(PkB,A), F(Pk−1B,A)}, where v(PkB,A) indicates a virtual time of the scheduler A when the scheduler A receives the PkB,A, F(Pk−1B,A) indicates a virtual finish time of a Pk−1B,A, and max {v(PkB,A), F(Pk−1B,A)} indicates a maximum value in v(PkB,A) and F(Pk−1B,A).
where c(PkB,A) indicates a resource that is provided by the storage array B and consumed by the PkB,A, which is one IOPS in this embodiment of the present invention; and d(PB,A(Tn+1) indicates a value of a delay of each user B request that is received by the scheduler A in a Tn+1 period, and
A virtual start time of a PiA,B that is received by the scheduler B is represented by S(PiA,B), and a virtual finish time of the PiA,B is represented by F(PiA,B). S(PiA,B)=max{v(PiA,B), F(Pi−1A,B)} where v(PiA,B) indicates a virtual time of the scheduler B when the scheduler B receives the PiA,B, F(Pi−1A,B) indicates a virtual finish time of a Pi−1A,B, and max {v(PiA,B), F(Pi−1A,B)} indicates a maximum value in v(PiA,B) and F(Pi−1A,B).
where c(PiA,B) indicates a resource that is provided by the storage array B and consumed by the PiA,B, which is one IOPS in this embodiment of the present invention; and d(PA,B(Tn+1)) indicates a value of a delay of each user A request that is received by the scheduler B in a Tn+1 period, and
Likewise, a virtual start time of a PkB,B that is received by the scheduler B is represented by S(PkB,B), and a virtual finish time of the PkB,B is represented by F(PkB,B). S(PkB,B)=max {v(PkB,B), F(Pk−1B,B)}, where v(PkB,B) indicates a virtual time of the scheduler B when the scheduler B receives the PiB,B, F(Pk−1B,B) indicates a virtual finish time of a Pk−1B,B, and max {v(PkB,B), F(Pk−1B,B)} indicates a maximum value in v(PkB,B) and F(Pk−1B,B).
where c(PkB,B) indicates a resource that is provided by the storage array B and consumed by the PkB,B, which is one IOPS in this embodiment of the present invention; and d(PB,B(Tn+1)) indicates a value of a delay of each user B request that is received by the scheduler B in a Tn+1 period, and
In a second implementation manner, a virtual start time of a PiA,A that is received by the scheduler A is represented by S(PiA,A), and a virtual finish time of the PiA,A is represented by F(PiA,A).
where v(PiA,A) indicates a virtual time of the scheduler A when the scheduler A receives the PiA,A; d(PA,A(Tn+1)) indicates a value of a delay of each user A request that is received by the scheduler A in a Tn+1 period, and
F(Pi−1A,A) indicates a virtual finish time of a Pi−1A,A; and
indicates a maximum value in v(PiA,A) and
For meanings of the virtual start time S(PiA,A) the virtual finish time F(PiA,A) and the virtual time v(PiA,A), refer to a Start-time Fairness Queuing (SFQ) algorithm, and details are not described in this embodiment of the present invention again. c(PiA,A) indicates a resource that is provided by the storage array A and consumed by the PiA,A, which is one IOPS in this embodiment of the present invention. Likewise, a virtual start time of a PkB,A that is received by the scheduler A is represented by S(PkB,A), and a virtual finish time of the PkB,A is represented by F(PkB,A).
where v(PkB,A) indicates a virtual time of the scheduler A when the scheduler A receives the PkB,A; d(PB,A(Tn)) indicates a value of a delay of each user B request that is received by the scheduler A in a Tn+1 period, and
F(Pk−1B,A) indicates a virtual finish time of a Pk−1B,A; and
indicates a maximum value in v(PkB,A) and
where c(PkB,A) indicates a resource that is provided by the storage array B and consumed by the PkB,A, which is one IOPS in this embodiment of the present invention.
A virtual start time of a PiA,B that is received by the scheduler B is represented by S(PiA,B), and a virtual finish time of the PiA,B is represented by F(PiA,B).
where v(PiA,B) indicates a virtual time of the scheduler B when the scheduler B receives the PiA,B; d(PA,B(Tn+1)) indicates a value of a delay of each user A request that is received by the scheduler B in a Tn+1 period, and
F(Pi−1A,B) indicates a virtual finish time of a Pi−1A,B; and
indicates a maximum value in v(PiA,B) and
where c(PiA,B) indicates a resource that is provided by the storage array B and consumed by the PiA,B, which is one IOPS in this embodiment of the present invention. Likewise, a virtual start time of a PkB,B that is received by the scheduler B is represented by S(PkB,B), and a virtual finish time of the PkB,B is represented by F(PkB,B).
where v(PkB,B) indicates a virtual time of the scheduler B when the scheduler B receives the PkB,B; d(PB,B(Tn+1)) indicates a value of a delay of each user B request received by the scheduler A in a Tn+1 period, and
F(Pk−1B,B) indicates a virtual finish time of a Pk−1B,B; and
indicates a maximum value in v(PkB,B) and
where c(PkB,B) indicates a resource that is provided by the storage array B and consumed by the PkB,B, which is one IOPS in this embodiment of the present invention.
The first manner of computing a virtual start time and a virtual finish time of a user request is used as an example. As shown in
where S(P1A,A)=0, c(PiA,A)=1, φA=2,
CA,B(Tn)=0, and NA,A(Tn)=0; then d(PA,A(Tn+1))=0, and F(P1A,A)=S(P1A,A)+½=0.5. Likewise, a virtual start time of the P2A,A is 0.5, and a virtual finish time of the P2A,A is 1; a virtual start time of the P3A,A is 1, and a virtual finish time of the P3A,A is 1.5; a virtual start time of the P4A,A is 1.5, and a virtual finish time of the P4A,A is 2; and a virtual start time of the P5A,A is 2, and a virtual finish time of the P5A,A is 2.5.
in
and details are not described herein again.
For the user B request P1B,A that is received by the scheduler A, a virtual start time of the P1B,A is computed: S(P1B,A)=max {v(P1B,A), F(P0B,A)}. Because the Tn+1 period is actually the first period, that is, the scheduler A does not receive any PkB,A previously, F(P0B,A) is empty, the P1B,A is received after initialization of the scheduler A is completed, and v(P1B,A)=0. A virtual finish time of the P1B,A is
where c(P1B,A)=1,
CB,B(Tn)=0, and NB,A(Tn)=0; then d(PB,A(Tn+1))=0, φB=1, and F(P1B,A)=1. Likewise, a virtual start time of the P2B,A is 1, and a virtual finish time of the P2B,A is 2; a virtual start time of the P3B,A is 2, and a virtual finish time of the P3B,A is 3; and a virtual start time of the P4B,A is 3, and a virtual finish time of the P4B,A is 4.
In this case, for the user B request P1B,B that is received by the scheduler B, the received P1B,B needs to be scheduled, and a virtual start time of the P1B,B is computed: S(P1B,B)=max {v(P1B,B), F(P0B,B)}. Because the Tn+1 period is actually the first period, that is, the scheduler B does not receive any PkB,B previously, F(P0B,B) is empty, the P1B,B is received after initialization of the scheduler B is completed, and v(P1B,B)=0. A virtual finish time of the P1B,B is
where c(P1B,B)=1,
CB,A(Tn)=0, and NB,B(Tn)=0; then d(PB,B(Tn+1))=0, φB=1, and F(P1B,B)=1. Likewise, a virtual start time of the P2B,B is 1, and a virtual finish time of the P2B,B is 2; a virtual start time of the P3B,B is 2, and a virtual finish time of the P3B,B is 3; a virtual start time of the P4B,B is 3, and a virtual finish time of the P4B,B is 4; and a virtual start time of the P5B,B is 4, and a virtual finish time of the P5B,B is 5.
The scheduler A computes virtual start times and virtual finish times of the P1A,A, P2A,A, P3A,A, P4A,A, and P5A,A, and computes virtual start times and virtual finish times of the P1B,A, P2B,A, P3B,A, and P4B,A. According to the virtual start times of the user requests that are received by the scheduler A, the user requests are ranked in a scheduling queue in ascending order of the virtual start times for processing, that is, an order from the queue head to the queue tail in the scheduling queue is P1A,A, P2A,A, P1B,A, P3A,A, P4A,A, P2B,A, P5A,A, P3B,A, and P4B,A, as shown in
The scheduler B computes virtual start times and virtual finish times of the P1B,B, P2B,B, P3B,B, P4B,B, and P5B,B respectively. According to the virtual start times of all the user requests that are received by the scheduler B, the user requests are ranked in a scheduling queue in ascending order of the virtual start times for processing, that is, an order from the queue head to the queue tail in the scheduling queue is P1B,B, P2B,B, P3B,B, P4B,B, and P5B,B, as shown in
A person skilled in the art should understand that, in specific implementation, a quantity of user requests that are received by the scheduler A and the scheduler B in a Tn+1 period may be much greater than the quantity of the user requests provided in the embodiment. A quantity of users is not limited to two. For ease of description in this embodiment of the present invention, in the Tn+1 period, the user A requests that are received by the scheduler A are P1A,A, P2A,A, P3A,A, P4A,A, and P5A,A, and the user B requests that are received by the scheduler A are P1B,A, P2B,A, P3B,A, and P4B,A; and the user B requests that are received by the scheduler B are P1B,B, P2B,B, P3B,B, P4B,B, and P5B,B.
According to the manner described above, the scheduler A computes a resource CA,A(Tn+1) that is provided by the storage array A and consumed by NA,A(Tn+1) user A requests received in the Tn+1 period, and a resource CB,A(Tn) that is provided by the storage array A and consumed by NB,A(Tn+1) received user B requests. The scheduler A computes a resource CA,A(Tn+1) that is provided by the storage array A and consumed by NA,A(Tn+1) user A requests received in the Tn+1 period, which is specifically that: in this embodiment of the present invention, one user A request consumes one IOPS, and a quantity of the user A requests received by the scheduler A in the Tn+1 period is NA,A(Tn+1)=5, and the consumed resource CA,A(Tn+1) that is provided by the storage array A is five IOPSs. Likewise, a quantity of the user B requests that are received by the scheduler A in the Tn+1 period is NB,A(Tn+1)=4, and the consumed resource CB,A(Tn+1) that is provided by the storage array A is four IOPSs. A quantity of the user A requests that are received by the scheduler B in the Tn+1 period is NA,B(Tn+1)=0, and the consumed resource CA,B(Tn+1) that is provided by the storage array B is 0 IOPS. Likewise, a quantity of the user B requests that are received by the scheduler B in the Tn+1 period is NB,B(Tn+1)=5, and the consumed resource CB,B(Tn+1) that is provided by the storage array B is five IOPSs. The coordinator A acquires that the resource CA,A(Tn+1) that is provided by the storage array A and consumed by the user A requests processed by the scheduler A in the Tn+1 period is five IOPSs, and the resource that is provided by the storage array B and consumed by the user A requests processed by the scheduler B in the Tn+1 period is zero IOPS. Therefore, a total quantity of resources that are consumed by the user A requests in the Tn+1 period is CA(Tn+1)=CA,A(Tn+1)+CA,B(Tn+1), where CA(Tn+1)=5 IOPSs. Likewise, the coordinator B acquires that a total quantity of the resources that are consumed by the user B requests in the Tn+1 period is CB(Tn+1)=CB,A(Tn+1)+CB,B(Tn+1), where CB(Tn+1)=9 IOPSs. The coordinator A sends a message to each of the scheduler A and the scheduler B, where the message carries CA(Tn+1), so that the scheduler A and the scheduler B acquire, from the coordinator A, that the quantity of IOPSs that are consumed by the user A requests in the Tn+1 period is 5. Likewise, the coordinator B sends a message to each of the scheduler A and the scheduler B, where the message carries CB(Tn+1), so that the scheduler A and the scheduler B acquire, from the coordinator B, that the quantity of IOPSs that are consumed by the user B requests in the Tn+1 period is 9.
As shown in
where
and CA,B(Tn+1)=0 and NA,A(Tn+1)=5 in the Tn+1 period; then d(PA,A(Tn+2))=0; C(P6A,A)=1, φA=2, and therefore, F(P6A,A)=3. Likewise, a virtual start time of a P7A,A is 3, and a virtual finish time of the P7A,A is 3.5; a virtual start time of a P8A,A is 3.5, and a virtual finish time of the P8A,A is 4; and a virtual start time of a P9A,A is 4, and a virtual finish time of the P9A,A is 4.5.
In the Tn+2 period, the scheduler A receives the first user B request P5B,A, where S(P5B,A)=max {v(P5B,A), F(P4B,A)}, v(P5B,A)=F(P4B,A)=4, and therefore, S(P5B,A)=4. A virtual finish time of the P5B,A is
where c(P5B,A)=1,
CB,B(Tn+1)=5, NB,A(Tn+1)=4, d(PB,A(Tn+2))=1.25, φB=1, and therefore, F(P5B,A)=6.25. Likewise, a virtual start time of a P6B,A is 6.25, and a virtual finish time of the P6B,A is 8.5; a virtual start time of a P7B,A is 8.5, and a virtual finish time of the P7B,A is 10.75; and a virtual start time of a P8B,A is 10.75, and a virtual finish time of the P8B,A is 13.
The scheduler A computes virtual start times and virtual finish times of the P6A,A, P7A,A, P8A,A, and P9A,A, and the scheduler A computes virtual start times and virtual finish times of the P5B,A, P6B,A, P7B,A, and P8B,A. According to the virtual start times of the user requests that are received by the scheduler A, the user requests are ranked in a scheduling queue in ascending order of the virtual start times for processing, that is, an order from the queue head to the queue tail in the scheduling queue is P6A,A, P7A,A, P8A,A, P9A,A, P5B,A, P6B,A, P7B,A, and P8B,A, as shown in
In the Tn+2 period, the scheduler B receives the first user A request P1A,B and the first user B request P6B,B. It is assumed that the scheduler B receives the P1A,B and the P6B,B at a same moment. A virtual start time of the P6B,B is S(P6B,B)=max{v(P6B,B), F(P5B,B)}, where v(P6B,B)=F(P5B,B)=5, and therefore, S(P6B,B)=5. A virtual finish time of the P6B,B is
where c(P6B,B)=1,
and φB=1, and therefore, F(P6B,B)=6.8. Likewise, a virtual start time of a P7B,B is 6.8, and a virtual finish time of the P7B,B is 8.6; a virtual start time of a P8B,B is 8.6, and a virtual finish time of the P8B,B is 10.4. A virtual start time of the P1A,B is S(P1A,B)=max{v(P1A,B), F(P0A,B)}, where F(P0A,B)=0 and v(P1A,B)=v(P6B,B)=5 and therefore, S(P1A,B)=5. A virtual finish time of the P1A,B is
where c(P1A,B)=1,
CA,A(Tn+1)=5, and NA,A(Tn+1)=0; then d(PA,B(Tn+2))=0, and φA=2, and therefore, F(P1A,B)=5.5. Likewise, a virtual start time of a P2A,B is 5.5, and a virtual finish time of the P2A,B is 6; and a virtual start time of a P3A,B is 6, and a virtual finish time of the P3A,B is 6.5.
The scheduler B adds the user requests to a scheduling queue, and the user requests are ranked in the scheduling queue in ascending order of the virtual start times, that is, an order from the queue head to the queue tail in the scheduling queue is P1A,B, P6B,B, P2A,B, P3A,B, P7B,B, and P8B,B, as shown in
The method for scheduling a user request in a distributed resource system provided by this embodiment of the present invention may be further applied to a scenario shown in
Step 1201. The Sd acquires, in the Tn+1 period and from a coordinator Gk of a user z, a resource Cz(Tn) that is consumed by the user z request in a Tn period, where
d and k are natural numbers, 1≦d≦M, and 1≦k≦Y; a resource weight of the user z is φz; Cz,x(Tn) is a quantity of resources that are provided by the Rx and consumed by Nz,x(Tn) user z requests received by the Sx in the Tn period; z indicates an identifier of the user; and
indicates the sum of resources that are provided by the R1 to the RM and consumed by user z requests received by the S1 to the SM in the Tn period.
In step 1201, Cz,x(Tn) specifically includes the sum of resources that are provided by the Rx and consumed by Nz,x(Tn) user z requests received by the Sx in the Tn period. Nz,x(Tn) indicates a quantity of user z requests that are received by the Sx in the Tn period. The Sx sends Cz,x(Tn) to a Gk, and the Gk acquires Cz(Tn) according to
A manner of acquiring Cz(Tn) is that the Sx proactively sends Cz,x(Tn) to the Gk. Another manner is that the Sx receives a Gk request, and sends Cz,x(Tn) to the Gk according to the Gk request. The Gk acquires Cz,x(Tn) according to
The Sx stores Nz,x(Tn) and Cz,x(Tn).
Step 1202. The Sd schedules, according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn), a Piz,d by using a scheduling algorithm, where the Piz,d is the ith user z request received by the Sd, and Cz,d(Tn+1) is a quantity of resources that are provided by an Rd and consumed by Nz,d(Tn) user z requests received by the Sd in the Tn period.
The Sd schedules, according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn), the Piz,d by using a scheduling algorithm, thereby implementing global scheduling on the user z request and ensuring a performance requirement of the user z. Step 1202 specifically includes:
That the Sd schedules, according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn), the Piz,d by using a scheduling algorithm specifically includes that: the Sd computes a virtual start time S(Piz,d) and a virtual finish time F(Piz,d) of the Piz,d according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn), and adds the Piz,d to a scheduling queue, where the scheduling queue ranks the user request according to a value of the virtual start time of the user request.
where v(Piz,d) indicates a virtual time of the Sd when the Sd receives the Piz,d, and c(Piz,d) indicates a resource that is provided by the Rd and consumed by the Piz,d; or,
where v(Piz,d) indicates a virtual time of the Sd when the Sd receives the Piz,d, and c(Piz,d) indicates a resource that is provided by the Rd and consumed by the Piz,d.
For meanings of the virtual start time S(PiA,A), the virtual finish time F(PiA,A), and the virtual time v(P1A,A), refer to a Start-time Fairness Queuing (SFQ) algorithm, and details are not described in this embodiment of the present invention again.
d(Pz,d(Tn+1)) indicates a value of a delay of each Piz,d received by the Sd in the Tn+1 period.
When either of Cz(Tn)−Cz,d(Tn) and Nz,d(Tn) is 0, d(Pz,d(Tn+1))=0.
c(Piz,d) may be specifically an TOPS or bandwidth that is consumed by the Piz,d.
Step 1201 specifically includes:
the Gk is determined according to z % Y=k, where z % Y indicates that a modulo operation is performed on z and Y; or the Gk is determined according to Hash(z) % Y=k, where Hash(z) indicates that z is computed by using a hash function, and Hash(z) % Y indicates that a modulo operation is performed on a value and Y, where the value is obtained by computing z by using the hash function.
In the application scenario shown in
In the application scenario shown in
In the application scenario shown in
In a system architecture in this embodiment of the present invention, the user z request can be scheduled without depending on a user agent.
In this embodiment of the present invention, that a resource is an IOPS is used as an example, and generally, one user request consumes one IOPS; or that a resource is network bandwidth is used as an example, and a resource that is consumed by one user request is network bandwidth for the user request. When a resource consumed by a user request is network bandwidth, a size of a resource that is provided by a resource-providing entity and consumed by each user request is determined by the user request.
In this embodiment of the present invention, scheduling a user request by using a scheduling algorithm includes: computing a virtual start time and a virtual finish time of the user request according to the scheduling algorithm in this embodiment of the present invention; and adding the user request to a scheduling queue, where the user request is ranked in the scheduling queue according to a value of the virtual start time of the user request. When it is not required to schedule the user request, the virtual start time and the virtual finish time of the user request need to be computed according to the scheduling algorithm in this embodiment of the present invention, and the user request does not need to be added to a scheduling queue for ranking
In this embodiment of the present invention, Sd, Sx, Rx, Gy, and Gk are merely used to mark a specific device each, where the device herein may be a physical device or a logical device. Likewise, a device may also be expressed in a manner of first, second, and the like. There is only a difference in specific expression manners, which does not impose a limitation on the solution of the present invention.
As shown in
the acquiring unit 1301 is configured to acquire, in a Tn+1 and from a coordinator Gk of a user z, a resource Cz(Tn) that is consumed by a user z request in a Tn period, where
k is a natural number, and 1≦k≦Y; a resource weight of the user z is φz; Cz(Tn) is a quantity of resources that are provided by the Rx and consumed by Nz,x(Tn) user z requests received by the Sx in the Tn period; and z indicates an identifier of the user; and
the scheduling unit 1302 is configured to schedule, according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn), a Piz,d by using a scheduling algorithm, where the Piz,d is the ith user z request received by the Sd, and Cz,d(Tn) is a quantity of resources that are provided by an Rd and consumed by Nz,d(Tn) user z requests received by the Sd in the Tn period.
Specifically, that the scheduling unit 1302 is configured to schedule, according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn), a Piz,d by using a scheduling algorithm specifically includes:
computing a virtual start time S(Piz,d) and a virtual finish time F(Piz,d) of the Piz,d according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn); and adding the Piz,d to a scheduling queue, where the scheduling queue ranks the user request according to a value of the virtual start time of the user request.
where v(Piz,d) indicates a virtual time of the Sd when the Sd receives the Piz,d, and c(Piz,d) indicates a resource that is provided by the Rd and consumed by the Piz,d.
Specifically,
where v(Piz,d) indicates a virtual time of the Sd when the Sd receives the Piz,d, and c(Piz,d) indicates a resource that is provided by the Rd and consumed by the Piz,d.
For meanings of the virtual start time S(PiA,A), the virtual finish time F(PiA,A), and the virtual time v(PiA,A), refer to a Start-time Fairness Queuing (SFQ) algorithm, and details are not described in this embodiment of the present invention again.
Specifically, when either of Cz(Tn)−Cz,d(Tn) and Nz,d(Tn) is 0, d(Pz,d(Tn+1))=0.
The Sd schedules, according to φz, Cz(Tn), Cz,d(Tn), the Piz,d by using the scheduling algorithm. The user z request can be scheduled without depending on a user agent. In addition, the Sd schedules, according to φz, Cz(Tn), Cz,d(Tn), and Nz,d(Tn), the Piz,d by using the scheduling algorithm, thereby implementing global scheduling on the user z request and ensuring a performance requirement of the user z.
In an implementation manner of another resource scheduling method in a distributed resource system, the distributed resource system includes multiple schedulers, where a first scheduler in the multiple schedulers acquires, from a coordinator of a first user, the sum of resources that are consumed by a user request of the first user in the multiple schedulers in a previous period; and
the first scheduler schedules the user request of the first user according to a resource weight of the first user, the sum of resources that are consumed by the user request of the first user in the multiple schedulers in the previous period, a resource that is consumed by the user request of the first user in the first scheduler in the previous period, and a quantity of user requests of the first user received by the first scheduler in the previous period.
Further, that the first scheduler schedules the user request of the first user according to a resource weight of the first user, the sum of resources that are consumed by the user request of the first user in the multiple schedulers in the previous period, a resource that is consumed by the user request of the first user in the first scheduler in the previous period, and a quantity of user requests of the first user received by the first scheduler in the previous period specifically includes that:
the first scheduler computes a virtual start time and a virtual finish time of the user request of the first user according to the resource weight of the first user, the sum of resources that are consumed by the user request of the first user in the multiple schedulers in the previous period, the resource that is consumed by the user request of the first user in the first scheduler in the previous period, and the quantity of user requests of the first user received by the first scheduler in the previous period; and adds the user request of the first user to a scheduling queue, where the scheduling queue ranks the user request of the first user according to a value of the virtual start time of the user request.
Another distributed resource system includes multiple schedulers. As shown in
the first acquiring unit 1301 is configured to acquire, from a coordinator of a first user, the sum of resources that are consumed by a user request of the first user in the multiple schedulers in a previous period; and
the scheduling unit 1302 is configured to schedule the user request of the first user according to a resource weight of the first user, the sum of resources that are consumed by the user request of the first user in the multiple schedulers in the previous period, a resource that is consumed by the user request of the first user in the first scheduler in the previous period, and a quantity of user requests of the first user received by the first scheduler in the previous period.
Further, the scheduling unit 1302 is specifically configured to compute a virtual start time and a virtual finish time of the user request of the first user according to the resource weight of the first user, the sum of resources that are consumed by the user request of the first user in the multiple schedulers in the previous period, the resource that is consumed by the user request of the first user in the first scheduler in the previous period, and the quantity of user requests of the first user received by the first scheduler in the previous period; and add the user request of the first user to a scheduling queue, where the scheduling queue ranks the user request of the first user according to a value of the virtual start time of the user request.
The technical solutions provided by the embodiments of the present invention may also be applied to another scenario. For example, a distributed resource system is a distributed computing system, and a resource-providing entity provides a computing resource for a user request; or, a distributed resource system may be a distributed network system, and a resource-providing entity provides network bandwidth for a user request; or, a resource-providing entity may further provide a memory resource for a user request.
A person of ordinary skill in the art may be aware that, in combination with the examples described in the embodiments disclosed in this specification, units and algorithm steps may be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and design constraint conditions of the technical solutions.
It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, refer to a corresponding process in the foregoing method embodiments, and details are not described herein again.
In the several embodiments provided in the present application, it should be understood that the unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit.
When the functions are implemented in the form of a software functional unit and sold or used as an independent product, the functions may be stored in a computer-readable non-volatile storage medium. Based on such an understanding, the technical solutions of the present invention essentially, or the part contributing to the prior art, or some of the technical solutions may be implemented in a form of a software product. The software product is stored in a non-volatile storage medium, and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or some of the steps of the methods described in the embodiments of the present invention. The foregoing non-volatile storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (Read-Only Memory, ROM), a magnetic disk, or an optical disc.
This application is a continuation of International Application No. PCT/CN2014/095381, filed on Dec. 29, 2014, which is hereby incorporated by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
6434631 | Bruno | Aug 2002 | B1 |
6480861 | Kanevsky | Nov 2002 | B1 |
6519595 | Rose | Feb 2003 | B1 |
6747976 | Bensaou | Jun 2004 | B1 |
6888842 | Kirkby | May 2005 | B1 |
6909691 | Goyal | Jun 2005 | B1 |
7665090 | Tormasov | Feb 2010 | B1 |
7697844 | Guo | Apr 2010 | B2 |
7761875 | Karamanolis | Jul 2010 | B2 |
7823154 | Wang | Oct 2010 | B2 |
8165033 | Zhang | Apr 2012 | B1 |
8392633 | Gulati | Mar 2013 | B2 |
8819687 | Chung | Aug 2014 | B2 |
20030050954 | Tayyar | Mar 2003 | A1 |
20040114602 | Ko | Jun 2004 | A1 |
20050147103 | Yang | Jul 2005 | A1 |
20060280119 | Karamanolis et al. | Dec 2006 | A1 |
20070064711 | Wang et al. | Mar 2007 | A1 |
20110055479 | West | Mar 2011 | A1 |
20110276972 | Chung | Nov 2011 | A1 |
20130044755 | Liu | Feb 2013 | A1 |
20150324230 | Xu | Nov 2015 | A1 |
Number | Date | Country |
---|---|---|
102495758 | Jun 2012 | CN |
Entry |
---|
Goyal et al., Start-time Fair Queuing: A Scheduling Algorithm for Integrated Services Packet Switching Networks, ACM SIGCOMM '96, Aug. 1996. |
Zhang, Yu et al., “DifferCloudStor: Differentiated Quality of Service for Cloud Storage,” APMRC, 2012 Digest. IEEE, Oct. 2012 Total 9 pages. |
Dong, Rongsheng et al. “On the Fault-tolerance Model of object-based, Distributed Real-Time System,” Computer Engineering and Applications 7 (2004): 018, total 5 pages. Abstract in English. English Abstract Only. |
Zhang, Fan et al. “Research on Schedule Algorithm for Packet Switching Networks—SFQ+,” Computer Engineering 4 (2007): 026, English Translation attached. total 12 pages. |
Eman Elghoneimy et al., “Resource allocation and scheduling in cloud computing,” Computing, Networking & Communications (ICNC) 2012 Intl. Conference on IEEE, Jan. 30, 2012. English abstract. XP032130688, total 2 pages. |
Pawan Goyal et al., “Start-time Fair Queuing: A Scheduling Algorithm for Integrated Services Packet Switching Networks,” Technical Report TR-96-02, Dept. of Computer Sciences, Univ. Texas at Austin. 1996. XP002404038, total 28 pages. |
Supplementary European Search Report for EP Appl. No. 14891590, dated Sep. 13, 2016. 2 pages. |
Number | Date | Country | |
---|---|---|---|
20160188367 A1 | Jun 2016 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2014/095381 | Dec 2014 | US |
Child | 14932628 | US |