Data synchronization method and related device

A data synchronization and database technology, which is applied in the fields of electrical digital data processing, special data processing applications, instruments, etc.

Inactive Publication Date: 2018-11-16
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present invention is to provide a data synchronization method, a cluster master node, and a cluster slave node,

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
  • Data synchronization method and related device
  • Data synchronization method and related device
  • Data synchronization method and related device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] 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 creative efforts fall within the protection scope of the present invention.

[0052] The embodiment of the invention discloses a data synchronization method, a cluster master node, and a cluster slave node to solve the problem of how to realize data synchronization between the master node and the slave node when using the sqlite database.

[0053] see figure 1 , a data synchronization method provided by an embodiment of the present invention is applied to the master node of the cluster, and specifically includes:

[0054] S101. When using a...

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 discloses a data synchronization method applied to a cluster main node. When an SQL statement is employed to update data information, the SQL statement is used to generate message record and send the message record to a slave node by employing a message queue, the slave node performs synchronous update of a database itself according to the SQL statement so as to allow the data update of the main node to reach content synchronization with the data update of the slave node. Besides, the message queue is employed to transmit the message record so as to shield the complexityof a stratum communication protocol and more conveniently and effectively achieve data synchronization of the main node and the slave node. The present invention further provides a data synchronization method applied to a cluster main node, a cluster main node system and a cluster slave node system which can also achieve the technical effects mentioned above.

Description

technical field [0001] The invention relates to the technical field of distributed clusters, and more specifically, to a data synchronization method, a cluster master node, and a cluster slave node. Background technique [0002] A distributed system generally includes multiple nodes, and these nodes form a cluster to provide external services in a unified manner. The cluster management software stores the cluster configuration information and other content through the database on the master node. Since these configuration types have less data and the frequency of reading and writing is lower, only a lightweight database is needed for storage, and then can The dog reduces the system resource occupation of the master node by the management software. [0003] At present, due to the small space occupied by the sqlite database and the characteristics of simplicity and ease of operation, sqlite is usually used as the database of the cluster management software. [0004] However,...

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): H04L29/08G06F17/30
CPCH04L67/1095H04L67/1097
Inventor 李昂
Owner ZHENGZHOU YUNHAI INFORMATION 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