Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Twemproxy-based Redis cluster method

A cluster and host technology, applied in digital transmission systems, electrical components, transmission systems, etc., can solve problems such as troublesome switching and low deployment complexity, and achieve good stability and reduce the risk of downtime

Inactive Publication Date: 2018-07-06
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0016] The Redis official website cluster is a bit simple to deploy, because it is not centralized, and the deployment complexity is very low. The disadvantage is that redis 3.0 has modified the redis protocol, and the client needs to be upgraded. It has not yet been verified by practice. It is currently online. Switching is troublesome for the running environment

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
  • Twemproxy-based Redis cluster method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0032] Such as figure 1 As shown, a twemproxy-based Redis cluster method includes the following:

[0033] data flow

[0034] 1. The business party requests a connection through the redis client and sends data.

[0035] 2. Lvs performs four-layer load, and loads to an lvs host according to high-availability rules after receiving a client request.

[0036] 3. After receiving the request, Lvs sends data to a twemproxy host according to the load rules.

[0037] 4. After receiving the request, Twemproxy finds a redis host according to the fragmentation rules configured by the customer, and sends the data.

[0038] 5. After the Redis host receives the request, it stores the data, and synchronizes to the slave, and returns.

[0039] When the redis host is down

[0040] 1. The zookeeper client detects that the redis host is down and sends data to the ZK server.

[0041] 2. After the sentinel machine finds that the host machine is down, it actively triggers the slave machine to b...

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 twemproxy-based Redis cluster method, and relates to the field of cache formation. The twemproxy-based Redis cluster method comprises the following steps: a service party requests a connection through a redis client to send data; an Lvs performs four-layer load, and transmits the load to an Lvs host after receiving a client request; after receiving the request, the Lvs sends the data to a twemproxy host according to a load rule; the twemproxy finds a redis host according to a fragmentation rule allocated by the client after receiving the request and sends data; and after receiving the request, the Redis host stores the data and synchronizes to a slave and returns the data. The invention proposes a new redis cluster solution based on the twemproxy redis cluster solution. The current online environment preliminary test has good stability, has certain disaster tolerance, reduces the server downtime risk, and is suitable for redis-dependent distribution environment.

Description

technical field [0001] Embodiments of the present invention relate to the field of cache formation, and more specifically, embodiments of the present invention relate to a twemproxy-based Redis cluster method. Background technique [0002] With the explosive growth of mobile Internet technology, the rapid development of big data and artificial intelligence, the increasing popularity of multi-terminal development, the continuous improvement of business complexity, the real-time requirements of the server are getting higher and higher, and the traditional stand-alone service is becoming more and more Unable to meet the market demand, Google's "three papers" started a wave of the big data industry, and proposed to use a distributed cluster composed of ordinary stand-alone servers to solve the pressure of explosive data growth, and cache has become one of the indispensable components. [0003] At present, there are redis, memcached, ehcache, etc. in the cache. In fact, redis is ...

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): H04L12/24H04L29/08
CPCH04L41/0663H04L41/0668H04L41/0813H04L67/568
Inventor 慕瑞华胡一枭吴博
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products