Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Method for realizing high availability of Redis cluster and proxy middleware

A middleware and cluster technology, applied in the computer field, can solve the problems of user request error, inability to perceive Redis server switching events, inability to modify redis topology, etc., to achieve the effect of improving high availability

Pending Publication Date: 2022-07-22
度小满科技(北京)有限公司
View PDF17 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, twemproxy cannot perceive the switching event of the Redis server, nor can it modify the current existing redis topology, so that the abnormal request is still forwarded to the abnormal Redis server, causing the user request to report an error

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
  • Method for realizing high availability of Redis cluster and proxy middleware
  • Method for realizing high availability of Redis cluster and proxy middleware
  • Method for realizing high availability of Redis cluster and proxy middleware

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart depicts the operations as a sequential process, many of the operations may be performed in parallel, concurrently, or concurrently. Additionally, the order of operations can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.

[0023] In this context, "computer equipment", also referred to as "computer", refers to an intelligent electronic device that can execute predetermined processing procedures such as numerical calculations and / or logical calculations by running predetermined programs or instructions. It may include a processor and The memory, the processor executes the pre-...

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 aims to provide a method for realizing high availability of a Redis cluster and proxy middleware. The method comprises the following steps: proxy middleware generates a sub-thread to establish long connection with a sentry module of a Redis cluster so as to interact with the sentry module; and if the long connection with the sentry module is disconnected, the proxy middleware determines an available sentry module so as to establish a connection with a new sentry module and interact with the new sentry module. The embodiment of the invention has the following advantages: the proxy middleware independently derives a sub-thread to communicate with the sentry module of the Redis cluster, so that the risk that the main process of the proxy middleware is blocked is avoided; moreover, the proxy middleware according to the embodiment of the invention has the sensing capability of a master-slave switching event after the Redis server abnormally exits, the high availability capability of automatically updating the Redis topology and the function of automatically pulling up the process abnormally exits, so that the high availability of the Redis cluster is further improved.

Description

technical field [0001] The invention relates to the field of computer technology, and in particular, to a method and proxy middleware for realizing high availability of a Redis cluster. Background technique [0002] Redis (REmote DIctionary Server), as the current popular key-value storage system, supports string, hash, set, zset, list and other data structures. The open source twemproxy is the proxy middleware of memcache and Redis. Users connect to access twemproxy, and twemproxy forwards their read and write requests uniformly, and redis-server or memcache after distribution. [0003] Based on the existing solution, once the Redis server process represented by twemproxy exits due to an exception, twemproxy removes the abnormal node. However, for online usage scenarios, especially in the financial industry, the solution is to use Redis as a database for persistent storage, and data is not only for caching, so abnormal Redis servers need to be replaced by healthy Redis ser...

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): H04L43/0811H04L43/10H04L67/141H04L67/56
CPCH04L43/0811H04L67/141H04L43/10Y02D10/00
Inventor 胡东旭赵鹏陈存利
Owner 度小满科技(北京)有限公司
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
Eureka Blog
Learn More
PatSnap group products