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

Speed limit method and device of redis master-slave full synchronous data

A technology of full synchronization and synchronous data, which is applied in the direction of data error detection, electrical digital data processing, special data processing applications, etc., which can solve bandwidth bottlenecks and other problems, and achieve the effect of ensuring normal operation.

Inactive Publication Date: 2018-01-05
JUHAOKAN TECH CO LTD
View PDF5 Cites 3 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 master-slave full synchronization data rate limiting method and device to solve the problem of bandwidth bottlenecks caused by full synchronization

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
  • Speed limit method and device of redis master-slave full synchronous data
  • Speed limit method and device of redis master-slave full synchronous data
  • Speed limit method and device of redis master-slave full synchronous data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] 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.

[0023] Please refer to figure 1 , is a processing flowchart of a redis master-slave full synchronization data rate limiting method in an exemplary embodiment of the present invention, the method is applied to the redis master node in the redis system, and the method includes:

[0024] Step 101, when the timing event set with the preset time period starts, execute the file synchronization event created before the timing event starts, and the file synchronization event is used to control the redis master node to send the redis slave node rdb file;

[0025] In this embodiment, timing events and file synchronization events are usually included in the master-slave full synchronization process of redis; where the timing event refers to the ...

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 provides a speed limit method and device of redis master-slave full synchronous data. When a timed event set in a preset period starts, a redis master node executes the file synchronization event created before the timed event starts, and the file synchronization event is used for controlling the redis master node to send an rdb file to the redis from the node; according to the sending rate limited by the file synchronization event, synchronization data in the rdb file is sent; the synchronization data is sent and the file synchronization event is deleted within the preset period. Therefore, the speed of master-slave synchronization can be controlled, it is guaranteed that the master-slave synchronization cannot occupy all bandwidth of a network card, and then normal runningof services is guaranteed.

Description

technical field [0001] The present invention relates to the technical field of data synchronization, in particular to a speed limiting method and device for redis master-slave full data synchronization. Background technique [0002] Redis is a high-performance open source database with very high read and write performance. It can persist the key-value pair data stored in memory to the hard disk. Users can configure different persistence methods according to actual usage scenarios. In order to improve system stability, the redis system usually adopts a master-slave structure. In the initialization phase of the redis slave node, the data on the redis master node needs to be copied in full for backup. This event is called redis master-slave full synchronization. [0003] During the master-slave full synchronization process, the redis master node uses TCP communication when sending RDB files to the redis slave node, that is, the redis master node sends 16k (bytes) of data to th...

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
IPC IPC(8): G06F17/30G06F11/14
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