IP Library Granted Patent US 9,882,975
Granted Patent B2
US 9,882,975 · App. 15/204,816 · Granted Jan 30, 2018

Method and apparatus for buffering and obtaining resources, resource buffering system

Inventors: Gang Lan (Chengdu, CN); Rui Wang (Chengdu, CN); Chen Gong (Shenzhen, CN); Shuguo Zhou (Chengdu, CN)
Assignee: Huawei Digital Technologies (Cheng Du) Co., Limited
H04L67/1029H04L67/1002H04L67/1012H04L67/1023H04L67/2852
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,882,975
App. No.
15/204,816
Granted
Jan 30, 2018
Kind
B2
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.

Claims (35)

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.

2. The method according to claim 1 , further comprising:

obtaining a duplication completion notification sent by the one or more duplication cache servers; and

writing the duplication completion notification and duplication information into a database, wherein the duplication information is of the one or more duplication cache servers that buffer the resource.

3. The method according to claim 1 , further comprising:

determining a level of a quantity of downloads of the resource in a time period according to the access popularity value;

sorting all cache servers except the first cache server that already buffers the resource in order of the first load values, and obtaining a sorting result; and

determining a required quantity of duplication cache servers according to the level of the quantity of downloads, and selecting one or more cache servers as the one or more duplication cache servers based on the sorting result and the required quantity of the duplication cache servers, wherein the one or more duplication cache servers are the cache servers whose load values are lower than a preset second threshold.

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.

5. The resource buffering apparatus according to claim 4 , wherein the processor is further configured to perform operations of:

obtaining a duplication completion notification sent by the one or more duplication cache servers; and

writing the duplication completion notification and duplication information into a database, wherein the duplication information is of the one or more duplication cache servers that buffer the resource.

6. The resource buffering apparatus according to claim 4 , wherein the processor is further configured to perform operations of:

determining a level of a quantity of downloads of the resource in a time period according to the access popularity value;

sorting all cache servers except the first cache server that already buffers the resource in order of the first load values, and obtaining a sorting result; and

determining the required number of duplication cache servers according to the level of the number of downloads, and selecting one or more cache servers as the one or more duplication cache servers in the sorting result according to the required number of the duplication cache servers, wherein the one or more duplication cache servers are the cache servers whose load value are lower than a preset second threshold.

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.

8. The non-transitory computer readable storage medium according to claim 7 , wherein the operations further comprise:

obtaining a duplication completion notification sent by the one or more duplication cache servers; and

writing the duplication completion notification and duplication information into a database, wherein the duplication information is of the one or more duplication cache servers that buffer the resource.

9. The non-transitory computer readable storage medium according to claim 7 , wherein the operations further comprise:

determining a level of a quantity of downloads of the resource in a time period according to the access popularity value;

sorting all cache servers except the first cache server that already buffers the resource in order of the first load values, and obtaining a sorting result; and

determining a required quantity of duplication cache servers according to the level of the quantity of downloads, and selecting one or more cache servers as the one or more duplication cache servers based on the sorting result and the required quantity of the duplication cache servers, wherein the one or more duplication cache servers are the cache servers whose load values are lower than a preset second threshold.

Assignments (3)
CORRECTIVE ASSIGNMENT TO CORRECT THE CONVEYING PARTY'S NAME ON THE COVER SHEET PREVIOUSLY RECORDED AT REEL: 060907 FRAME: 0736. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT. Recorded Oct 14, 2022
From: HUAWEI DIGITAL TECHNOLOGIES(CHENG DU) CO., LIMITED.
To: CHENGDU HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 061872/0024 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 26, 2022
From: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) CO.
To: CHENGDU HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 060907/0736 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 26, 2016
From: LAN, GANG; WANG, RUI; GONG, CHEN; ZHOU, SHUGUO
To: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) CO., LIMITED
Reel/Frame 039860/0358 →
Priority Claims (1)
CN 2009 1 0207231 · Oct 13, 2009 · national
Continuity (3)
Continuation 13446777 · Apr 13, 2012
Continuation PCTCN2010077639 · Oct 11, 2010
Related Publication 20160323369A1 · Nov 3, 2016