Redis cluster management method, device and equipment and readable storage medium

A cluster management and clustering technology, applied in the field of Redis cluster, can solve the problems of data integrity, high availability of Redis cluster cannot be guaranteed, Redis storage shard failover cannot be completed automatically, and Redis Sentinel is prone to exceptions, etc.

Pending Publication Date: 2019-05-17
WEBANK (CHINA)
View PDF0 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the Redis cluster built by Twemproxy and Redis Sentinel belongs to the centralized management architecture. Redis Sentinel is prone to abnormalities, and Redis Sentinel plays an important role in ensuring the high availability of Redis c...

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
  • Redis cluster management method, device and equipment and readable storage medium
  • Redis cluster management method, device and equipment and readable storage medium
  • Redis cluster management method, device and equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0088] In addition, as another implementation mode, it can also be selected as:

[0089] When a data access request is detected, determine the data key value in the data access request;

[0090] Obtain the number of data partitions by the Redis cluster agent component, and use the data key value to take the modulus of the number of data partitions to obtain a modulus result;

[0091] Determine the non-downtime target data partition according to the modulus result.

[0092]Specifically, obtain the number of data partitions contained in the Redis cluster management device through the Redis cluster agent component, that is, the number of data partitions, and use the data key value to take the modulus of the number of data partitions to obtain the modulo result (remainder) , and then obtain the preset mapping relationship table between the modulus result and the data partition, query the mapping relation table, obtain the data partition corresponding to the modulus result, and ju...

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 Redis cluster management method, which comprises the following steps of: when a data access request is monitored, determining a target data partition which is not downtime through a Redis cluster agent component and a data key value in the data access request; routing the data access request to the target data partition, and processing the data key value to obtain a hashslot number; and routing the data access request to a Redis node corresponding to the hash slot number in the target data partition. The invention also discloses a Redis cluster management device, equipment and a readable storage medium. According to the invention, the data integrity and high availability of the Redis cluster can be effectively ensured.

Description

technical field [0001] The present invention relates to the technical field of Redis clusters, in particular to a Redis cluster management method, device, equipment and readable storage medium. Background technique [0002] Due to the limited memory management capability of a single Redis server, a failure of the Redis server will directly affect a large area of ​​business. In order to obtain better cache performance and scalability, a Redis cluster is built to meet the requirements. At present, Redis clusters are built mainly through Twemproxy and Redis Sentinel, that is, Twemproxy is a single-threaded proxy program that supports the Redis protocol. By introducing a proxy layer, it encapsulates the real Redis storage fragmentation at the back end, and implements Failover through RedisSentinel to ensure Redis storage fragmentation. High availability of slices. [0003] However, the Redis cluster built by Twemproxy and Redis Sentinel belongs to the centralized management ar...

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
IPC IPC(8): H04L29/08
Inventor 卢道和杨军黎君
Owner WEBANK (CHINA)
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products