Data synchronization method, apparatus and system
A data synchronization and data technology, applied in the storage field, can solve the problems of ineffective recovery of synchronized data and excessive use of synchronized data.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] An embodiment of the present invention provides a data synchronization method, the method is applied to each node in the memory database, and each node is equipped with a replication entry for storing synchronization data. In this embodiment, the first node and The second node is taken as an example to elaborate, such as figure 1 shown, including:
[0057] 101. The first node receives a data modification instruction initiated by a user, where the data modification instruction includes at least an entry identifier of the data to be modified.
[0058] 102. The first node determines the entry type of the data modification instruction according to the entry identifier and the preset correspondence between the entry identifier and the entry type.
[0059] 103. If the entry type of the data modification instruction is a copy entry, the first node generates a first redo log according to the data modification instruction, and the first redo log carries a copy entry tag used to...
Embodiment 2
[0076] An embodiment of the present invention provides a data synchronization method, the method is applied to each node in the memory database, and each node is equipped with a replication entry for storing synchronization data. In this embodiment, the first node and The second node is taken as an example to elaborate, such as figure 2 shown, including:
[0077] 201. The first node receives a data modification instruction initiated by a user, where the data modification instruction includes at least an entry identifier of the data to be modified.
[0078] 202. The first node determines the entry type of the data modification instruction according to the entry identifier and the preset correspondence between the entry identifier and the entry type.
[0079] 203a. If the entry type of the data modification instruction is a copy entry, the first node generates a first redo log according to the data modification instruction and stores it in the log buffer.
[0080] 203b. If th...
Embodiment 3
[0109] Such as Figure 5 As shown, a hardware schematic diagram of a node is provided for an embodiment of the present invention.
[0110] The node can be any one of the nodes of the memory database (assuming that the node is the first node), each node is provided with a replication entry for storing synchronization data, and the synchronization data needs to be synchronized with the second node and does not Data that needs to be written to the disk of the first node. In addition, each node is also provided with an ordinary table entry for storing ordinary data, and the ordinary data is data that needs to be synchronized with the second node and needs to be written into the disk of the first node.
[0111] Such as Figure 5 , the first node includes a processor 11 , a transceiver 12 , a cache 13 , a disk 14 and a bus 15 .
[0112] Wherein, the processor 11 , the transceiver 12 , the cache 13 and the disk 14 are communicatively connected through the bus 15 .
[0113] The pr...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 