Data replication method and device
A data replication and data technology, applied in the field of data processing, to achieve the effect of high availability and high fault tolerance, saving transmission times, and saving network traffic
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] Combining the above and figure 1 In the schematic diagram of the implementation environment shown, in order to achieve high availability and high fault tolerance of data and services in the face of Internet massive data services under the condition of saving the number of transmissions of log events and network traffic, this embodiment provides A method of data replication. see figure 2 , the method flow provided by this embodiment is specifically as follows:
[0060] 201: Obtain log events with updated data recorded from one or more servers in the local replication group;
[0061] As a preferred embodiment, after acquiring log events with updated data from one or more servers in the local replication group, it also includes:
[0062] Record the status information of log events obtained from one or more servers in the local replication group, and the status information includes at least the node ID, log file name, log file offset and current status information of on...
Embodiment 2
[0080] This embodiment provides a method for data replication. For the convenience of description, this embodiment combines the content of the first embodiment above, as follows figure 1 The implementation environment shown is taken as an example, and the method provided in this embodiment is described in detail. see image 3 , the method flow provided by this embodiment is specifically as follows:
[0081] 301: Obtain log events with updated data recorded from one or more servers in the local replication group;
[0082] For this step, the local replication group is the replication group where the execution subject of the method provided by this embodiment is located. by figure 1 The method in which synchronization node 1 executes data replication in the illustrated implementation environment is taken as an example, and the local replication group is the replication group where synchronization node 1 is located. There is a replication relationship between one or more serve...
Embodiment 3
[0150] This embodiment provides a data replication device, which is used to implement the data replication method provided in the first or second embodiment above, see Figure 4 , the device consists of:
[0151] The first acquisition module 401 is configured to acquire log events recorded with updated data from one or more servers of the local replication group;
[0152] A storage module 402, configured to store the obtained log event in the relay log of the local replication group;
[0153] The first update module 403 is used to update the version number of the relay log of the local replication group;
[0154] The second obtaining module 404 is used to obtain the relay logs of other replication groups and the version numbers of the relay logs of other replication groups. The relay logs of other replication groups store information obtained from one or more servers of other replication groups Log events with updated data;
[0155] A selection module 405, configured to sel...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com