Distributed storage method based on consistent Hash algorithm
A distributed storage and hash algorithm technology, applied in the field of distributed database storage, can solve problems such as bad experience, invalidation of cache memory, and slow server response speed, and achieve the effect of high retrieval efficiency and fast response.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment
[0061] Specific embodiments: the implementation of the present invention is explained below by introducing database segmentation technology and consistent hashing steps:
[0062] S1: Considering that the usual hash algorithm maps the value to a 32-bit Key value, that is, the hash value space from 0 to the 2^32-1 power; set this hash value space as a first ( 0) Rings with tails (2^32-1), such as Figure 4 shown.
[0063] S2: Map the object to the hash value space:
[0064] Assuming that four objects object1~object4 are considered, the distribution of the hash value Key on the ring is calculated through the hash function, such as Figure 5 Shown:
[0065] Hash(object1) = Key1;
[0066] ...
[0067] Hash(objectN)=KeyN.
[0068] S3: Map the Cache to the hash value space:
[0069] The basic idea of consistent hashing is to map objects and caches to the same hash value space and use the same hash algorithm;
[0070] Assuming that there are currently 3 caches A, B, and C, 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