A pre-reading method and device for distributed storage
A technology of distributed storage, reading and writing methods, applied in the field of pre-reading and writing methods and devices of distributed storage, can solve the problem of increasing the frequency of reading data in a distributed storage system, the system cannot predict where the data is placed, and the efficiency of pre-writing and reading Low and other problems, to achieve the effect of reducing operating pressure, reducing frequent reading frequency, and improving pre-reading efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] Such as figure 1 As shown, the present invention provides a pre-reading method for distributed storage, the steps include:
[0025] S10, the storage client writes data into the distributed storage system, and the distributed storage system divides the data block into several data blocks, and then dispersely stores the data blocks in different storage devices;
[0026] S11. The storage client continuously reads data blocks from the distributed storage system;
[0027] S12. The statistical prediction module makes statistics on a single data block, counts the data blocks that need to be read thereafter, and calculates the number of times each data block in these data blocks is read, and sorts these data blocks according to the number of times from large to small put in order;
[0028] S13. Step S12 is repeated until the statistics of the data blocks to be read by the storage client are completed, and after the statistical results are formed, they are stored in the statis...
Embodiment 2
[0035] The present invention provides a pre-reading and writing device for distributed storage on the basis of the method in Embodiment 1, such as figure 2 As shown, it includes a storage client, a distributed storage system and a statistical prediction module, and the distributed storage system includes several storage devices;
[0036] The storage client is used to write and read data to the distributed storage system;
[0037] The distributed storage system is used to divide the data into several data blocks, and store the data blocks in different storage devices;
[0038] The statistical prediction module is used for: when the storage client continuously reads data blocks from the distributed storage system, the statistical prediction module performs statistics on a single data block, counts the data blocks that need to be read thereafter, and calculates these The number of times each data block in the data block is read, and these data blocks are sorted according to the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

