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

Method and device for managing virtual IP address by redis and redis system

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

Active Publication Date: 2017-09-19
JUHAOKAN TECH CO LTD
View PDF6 Cites 11 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
  • Method and device for managing virtual IP address by redis and redis system
  • Method and device for managing virtual IP address by redis and redis system
  • Method and device for managing virtual IP address by redis and redis system

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 method and device for managing a virtual IP address by redis and a redis system. A current redis node receives a main redis node identification fed by sentinel. When the main redis node identification is matched with the current redis node, whether the virtual IP address is set in the current redis node is detected, and the virtual IP address is broadcast if so. The virtual IP address is added into the current redis node if not and the added virtual IP address is broadcast. When the main redis node identification is not matched with the current redis node, the virtual IP address set in the current redis node is deleted. Therefore, after master and slave switching, the virtual IP address is switched with the main redis node, the virtual IP address is always only in the main redis node, a service fissure problem caused by network flash, jam or other conditions is avoided, and the reliability of the redis system is improved.

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 Applications(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