Method and apparatus for allocating resource
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsFangyuan Sun, Jinlin Wu
Life of this patent
Estimating the term…
Loading patent…
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsFangyuan Sun, Jinlin Wu
Estimating the term…
A method and an apparatus for allocating a resource are provided according to the embodiments. The method may include: extracting a resource category matching a target subserver and a required quota corresponding to the resource category from a request sent by a client side; determining a number of subservers is a subserver group receiving the request; determining a globally available quota and a total limit matching the resource category; determining a limit matching the resource category in the target subserver based on the total limit and the number of subservers; and performing resource allocation for a resource quantity corresponding to the required quota of the request based on a comparison between the required quota and the limit of the target subserver. The embodiment achieves reducing the number of applications for the globally available quota, thus accelerating processing the request by the server.
A method for allocating a resource, the method comprising:
An apparatus for allocating a resource, comprising:
A non-transitory computer readable medium, storing a computer program thereon, wherein the program, when executed by a processor, causes the processor to perform operations, the operations comprising:
Dependencies are inferred from the claim text.