Method and device for allocating resource of hard disk in distributed storage system
AssigneeHuawei Cloud Computing Technologies Co., Ltd.
InventorJingwen Ding
Life of this patent
Estimating the term…
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.
Claims8
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.
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.
Dependencies are inferred from the claim text.