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

Master-slave time delay monitoring method and device suitable for redis, and storage medium

A monitoring device and a master-slave technology, applied in the computer field, can solve the problem of inability to monitor master and slave master-slave delays and master-slave availability in real time, affecting the accuracy of computer processing data, and inability to monitor master-slave synchronization delays in real time, etc. question

Inactive Publication Date: 2019-11-08
车轮互联科技(上海)股份有限公司
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] After the above synchronization is completed, the monitoring platform cannot be used to monitor the master-slave delay and master-slave availability of the master and slave in real time.
Currently on the market, the availability of the slave is judged by checking the master_link_status status of the slave, and the delay of the slave is checked by master_last_io_seconds_ago. Since the delay of the master-slave synchronization cannot be monitored in real time, the accuracy of the computer processing data is affected when the network is abnormal.

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
  • Master-slave time delay monitoring method and device suitable for redis, and storage medium
  • Master-slave time delay monitoring method and device suitable for redis, and storage medium
  • Master-slave time delay monitoring method and device suitable for redis, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. 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.

[0040] The terms "comprising" and "having" and any variations thereof in the specification and claims of the present invention and the above drawings are intended to cover non-exclusive inclusion, and the terms "first" and "second" are only used for distinguishing names , does not represent the size or ordering of numbers. For example, a process, method, device, product or equipment comprising a series of steps or units is not limited to the listed steps or un...

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 embodiment of the invention discloses a master-slave time delay monitoring method and a master-slave time delay monitoring device suitable for redis and a storage medium. The method comprises thefollowing steps that a set of key$n is written into a master library Master of redis, the key$n at least comprises keys from 0 to 59, and each key corresponds to one $value; updating the value S1 of the key corresponding to the current second number of the master library Master, and querying the value S2 of the key of the slave library Slave under the same key at the same time; and determining a current master-slave synchronization time delay difference value S3 according to the S1 and the S2. By adopting the method and the system, the redis master-slave database servers are synchronized by adopting a unified time server, so that the system time can be ensured to be unified, and the delay problem between the redis master-slave databases and the master-slave availability can be more intuitively expressed according to the judgment of the system time.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a master-slave delay monitoring method, device and storage medium suitable for redis. Background technique [0002] The principle of redis master-slave synchronization is that after Slave starts and connects to Master, it will actively send a SYNC command. After that, the Master will start the background saving process and collect all received commands for modifying the data set. After the background process is executed, the Master will transfer the entire database file to the Slave to complete a complete synchronization. After the Slave server receives the database file data, it saves it and loads it into the memory. After that, the Master continues to transmit all the collected modification commands and new modification commands to the Slaves in turn, and the Slave will execute these data modification commands this time, so as to achieve the final data synchronizatio...

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/26H04L12/24G06F16/27
CPCG06F16/27H04L41/0631H04L43/0852H04L43/106
Inventor 武林志吴峰郭伟
Owner 车轮互联科技(上海)股份有限公司
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