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

Method and system for achieving high availability of Redis cluster

A cluster and proxy node technology, applied in the field of communication, can solve the problem that Redis cluster cannot automatically isolate faulty proxy nodes.

Active Publication Date: 2016-09-07
CHINA UNIONPAY
View PDF7 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a method and system for achieving high availability of Redis clusters, to solve the problem that traditional Redis clusters cannot automatically isolate faulty proxy nodes

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 and system for achieving high availability of Redis cluster
  • Method and system for achieving high availability of Redis cluster
  • Method and system for achieving high availability of Redis cluster

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments . Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0022] see figure 2 As shown, the embodiment of the present invention provides a schematic flowchart of a method for realizing high availability of Redis clusters, and the specific implementation method includes:

[0023] In step S101, the middleware establishes a connection pool for each proxy node for communication, wherein multiple connection links between the middleware and the proxy node are configured in the connection pool of each ...

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 method and a system for achieving high availability of a Redis cluster. The cluster comprises a piece of middleware, at least two proxy nodes connected therewith and Redis servers connected with the proxy nodes. The method comprises: the middleware sets up a connecting pool for each proxy node for communication, wherein a plurality of connecting links are configured in each connecting pool and between the middleware and the proxy node; the middleware initiates a detecting thread to detect the connecting links in the connecting pool of each proxy node, and marks the connecting link with a fault; the middleware determines whether the number of marked connecting links corresponding to the same proxy node is greater than a set threshold; if so, the middleware confirms that the corresponding proxy node is a fault proxy node and terminates communication with the fault proxy node, thereby solving the problem that a conventional Redis cluster cannot isolate the fault proxy node automatically.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a method and system for realizing high availability of Redis clusters. Background technique [0002] At present, in order to solve the performance problems caused by high concurrency, web application systems will adopt a cache layer between the web application system and the database. The most widely used is Redis (Redis is essentially a key-value type memory database). As a buffer layer between software and traditional databases, Redis has simple operation commands and high performance while ensuring data validity. [0003] A traditional Redis cluster such as figure 1 As shown, including: middleware, proxy nodes and servers, wherein, the Redis cluster contains at least two proxy nodes, three master servers and three slave servers, and each worker thread initiated by the middleware is randomly directly connected to a proxy node , and the proxy nodes are connected to the ...

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/08H04L12/24
CPCH04L41/0659H04L67/2866
Inventor 李代立唐旭东陈卓
Owner CHINA UNIONPAY