Check patentability & draft patents in minutes with Patsnap Eureka AI!

Data synchronization method and device

A data synchronization and database technology, applied in the field of communications, can solve problems such as the inability to guarantee the timeliness of data services, the unsatisfactory data synchronization effect, and the long fault repair time, so as to achieve short fault repair time, ensure timeliness, and improve data synchronization. the effect of

Pending Publication Date: 2020-07-28
中移动信息技术有限公司 +1
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the inventors found that there are at least the following problems in the existing technology: whether it is the original synchronization mechanism of the database or the synchronization technology based on middleware, manual intervention is required when the database node fails over, and the timeliness of data services cannot be guaranteed. Long repair time and unsatisfactory data synchronization effect

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the object, technical solution and advantages of the present invention clearer, various embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, those of ordinary skill in the art can understand that, in each implementation manner of the present invention, many technical details are provided for readers to better understand the present application. However, even without these technical details and various changes and modifications based on the following implementation modes, the technical solution claimed in this application can also be realized.

[0024] The first embodiment of the present invention relates to a data synchronization method, by using the normal state array to record the point information of each node in the database cluster; when the master node in the database cluster fails, obtain the master node failure according to the normal state array point information at the t...

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 relates to the technical field of communication, and discloses a data synchronization method, which comprises the following steps of recording point location information of each node in a database cluster by using a normal state array; when the main node in the database cluster breaks down, obtaining point location information when the main node breaks down according to the normal state array, and recording the point location information in the abnormal state array; switching the main node according to the point location information in the abnormal state array when the fault occurs, and recording the switching information of the main node in the abnormal state array; and according to the raft protocol and the abnormal state array, transmitting information ofswitching of the main node to remaining nodes in the database cluster, wherein the remaining nodes include other nodes except the faulty main node and the switched main node. The embodiment of the invention further provides a data synchronization device. According to the data synchronization method and device provided by the embodiment of the invention, manual switching is not needed when the database nodes fail, and the timeliness and synchronization effect of data services are improved.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a data synchronization method and device. Background technique [0002] With the development of the times, people have higher and higher requirements for data redundancy security and business multi-active. To ensure remote disaster recovery and security of data, intra-city active-active and remote It has evolved into cross-computer rooms, and the real-time synchronization of data has also evolved from a native synchronization mechanism to a data synchronization technology based on middleware. At present, the cross-instance data real-time synchronization technology of the database mainly relies on the original log file and obtains the point information inside the file. [0003] However, the inventor found at least the following problems in the prior art: whether it is the original synchronization mechanism of the database or the synchronization technology based on middlewa...

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): G06F16/27G06F16/28G06F11/14
CPCG06F16/27G06F16/284G06F11/1458G06F2201/80
Inventor 刘志饶杰杰金亮
Owner 中移动信息技术有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More