Unlock instant, AI-driven research and patent intelligence for your innovation.

Cache data distribution method and device, equipment and storage medium

A technology for caching data and distributing methods, applied in electrical components, transmission systems, etc., to solve problems such as data load imbalance

Inactive Publication Date: 2019-10-15
SOUTH CENTRAL UNIVERSITY FOR NATIONALITIES
View PDF7 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to provide a cache data distribution method, equipment, storage medium and device, aiming to solve the technical problem of unbalanced data load of physical servers in the current distributed cache system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Cache data distribution method and device, equipment and storage medium
  • Cache data distribution method and device, equipment and storage medium
  • Cache data distribution method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0053] refer to figure 1 ,figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the present invention.

[0054] Such as figure 1 As shown, the device may include: a processor 1001 , such as a CPU, a communication bus 1002 , a user interface 1003 , a network interface 1004 , and a memory 1005 . Wherein, the communication bus 1002 is used to realize connection and communication between these components. The user interface 1003 may include a display screen (Display), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as a Wi-Fi interface). The memory 1005 can be a hig...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a cache data distribution method and device, equipment and a storage medium. The method comprises the following steps: acquiring configuration information of each physical server in a distributed cache system; determining a virtual node corresponding to each physical server in the hash ring based on the configuration information of each physical server; when to-be-cached data is received, based on a hash value of to-be-cached data, determining the position of the to-be-cached data in the hash ring; based a preset mapping rule, mapping the to-be-cached data to a first target virtual node on the hash ring, storing the data to be cached into a first target physical server corresponding to the first target virtual node. The corresponding virtual nodes are allocated to the physical services on the basis of the configuration information of the physical servers, so that the physical servers with better performance cache more data, and the load data is more balanced under the condition that the performance configuration of the physical servers is uneven in a distributed cache system.

Description

technical field [0001] The present invention relates to the technical field of distributed cache, in particular to a cache data distribution method, equipment, storage medium and device. Background technique [0002] When the Redis cluster adopts client-side sharding to realize data distribution, it generally uses a consistent hash algorithm based on virtual nodes. This algorithm guarantees that the number of virtual nodes on the hash ring is much larger than the number of physical server nodes. The more virtual nodes there are, the finer the virtual hash ring will be, and the data load of each virtual node will be similar. , and then evenly map these virtual nodes to physical nodes, so that even when the number of server nodes is small, the data load balance of each physical node will be similar, thereby avoiding the problem of data skew. However, the consistent hashing algorithm based on virtual nodes also has the following disadvantages: [0003] When the Redis cluster ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/1008H04L67/1065H04L67/1097
Inventor 覃俊王坤夏梦艾勇吴立锋郑禄毛养勤
Owner SOUTH CENTRAL UNIVERSITY FOR NATIONALITIES