METHOD AND APPARATUS FOR BUFFERING AND OBTAINING RESOURCES, RESOURCE BUFFERING SYSTEM
First Claim
1. A resource buffering method implemented by a hardware processor of a resource buffering apparatus, the method comprising:
- obtaining an access popularity value of a resource, and obtaining first load values of cache servers when determining that the access popularity value reaches a preset first threshold; and
determining one or more duplication cache servers from the cache servers for duplicating the resource according to the access popularity value and the first load values, and notifying the one or more duplication cache servers to duplicate the resource from a first cache server that stores the resource;
when the access popularity value of the resource is lower than the first threshold, determining a second cache server among the cache servers that already buffers the resource according to second load values of all cache servers that buffer the resource and a required quantity of duplicates of the resource, and notifying the determined second cache server to delete the resource;
wherein the determined second cache server has a load higher than other cache servers that already buffer the resource.
3 Assignments
0 Petitions
Accused Products
Abstract
A method and an apparatus for buffering and obtaining resources as well as a resource buffering system are disclosed. The method includes: obtaining an access popularity value of a resource from a database at intervals of a first preset time, and obtaining load values of cache servers from the database if determining that the access popularity value reaches a preset first threshold; and determining a duplication cache server for duplicating the resource according to the access popularity value and the load values, and notifying the duplication cache server to duplicate the resource from a cache server that stores the resource and buffer the resource. The method overcome the problems in the prior art, namely, the same resource is buffered in only one cache server and the relatively idle cache servers are unable to share loads with busy cache servers. The method improves extensibility and working efficiency of the buffering system.
-
Citations
9 Claims
-
1. A resource buffering method implemented by a hardware processor of a resource buffering apparatus, the method comprising:
-
obtaining an access popularity value of a resource, and obtaining first load values of cache servers when determining that the access popularity value reaches a preset first threshold; and determining one or more duplication cache servers from the cache servers for duplicating the resource according to the access popularity value and the first load values, and notifying the one or more duplication cache servers to duplicate the resource from a first cache server that stores the resource; when the access popularity value of the resource is lower than the first threshold, determining a second cache server among the cache servers that already buffers the resource according to second load values of all cache servers that buffer the resource and a required quantity of duplicates of the resource, and notifying the determined second cache server to delete the resource;
wherein the determined second cache server has a load higher than other cache servers that already buffer the resource. - View Dependent Claims (2, 3)
-
-
4. A resource buffering apparatus, comprising:
-
a processor; and a memory, wherein the processor is configured to execute computer-executable instructions stored in the memory to perform operations of; obtaining an access popularity value of a resource, and obtaining first load values of cache servers where determining that the access popularity value reaches a preset first threshold; and determining one or more duplication cache servers from the cache servers for duplicating the resource according to the access popularity value and the first load values, and notifying the one or more duplication cache servers to duplicate the resource from a first cache server that stores the resource; when the access popularity value of the resource is lower than the first threshold, determining a second cache server among the cache servers that already buffers the resource according to second load values of all cache servers that buffer the resource and a required quantity of duplicates of the resource, and notifying the determined second cache server to delete the resource;
wherein the determined second cache server has a load higher than other cache servers that already buffer the resource. - View Dependent Claims (5, 6)
-
-
7. A non-transitory computer readable storage medium, storing computer instructions for buffering a resource, wherein the computer instructions when executed by a hardware processor instructs the hardware processor to implement following operations:
-
obtaining an access popularity value of a resource, and obtaining first load values of cache servers when determining that the access popularity value reaches a preset first threshold; and determining one or more duplication cache servers from the cache servers for duplicating the resource according to the access popularity value and the first load values, and notifying the one or more duplication cache servers to duplicate the resource from a first cache server that stores the resource; when the access popularity value of the resource is lower than the first threshold, determining a second cache server among the cache servers that already buffers the resource according to second load values of all cache servers that buffer the resource and a required quantity of duplicates of the resource, and notifying the determined second cache server to delete the resource;
wherein the determined second cache server has a load higher than other cache servers that already buffer the resource. - View Dependent Claims (8, 9)
-
Specification