Data writing and reading method
A data writing and data reading technology, applied in the field of information storage, can solve problems such as large consumption of horizontal network bandwidth, large consumption of resources such as memory, and inability to flexibly change the number of hard disks for management, so as to avoid cluster repair problems.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0084] An embodiment of the present disclosure provides a data writing method, which is applied to a storage system composed of multiple OSDs, see figure 2 As shown, the method includes the following steps:
[0085] S101: Obtain a placement group to which target data belongs and a redundancy policy corresponding to the placement group.
[0086] S102: Select one or more required OSDs for the placement group through the CRUSH algorithm; each OSD includes multiple object storage modules.
[0087] S103: Select an object storage module required by the placement group from one or more OSDs.
[0088] S104: Process the target data according to the redundancy strategy to obtain a processing result.
[0089] S105: Distributing the processing results to corresponding object storage modules for writing operations.
[0090] Wherein, the target data is data to be written, and the redundancy strategy includes: at least one of EC redundancy, copy redundancy, and stripe redundancy. Before...
Embodiment 2
[0117] An embodiment of the present disclosure provides a data reading method, which is applied to a storage system composed of multiple OSDs, see Figure 7 As shown, the method includes the following steps:
[0118] S201: Obtain a placement group to which the target data belongs and a redundancy policy corresponding to the placement group.
[0119] S202: Select one or more required OSDs for the placement group through the CRUSH algorithm; each OSD includes multiple object storage modules.
[0120] S203: Select an object storage module required by the placement group from one or more OSDs.
[0121] S204: Read the required data from the required object storage module.
[0122] After reading the required data from the required object storage, it also includes: if the reading of the data fails, performing data recovery according to the redundancy strategy.
[0123] In the actual implementation, obtain the PG to which the target data belongs, and obtain the redundancy policy co...
Embodiment 3
[0126] An embodiment of the present disclosure provides a data writing device, which is applied to a storage system composed of multiple OSDs, see Figure 8 As shown, the device includes: an information acquisition module 31 , a first selection module 32 , a second selection module 33 , a data processing module 34 , and a data writing module 35 .
[0127] Among them, the information acquisition module 31 is used to obtain the placement group to which the target data belongs and the redundancy policy corresponding to the placement group; the first selection module 32 is used to select the required one or one for the placement group through the CRUSH algorithm. The above OSDs; each OSD includes a plurality of object storage modules; the second selection module 33 is used to select the object storage modules required by the placement group from one or more OSDs; the data processing module 34 is used to convert the target data Processing is performed according to the redundancy st...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


