IP Library Granted Patent US 11,385,814
Granted Patent B2
US 11,385,814 · App. 17/207,274 · Granted Jul 12, 2022

Method and device for allocating resource of hard disk in distributed storage system

Inventor: Jingwen Ding (Chengdu, CN)
Assignee: Huawei Cloud Computing Technologies Co., Ltd.
G06F3/0631G06F3/0604G06F3/067G06F3/0644G06F9/5016
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 11,385,814
App. No.
17/207,274
Granted
Jul 12, 2022
Kind
B2
Abstract

This application provides a method for allocating a resource of a hard disk in a distributed storage system. The distributed storage system includes a plurality of hard disks. The method includes: selecting a hard disk set from the plurality of hard disks based on a bandwidth requirement and a storage specification of a first user; and creating first logical storage space for the first user from the hard disk set, where the first storage space of each hard disk in the hard disk set provides storage space for the first logical storage space. In the method, a bandwidth lower limit of the hard disk can be ensured.

Claims (30)

1. A method for allocating a resource of a hard disk in a distributed storage system, wherein the distributed storage system comprises a plurality of hard disks, and the method comprises:

selecting, by a resource allocation device, a hard disk set from the plurality of hard disks based on a bandwidth requirement and a storage specification of a first user, wherein a storage bandwidth of first storage space of each hard disk in the hard disk set satisfies the bandwidth requirement, a quantity of hard disks in the hard disk set is determined by based on the storage specification, and the storage specification is based on a multi-copy technology or an erasure coding technology; and

creating, by the resource allocation device, a first logical storage space for the first user from the hard disk set, wherein the first storage space of each hard disk in the hard disk set provides storage space for the first logical storage space.

2. The method according to claim 1 , wherein the storage specification is based on the multi-copy technology;

wherein that the storage bandwidth of the first storage space of each hard disk in the hard disk set satisfies the bandwidth requirement comprises:

the storage bandwidth of the first storage space of each hard disk in the hard disk set is not less than a ratio of the bandwidth requirement to a product obtained by multiplying a quantity of copies by a positive integer multiple; and

wherein that the quantity of hard disks in the hard disk set is determined by based on the storage specification comprises:

the quantity of hard disks in the hard disk set is the product obtained by multiplying the quantity of copies by the positive integer multiple.

3. The method according to claim 1 , wherein the storage specification is based on the erasure coding technology;

wherein that the storage bandwidth of the first storage space of each hard disk in the hard disk set satisfies the bandwidth requirement comprises:

the storage bandwidth of the first storage space of each hard disk in the hard disk set is not less than a ratio of the bandwidth requirement to a product obtained by multiplying a positive integer multiple by a quantity of data disks using the erasure coding technology; and

wherein that the quantity of hard disks in the hard disk set is determined by based on the storage specification comprises:

the quantity of hard disks in the hard disk set is a product obtained by multiplying a positive integer multiple by a sum of the quantity of data disks using the erasure coding technology and a quantity of parity disks using the erasure coding technology.

4. The method according to claim 1 , wherein a size of input/output (IO) data of each of the plurality of hard disks is a preset value.

5. A resource allocation device, comprising

a processor and

a memory, wherein the memory is configured to store a program instruction, wherein execution of the program instruction by the processor, causes the processor to:

select a hard disk set from the plurality of hard disks based on a bandwidth requirement and a storage specification of a first user, wherein a storage bandwidth of first storage space of each hard disk in the hard disk set satisfies the bandwidth requirement, a quantity of hard disks in the hard disk set is determined based on the storage specification, and the storage specification is based on a multi-copy technology or an erasure coding technology; and

create a first logical storage space for the first user from the hard disk set, wherein the first storage space of each hard disk in the hard disk set provides storage space for the first logical storage space.

6. The device according to claim 5 , wherein the storage specification is based on the multi-copy technology;

wherein that the storage bandwidth of the first storage space of each hard disk in the hard disk set satisfies the bandwidth requirement comprises:

the storage bandwidth of the first storage space of each hard disk in the hard disk set is not less than a ratio of the bandwidth requirement to a product obtained by multiplying a quantity of copies by a positive integer multiple; and

wherein that the quantity of hard disks in the hard disk set is determined based on the storage specification comprises:

the quantity of hard disks in the hard disk set is the product obtained by multiplying the quantity of copies by the positive integer multiple.

7. The device according to claim 5 , wherein the storage specification is based on the erasure coding technology;

wherein that the storage bandwidth of the first storage space of each hard disk in the hard disk set satisfies the bandwidth requirement comprises:

the storage bandwidth of the first storage space of each hard disk in the hard disk set is not less than a ratio of the bandwidth requirement to a product obtained by multiplying a positive integer multiple by a quantity of data disks using the erasure coding technology; and

wherein that the quantity of hard disks in the hard disk set is determined by based on the storage specification comprises:

the quantity of hard disks in the hard disk set is a product obtained by multiplying a positive integer multiple by a sum of the quantity of data disks using the erasure coding technology and a quantity of parity disks using the erasure coding technology.

8. The device according to claim 5 , wherein a size of input/output (IO) data of each of the plurality of hard disks is a preset value.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 1, 2022
From: HUAWEI TECHNOLOGIES CO., LTD.
To: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Reel/Frame 059267/0088 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 5, 2021
From: DING, JINGWEN
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 056146/0795 →