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

A redis cluster method based on zookeeper

A cluster and algorithm technology, applied in digital transmission systems, data exchange networks, electrical components, etc., can solve problems such as cluster performance loss, achieve dynamic expansion and contraction, and realize the effect of automatic data migration capabilities

Active Publication Date: 2021-07-20
SOUTH CHINA UNIV OF TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, although Redis already has the current mainstream cluster solutions of Codis and Twemproxy in terms of distributed cluster solutions, these solutions use a proxy method to forward the client's request to cause the loss of cluster performance, and there are still deficiencies. Therefore, the present invention Provides a ZooKeeper-based Redis cluster method, implements a higher performance and highly available distributed Redis cluster that supports online dynamic expansion and contraction, and can automatically perform data migration

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
  • A redis cluster method based on zookeeper
  • A redis cluster method based on zookeeper
  • A redis cluster method based on zookeeper

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] Below in conjunction with the accompanying drawings, the specific implementation of the present invention will be further described, but the implementation and protection of the present invention are not limited thereto. technically understood or realized.

[0019] In this example, a ZooKeeper-based Redis cluster method such as figure 1 As shown, the following points will be described in detail.

[0020] 1. Data fragmentation information maintenance

[0021] In this example, the data sharding information is handed over to the third-party middleware ZooKeeper for maintenance, and the consistency provided by ZooKeeper is used to ensure that all clients can see consistent information. When the information changes, it can be notified and updated in time to realize the dynamic change of the cluster. figure 2 Describes how data shard information is organized in ZooKeeper. The znode node named node name represents the information of a Redis cluster. Node 1 to node N under...

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 ZooKeeper-based Redis cluster method. This method uses Zookeeper as the consistent middleware to maintain the data fragmentation information of the distributed Redis cluster. The client obtains the data fragmentation information of the Redis cluster through ZooKeeper and establishes a routing algorithm, so that the Redis client and the server are not connected. It needs to communicate directly through the proxy layer, and realize the dynamic expansion and contraction of the Redis cluster and the ability of automatic data migration. At the same time, this method combines Redis-Sentinel and ZooKeeper to realize the automatic transfer capability of cluster failures and ensure the high availability of Redis clusters. The invention reduces the extra network overhead brought by the agent layer of the Redis cluster, improves the performance of the Redis cluster, and at the same time ensures the expansion capability, automatic data migration capability and availability of the Redis cluster.

Description

technical field [0001] The invention belongs to a clustering method in the field of distributed Key-Value systems, and in particular relates to a ZooKeeper-based Redis clustering method and its realization. Background technique [0002] As a subset of the NoSQL (Not Only Sql) database, the Key-Value storage system, such as Redis, adopts a simple Key-Value data model and provides fast query operations similar to traditional Hash tables based on memory. They are usually used as an important means to improve the data access speed of data centers or applications, and have become an important part of the key infrastructure in many data centers. In the industrial world, many large companies, such as Facebook and Amazon, have deployed large-scale distributed Key-Value system clusters as the data layer of key systems. It can be seen that the performance of these Key-Value storage systems will directly affect the QoS (Quality of Service) of many large-scale services, and it is of gr...

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 Patents(China)
IPC IPC(8): H04L29/08H04L12/24
CPCH04L41/0663H04L67/10H04L67/1095H04L67/562H04L67/563
Inventor 刘发贵周晓场
Owner SOUTH CHINA UNIV OF TECH