A caching method in a distributed storage system
A distributed storage and cache technology, applied in transmission systems, electrical components, etc., to achieve the effect of improving performance, reading speed, and alleviating access pressure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] Such as figure 1 As shown, the caching method in the distributed storage system of the present invention includes the following steps:
[0040] Client 1 uploads files to server 2,
[0041] 101) First write the metadata and data blocks of the file into the distributed storage system 22;
[0042] 102) then write the metadata of the file in the distributed cache system Memcache21;
[0043] Client 1 reads the file from server 2,
[0044] 103) judge whether find metadata in Memcache21, if yes, return the metadata in Memcache21 to client 1, otherwise execute step 102);
[0045] 104) The distributed storage system 22 first rewrites the found metadata in the Memcache 21;
[0046] 105) The distributed storage system 22 returns the metadata and data blocks of the file to the client 1 after combining them.
[0047] The reason why it is written into Memcache but cannot be found is because Memcache is stored in memory, and the storage capacity of memory is at the GB level, whil...
Embodiment 2
[0066] Take the client backup and read a file named file under the directory named dir as an example, combined with image 3 and Figure 4 to elaborate.
[0067] (1) Writing process:
[0068] First split the file into metadata information (including sub-object index, object information, data block index) and data block information, construct the sub-object index of dir through the uuid of the automatically generated file and the uuid of the existing dir, and pass the file The uuid of the file and the file name and file attribute value of the read file are used to construct object information, and the data block index is constructed according to the uuid of the file and the size of the block, and then the information is first written into the distributed storage system and then written into Memcache , and finally the data block is directly written into the distributed storage system in binary form.
[0069] (2) Reading process:
[0070] Step 401. Search Memcache for all sub...
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