# US 10,956,990 B2 · Methods and apparatuses for adjusting the distribution of partitioned data

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,956,990 B2
- Document ID: US10956990B2
- Status: Granted
- Kind: B2
- Application number: 15/780,380
- Filed: 2016-12-16
- Published: 2018-12-13
- Granted: 2021-03-23
- Earliest claimed: 2015-12-30
- Assignees: Alibaba Group Holding Limited
- Applicants: Alibaba Group Holding Limited
- Inventors: Haiyong Zhang; Jing Lu; Wenhui Yao; Chengyu Dong; Jiaji Zhu
- Web page: https://patentgrep.com/patent/US10956990B2

## CPC

- G06Q 40/125: {Finance or payroll}
- G06F 16/122: {using management policies (point-in-time backing up or restoration of persistent data G06F11/1446; file migration policies for HSM systems G06F16/185)}
- G06F 16/13: File access structures, e.g. distributed indices (arrangements of input from, or output to, record carriers G06F3/06)
- G06F 16/182: Distributed file systems
- G06F 16/278: {Data partitioning, e.g. horizontal or vertical partitioning}
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The disclosure discloses a method for adjusting distribution of partitioned data. Access frequency information of to-be-processed partitioned data is acquired when an adjustment time corresponding to the to-be-processed partitioned data has arrived; revenue data of each of data centers corresponding to the partitioned data is then determined according to the access frequency information and a preset revenue function; and finally, optimal distribution information is determined according to the revenue data of each of the data centers and a quantity of copies, and a position of each of the copies in each of the data centers is adjusted according to the optimal distribution information. Therefore, without even having to provide additional memory or hard disk for storage, this disclosure dynamically optimizes the distribution status of the partitioned data according to access frequencies and characteristics of the partitioned data, thus reducing transmission bandwidth requirements among data centers.

## Claims

### Claim 1

A method comprising:
acquiring, by a storage system, access frequency information of partitioned data when an adjustment time corresponding to the partitioned data has occurred;
determining, by the storage system, revenue data for each of a plurality of data centers corresponding to the partitioned data according to the access frequency information and a preset revenue function, the preset revenue function generating revenue data based on a number of past accesses of the partitioned data for a given data center and data traffic that includes the partitioned data for the given data center;
generating, by the storage system, optimal distribution information according to the revenue data of each of the data centers and a quantity of copies of the partitioned data; and
adjusting, by the storage system, a position of each of the copies in each of the data centers according to the optimal distribution information.

### Claim 2 (depends on 1)

The method of claim 1, the acquiring access frequency information of the partitioned data when an adjustment time corresponding to the partitioned data has arrived comprising one of:
acquiring, by the storage system, sub-access frequency information reported by each of the data centers within a preset time period when a current time is determined to be the adjustment time; and
acquiring, by the storage system, sub-access frequency information reported by each of the data centers within a preset time period when receiving an adjustment trigger message.

### Claim 3 (depends on 1)

The method of claim 1, the access frequency information comprising sub-access frequency information of the partitioned data in each of the data centers, the sub-access frequency information comprising at least a size of the partitioned data, a number of access times that the partitioned data is accessed from a data center corresponding to the sub-access frequency information, data traffic of the partitioned data generated from the data center, and an average bandwidth across machine rooms.

### Claim 4 (depends on 1)

The method of claim 1, the revenue data proportional to the number of access times, the data traffic, and the average bandwidth across machine rooms, and inversely proportional to the size of the partitioned data.

### Claim 5 (depends on 1)

The method of claim 1, the generating the optimal distribution information according to the revenue data of each of the data centers and a quantity of copies comprising:
ranking, by the storage system, the data centers sequentially in a descending order using the revenue data;
acquiring, by the storage system, identifiers having the same quantity as that of the ranked data centers; and
using, by the storage system, the acquired identifiers as the optimal distribution information.

### Claim 6 (depends on 5)

The method of claim 5, the adjusting a position of each of the copies in each of the data centers according to the optimal distribution information comprising:
acquiring, by the storage system, real-time distribution information of the partitioned data, the real-time distribution information comprising identifiers of data centers where the copies of the partitioned data are located;
determining, by the storage system, whether the real-time distribution information is consistent with the optimal distribution information;
generating, by the storage system, a data replication task using identifiers found to be different between the real-time distribution information and the optimal distribution information if the real-time distribution information is inconsistent with the optimal distribution information; and
storing, by the storage system via the data replication task, the copies of the partitioned data to the data centers corresponding to the identifiers in the optimal distribution information.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
adding, by the storage system, one to the number of access times before the data center returns a copy corresponding to partitioned data to a client; and
adding, by the storage system, the data volume of the copy to the data traffic before the data center returns the copy corresponding to the partitioned data to the client.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
acquiring, by the storage system, to-be-written partitioned data included in a data writing request sent by a client and determining whether the data writing request includes writing option information;
determining, by the storage system, data centers for allocating the to-be-written partitioned data according to distribution information specified by the user if the data writing request includes writing option information of cross-data center distribution and returning a determination result to the client, causing the client to write the to-be-written partitioned data according to the determination result; and
determining, by the storage system, a data center for allocating the to-be-written partitioned data according to an identifier of the data center where the client is located and is included in the data writing request if the data writing request includes default writing option information or does not include any writing option information and returning a determination result to the client, such that the client writes the to-be-written partitioned data according to the determination result.

### Claim 9 (depends on 7)

The method of claim 7, further comprising:
returning, by the storage system to the client, distribution information of partitioned data corresponding to a data reading request when receiving the data reading request sent by the client, causing the client to select, according to the distribution information, partitioned data corresponding to the data center where the client is located and reads the partitioned data.

### Claim 10

A distributed file storage system comprising:
a plurality of data centers, each data center configured to store a plurality of copies of partitioned data; and
a device for adjusting distribution of partitioned data, the device configured to:
acquire access frequency information of the partitioned data when an adjustment time corresponding to the partitioned data has arrived,
determine revenue data for each of the data centers corresponding to the partitioned data according to the access frequency information and a preset revenue function, the preset revenue function generating revenue data based on a number of past accesses of the partitioned data for a given data center and data traffic that includes the partitioned data for the given data center
generate optimal distribution information according to the revenue data of each of the data centers and a quantity of copies of the partitioned data, and
adjust a position for each of the copies in each of the data centers according to the optimal distribution information.

### Claim 11 (depends on 10)

The system of claim 10, the device for adjusting distribution of partitioned data further configured to:
acquire real-time distribution information of the partitioned data, the real-time distribution information comprising identifiers of data centers where the copies of the partitioned data are located;
determine whether the real-time distribution information is consistent with the optimal distribution information;
generate a data replication task using identifiers found to be different between the real-time distribution information and the optimal distribution information if the real-time distribution information is inconsistent with the optimal distribution information; and
store, via the data replication task, the copies of the partitioned data to the data centers corresponding to the identifiers in the optimal distribution information.

### Claim 12

A device comprising:
a processor; and
a storage medium for tangibly storing thereon program logic for execution by the processor, the stored program logic comprising:
logic, executed by the processor, for acquiring access frequency information of partitioned data when an adjustment time corresponding to the partitioned data has occurred,
logic, executed by the processor, for determining revenue data for each of a plurality of data centers corresponding to the partitioned data according to the access frequency information and a preset revenue function, the preset revenue function generating revenue data based on a number of past accesses of the partitioned data for a given data center and data traffic that includes the partitioned data for the given data center
logic, executed by the processor, for generating optimal distribution information according to the revenue data of each of the data centers and a quantity of copies of the partitioned data, and
logic, executed by the processor, for adjusting a position of each of the copies in each of the data centers according to the optimal distribution information.

### Claim 13 (depends on 12)

The device of claim 12, the logic for acquiring access frequency information of the partitioned data when an adjustment time corresponding to the partitioned data has arrived comprising one of:
logic, executed by the processor, for acquiring sub-access frequency information reported by each of the data centers within a preset time period when a current time is determined to be the adjustment time; and
logic, executed by the processor, for acquiring sub-access frequency information reported by each of the data centers within a preset time period when receiving an adjustment trigger message.

### Claim 14 (depends on 12)

The device of claim 12, the access frequency information comprising sub-access frequency information of the partitioned data in each of the data centers, the sub-access frequency information comprising at least a size of the partitioned data, a number of access times that the partitioned data is accessed from a data center corresponding to the sub-access frequency information, data traffic of the partitioned data generated from the data center, and an average bandwidth across machine rooms.

### Claim 15 (depends on 12)

The device of claim 12, the revenue data proportional to the number of access times, the data traffic, and the average bandwidth across machine rooms, and inversely proportional to the size of the partitioned data.

### Claim 16 (depends on 12)

The device of claim 12, the logic for generating the optimal distribution information according to the revenue data of each of the data centers and a quantity of copies comprising:
logic, executed by the processor, for ranking the data centers sequentially in a descending order using the revenue data;
logic, executed by the processor, for acquiring identifiers having the same quantity as that of the ranked data centers; and
logic, executed by the processor, for using the acquired identifiers as the optimal distribution information.

### Claim 17 (depends on 16)

The device of claim 16, the logic for adjusting a position of each of the copies in each of the data centers according to the optimal distribution information comprising:
logic, executed by the processor, for acquiring real-time distribution information of the partitioned data, the real-time distribution information comprising identifiers of data centers where the copies of the partitioned data are located;
logic, executed by the processor, for determining whether the real-time distribution information is consistent with the optimal distribution information; and
logic, executed by the processor, for generating a data replication task using identifiers found to be different between the real-time distribution information and the optimal distribution information if the real-time distribution information is inconsistent with the optimal distribution information; and
logic, executed by the processor, for storing, via the data replication task, the copies of the partitioned data to the data centers corresponding to the identifiers in the optimal distribution information.

### Claim 18 (depends on 17)

The device of claim 17, the program logic further comprising:
logic, executed by the processor, for adding one to the number of access times before the data center returns a copy corresponding to partitioned data to a client; and
logic, executed by the processor, for adding the data volume of the copy to the data traffic before the data center returns the copy corresponding to the partitioned data to the client.

### Claim 19 (depends on 18)

The device of claim 18, the program logic further comprising:
logic, executed by the processor, for acquiring to-be-written partitioned data included in a data writing request sent by a client and determining whether the data writing request includes writing option information;
logic, executed by the processor, for determining data centers for allocating the to-be-written partitioned data according to distribution information specified by the user if the data writing request includes writing option information of cross-data center distribution and returning a determination result to the client, causing the client to write the to-be-written partitioned data according to the determination result; and
logic, executed by the processor, for determining a data center for allocating the to-be-written partitioned data according to an identifier of the data center where the client is located and is included in the data writing request if the data writing request includes default writing option information or does not include any writing option information and returning a determination result to the client, such that the client writes the to-be-written partitioned data according to the determination result.

### Claim 20 (depends on 18)

The device of claim 18, the program logic further comprising:
logic, executed by the processor, for returning, to the client, distribution information of partitioned data corresponding to a data reading request when receiving the data reading request sent by the client, causing the client to select, according to the distribution information, partitioned data corresponding to the data center where the client is located and reads the partitioned data.
