Data writing and reading method
A data writing and data reading technology, applied in the field of information storage, can solve the problems of large loss of horizontal network bandwidth, large consumption of resources such as memory, and low performance of a single OSD, and achieve the effect of avoiding cluster repair problems
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0084] The embodiment of the present disclosure provides a data writing method, which is applied in a storage system composed of multiple OSDs, see figure 2 As shown, the method includes the following steps:
[0085] S101: Acquire the placement group to which the target data belongs and the redundancy strategy corresponding to the placement group.
[0086] S102: Use the CRUSH algorithm to select one or more required OSDs for the placement group; 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: Distribute the processing result to the corresponding object storage module for writing operation.
[0090] 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 the target da...
Embodiment 2
[0117] The 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: Acquire the placement group to which the target data belongs and the redundancy strategy corresponding to the placement group.
[0119] S202: Use the CRUSH algorithm to select one or more required OSDs for the placement group; each OSD includes multiple object storage modules.
[0120] S203: Select the 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, data recovery is performed according to the redundancy strategy.
[0123] In the specific implementation, obtain the PG to which the target data belongs, and obtain the redundancy strategy co...
Embodiment 3
[0126] The 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 obtaining module 31 is used to obtain the placement group to which the target data belongs and the redundancy strategy corresponding to the placement group; the first selection module 32 is used to select one or one required for the placement group through the CRUSH algorithm The above OSD; each OSD includes multiple 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 store the target data The processing is performed according to the redundancy strategy to obtain t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com