IP Library Granted Patent US 9,665,284
Granted Patent B2
US 9,665,284 · App. 14/752,068 · Granted May 30, 2017

Partition extension method and apparatus

Inventor: Feng Zhang (Shenzhen, CN)
Assignee: Huawei Technologies Co., Ltd.
G06F3/0607G06F3/067G06F3/0629G06F3/0644G06F12/0223G06F2212/1048G06F2212/152G06F2212/154G06F2212/254G06F2212/261G06F2212/263
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,665,284
App. No.
14/752,068
Granted
May 30, 2017
Kind
B2
Abstract

In a distributed storage system, a method for extending a number N of data node devices comprises a server receives an instruction of adding X new data nodes into the distributed storage system. Then, the server obtains a number M of the all partitions included in a hash ring and determines that M/(N+X) is lower than a preset threshold. The hash ring is organized according to a distributed hash table (DHT), and includes a plurality of partitions. Each partition is mapping to a data node. Based upon the determination, the server generates new partitions by multiplying partitions mapping to each data node, based upon the determination. After storing mapping relationship between the new partitions and the X new data nodes, the server adds the X new data nodes into the distributed storage system.

Claims (35)

1. A method comprising:

maintaining a distributed hash table (DHT) that maps partitions to physical nodes on which the partitions are stored;

determining that M/N is lower than a threshold wherein M is a count of all partitions identified in the DHT and wherein N is a count of physical nodes in which the M partitions are stored;

adding a respective plurality of new partitions to each of the N nodes, based upon the determination; and

storing a mapping relationship between the new partitions and the nodes on which they are stored in the DHT.

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

obtaining data stored in a first data node of the N data nodes;

performing a hashing operation on the data to identify a matching partition; and

migrating the data from the first data node to a target data node that stores the matching partition.

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

identifying the target data node using the mapping relationship.

4. A device comprising:

a memory storage comprising instructions; and

one or more processors in communication with the memory, wherein the one or more processors execute the instructions to:

maintain a distributed hash table (DHT) that maps partitions to physical nodes on which the partitions are stored;

determine that M/N is lower than a threshold wherein M is a count of all partitions identified in the DHT and wherein N is a count of physical nodes in which the M partitions are stored;

add a respective plurality of new partitions to each of the N nodes, based upon the determination; and

store a mapping relationship between the new partitions and the data nodes on which they are stored in the DHT.

5. The device according to claim 4 , wherein the processor is further configured to:

obtain data stored in an first data node of the N data nodes;

perform a hashing operation on the data to identify a matching partition; and

migrate the data from the first data node to a target data node that stores the matching partition.

6. The device according to claim 5 , wherein the processor is further configured to:

identify the target data node using the mapping relationship.

7. A non-transitory computer-readable medium storing computer instructions, that when executed by one or more processors, cause the one or more processors to perform the steps of:

maintain a distributed hash table (DHT) that maps partitions to physical nodes on which the partitions are stored;

determine that M/N is lower than a threshold wherein M is a count of all partitions identified in the DHT and wherein N is a count of physical nodes in which the M partitions are stored;

add a respective plurality of new partitions to each of the N nodes, based upon the determination; and

store a mapping relationship between the new partitions and the data nodes on which they are stored in the DHT.

8. The computer-readable medium according to claim 7 , wherein the steps further comprise:

obtain data stored in an first data node of the N data nodes;

perform a hashing operation on the data to identify a matching partition; and

migrate the data from the first data node to a target data node that stores the matching partition.

9. The computer-readable medium according to claim 8 , wherein the steps further comprise:

identify the target data node using the mapping relationship.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 10, 2022
From: HUAWEI TECHNOLOGIES CO., LTD.
To: XFUSION DIGITAL TECHNOLOGIES CO., LTD.
Reel/Frame 058682/0312 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 14, 2015
From: ZHANG, FENG
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 036082/0081 →
Continuity (2)
Continuation PCTCN2012087743 · Dec 27, 2012
Related Publication 20150293707A1 · Oct 15, 2015