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

A method, device and redis system for redis management virtual ip address

An IP address and address technology, applied in the transmission system, electrical components, etc., can solve problems such as business split brain and keepalived communication abnormalities, and achieve the effect of improving reliability and avoiding business split brain

Active Publication Date: 2021-02-12
JUHAOKAN TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the present invention provides a redis management virtual IP address method, device and redis system to solve the business split-brain problem caused by abnormal keepalived communication

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 method, device and redis system for redis management virtual ip address
  • A method, device and redis system for redis management virtual ip address
  • A method, device and redis system for redis management virtual ip address

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0025] Before explaining and describing the embodiments of the present invention in detail, the application scenarios of the embodiments of the present invention will be described first. Such as figure 1 As shown, the method of redis management virtual IP address of the present invention is applied to the redis system, and the redis system includes: multiple sentinels, multiple redis nodes, specifically:

[0026] Sentinel is a monitoring and management tool that comes with redis. Its main functions include: monitoring, that is, sentinel will constantly check whether the master redis node and slave redis nodes are operating normally; reminder, that is, when there is a problem with a monitored redis node, sentinel can Send notifications...

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 present invention provides a redis management virtual IP address method, device and redis system, the current redis node receives the main redis node identification fed back by sentinel; when the main redis node identification matches the current redis node identification, the current redis node is detected Whether a virtual IP address is set in, if so, then broadcast the virtual IP address; if not, then add a virtual IP address in the current redis node and broadcast the virtual IP address after the addition; when the main redis node ID and the current redis node ID When it does not match, delete the virtual IP address set in the current redis node. Therefore, the present invention can ensure that after the master-slave switch, the virtual IP address is switched along with the master redis node, and there is always only a virtual IP address on the master redis node, so as to avoid the business split-brain problem caused by network flash-off or congestion, etc., and improve The reliability of the redis system.

Description

technical field [0001] The present invention relates to the technical field of caching, in particular to a method and device for redis management of virtual IP addresses and a redis system. Background technique [0002] Redis is a high-performance open source key-value database with high read and write performance. It can store the mapping (mapping) between keys (keys) and 5 different types of values ​​(values), and can be stored in The key-value pair data in memory is persisted to the hard disk, and users can configure different persistence methods according to actual usage scenarios. In order to improve the reliability of redis, the master-slave redis is usually set up in different servers, and the master-slave redis is managed by the management module. When the main redis fails, the management module will switch from redis to the main redis, and send a notification message to each service network element that needs to access redis, so that each service network element ca...

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/12
CPCH04L61/5046H04L61/5053H04L61/5007
Inventor 刘先攀吴连朋夏章抓
Owner JUHAOKAN TECH 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