Master-slave node data synchronization method and device, and readable medium

A node data and master node technology, applied in the database field, can solve problems such as congestion, memory, increased network consumption, and long time consumption

Inactive Publication Date: 2019-11-26
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF0 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, full synchronization has the following defects: 1) it takes a long time
With the increase of RDB files, the consumption of CPU, memory, network and other resources caused by full synchronization also increases accordingly
2) Blocking problem
The time consumption caused by a fork operation directly affects the processing efficiency of the master node for client command requests

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 node data synchronization method and device, and readable medium
  • Master-slave node data synchronization method and device, and readable medium
  • Master-slave node data synchronization method and device, and readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0022] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same, see "first" and "second" It is only for the convenience of expression, and should not be construed as a limitation on the embodiments of the present invention, which will not be described one by one in the subsequent embodiments.

[0023] Based on the above purpose, the first aspect of the embodiments of the present invention proposes an embodiment of a method for synchronizing master-slave node data. figure 1 What is shown is a schematic diagram of an embodiment of the method...

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 master-slave node data synchronization method which comprises the following steps: in response to offline of a master node, selecting a new master node from slave nodes according to a copy offset; enabling the new master node to receive a synchronization request sent by the slave node, and detecting whether an old master node label or a new master node label exists in thesynchronization request; in response to the fact that the old master node label exists in the synchronization request, returning a new master node label to the slave node; and in response to the factthat the new master node label exists in the synchronization request, copying the data on the new master node to the slave node in an incremental copying mode. The invention further discloses computer equipment and a readable storage medium. According to the master-slave node data synchronization method and device provided by the invention, partial synchronization of new master nodes and slave nodes belonging to the same master node before failover becomes possible after failover, and the system overhead is reduced.

Description

technical field [0001] The present invention relates to the field of databases, and more specifically refers to a method, device and readable medium for synchronizing master-slave node data. Background technique [0002] With the rapid development of network technology, data presents large-scale and high-concurrency characteristics, and more and more Internet applications begin to pay attention to new requirements such as high-concurrency reading, low-latency writing, massive data storage, high scalability, and high availability. , and the traditional relational database can no longer meet its real-time and fast response requirements in the face of these situations. The reason is that the traditional relational database storage is based on disk, and the I / O bottleneck restricts the data access speed. It has many functions, such as isolation level, support for eventual consistency and other features. As a cache database based on the Key-Value model, Redis has the characteris...

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): G06F11/16G06F11/20
CPCG06F11/1658G06F11/2023G06F2201/80
Inventor 王文庆
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products