Unlock instant, AI-driven research and patent intelligence for your innovation.

Data synchronization method, device and system

A data synchronization and equipment technology, applied in the field of network communication, can solve the problems of low processing speed and performance, large data difference between the standby machine and the host computer, and data loss, so as to improve the processing speed and performance and reduce the risk of a large amount of data loss. Effect

Active Publication Date: 2013-04-24
HUAWEI TECH CO LTD
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Although the synchronous method has good reliability, the performance is very low; the asynchronous method has good performance, but the data difference between the standby machine and the main machine may be large, and the reliability is poor. If the main machine fails, a large amount of data will be lost when the standby machine takes over the business; semi-synchronous The reliability of the method is better, but the host still needs to wait for the standby machine for each transaction, and the processing speed and performance are low

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0060] The embodiment of the present invention provides a data synchronization method, see figure 1 , the method includes:

[0061] 101. Save the redo Redo logs generated by a batch of currently executed transactions from the redo cache to the host disk through the log write thread, and prevent the log write thread;

[0062] 102. Send the Redo log stored in the host disk to the standby machine through the sending thread;

[0063] 103. Unblock the log writing thread when receiving the response message sent by the standby machine after saving the Redo log to the disk of the standby machine.

[0064] Specifically, after the Redo logs generated by a batch of currently executed transactions are saved from the redo cache to the host disk through the log write thread, it also includes:

[0065] Continue to execute the next batch of transactions, and save the Redo logs generated by the next batch of executed transactions into the redo cache, and stop executing the transaction if the...

Embodiment 2

[0073] see figure 2 , the embodiment of the present invention provides a data synchronization device, the device includes:

[0074] The processing module 201 is used to save the redo Redo log generated by a batch of transactions currently executed from the redo cache to the host disk through the write log thread;

[0075] Stopping module 202, is used to stop writing log thread;

[0076] Sending module 203, is used for sending the Redo log that saving module is stored in host disk to standby machine by sending thread;

[0077] The unblocking module 204 is configured to unblock the log writing thread when the response message sent by the standby machine after saving the Redo log to the disk of the standby machine is received.

[0078] Specifically, the processing module 201 is also configured to continue to execute the next batch of transactions, and save the Redo log generated by executing the next batch of transactions into the redo cache;

[0079] The blocking module 202 ...

Embodiment 3

[0087] see image 3 , an embodiment of the present invention provides a data synchronization method, the method comprising:

[0088] 301. Receive the redo Redo log sent by the sending thread of the host and saved on the host disk. The Redo log is the Redo log generated by the host executing a batch of transactions. , the write log thread is blocked;

[0089] 302. After saving the Redo log to the backup machine disk, send a response message to the host, so that the host unblocks the write log thread according to the response message;

[0090] 303. Re-execute a corresponding batch of transaction operations according to the received Redo logs.

[0091] Specifically, after sending the response message to the host, it also includes:

[0092] Receiving the Redo log sent by the sending thread of the host and saved on the host disk. The Redo log is the Redo log generated by the host executing the next batch of transactions. After the log write thread of the host saves it from the r...

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 data synchronization method, device and system, and belongs to the field of network communication. The method includes saving Redo logs generated by a plurality of transactions in process from a redo buffer to a host machine disk though a log writing thread, and blocking the log writing thread; sending the Redo logs stored in the host machine disk to a backup machine though a sending thread; when an answer message sent by the backup machine is received after the Redo logs are stored in the backup machine disk, unblocking the log writing thread. The system comprises the host machine and the backup machine. The data synchronization method, device and system solves the problems of huge data differentia and poor data reliability of existing asynchronous host machines and backup machines, greatly reduces risks of mass data loss during data exchange between the host machines and the backup machines, and improves processing speed and performance of data synchronization.

Description

technical field [0001] The invention relates to the field of network communication, in particular to a data synchronization method, device and system. Background technique [0002] In high-availability communication systems such as electronic banking and electronic communication, dual database servers are usually used so that when one node fails in the communication system, it can be switched to another node to continue to provide services. In the dual-machine database, the node that provides external services is the master machine, and the other node is the standby machine. Both the main machine and the standby machine are running, and the main machine needs to synchronize data to the standby machine, so as to ensure that the standby machine can provide services normally when the main machine fails, so the data synchronization of the main machine and the standby machine is particularly important. [0003] At present, the data synchronization methods of the master and stand...

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): G06F11/14
Inventor 谢锐何雄辉
Owner HUAWEI TECH CO LTD
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