METHOD AND APPARATUS FOR BUFFERING AND OBTAINING RESOURCES, RESOURCE BUFFERING SYSTEM
First Claim
1. A resource buffering method, comprising:
- 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.
4 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, 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.
19 Citations
10 Claims
-
1. A resource buffering method, comprising:
-
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. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A resource buffering apparatus, comprising:
-
an obtaining module, configured to obtain an access popularity value of a resource from a database at intervals of a first preset time, and obtain load values of cache servers from the database if determining that the access popularity value reaches a preset first threshold; a first determining module, configured to determine a duplication cache server for duplicating the resource according to the access popularity value and the load values; and a first notifying module, configured to notify the duplication cache server to duplicate the resource from a cache server that stores the resource and buffer the resource. - View Dependent Claims (8, 9)
-
-
10. A resource obtaining apparatus, comprising:
-
a second receiving module, configured to receive a resource query request; a third determining module, configured to query a database to check whether a requested resource is buffered according to the resource query request; a third receiving module, configured to receive information about all cache servers that buffer the resource and load values of all cache servers that buffer the resource, wherein the information and the load values are sent by the database; a fourth determining module, configured to select a target download cache server according to the information about all cache servers that buffer the resource and the load values of all cache servers that buffer the resource; and a third notifying module, configured to notify a user to download the resource from the target download cache server.
-
Specification