Data synchronization method and system

A technology for synchronizing data and data, applied in the storage field, can solve problems such as destructive code, difficult to use, complex processing process, etc., and achieve the effect of logical transparency and strong versatility

Active Publication Date: 2019-09-03
TENCENT TECH SHANGHAI
View PDF12 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In related technologies, the data synchronization scheme is logically coupled with the upper layer of the primary server, and cannot be generalized
The master server needs to encapsulate the corresponding change data for each protocol. When the slave server processes the synchronization protocol, it also needs to pay attention to the logic implementation of the corresponding function block. The sub-coroutines are divided into two modes. Since each sub-coroutine is relatively independent, it is difficult to use and it is very destructive to the code of the original logic function.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0044] see figure 1 , which shows a method for synchronizing data provided by an embodiment of the present invention, and the method for synchronizing data can be used for data synchronization between a master server and a backup server in a master-slave hot backup mechanism. It should be noted that the method for synchronizing data in the embodiment of the present invention is implemented based on the memory pools of the active server and the standby server.

[0045] In this embodiment of the present invention, the active server and the standby server may establish memory pools in their respective memories, and the memory pool may be a pre-divided memory space located in the server memory.

[0046] In the embodiment of the present in...

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 and system, and belongs to the technical field of storage. The method comprises the following steps: receiving a data synchronization request sentby a master server; analyzing the data synchronization request, and obtaining first memory block identification information and to-be-synchronized data, the first memory block being a memory block inwhich data change occurs in a memory pool of a main server; obtaining a second memory block head address corresponding to the first memory block identification information in a local memory pool; andsynchronizing the to-be-synchronized data to a second memory block corresponding to the head address of the second memory block in a local memory pool. According to the invention, the addresses of the memory blocks in the memory pools corresponding to the main server and the standby server are consistent; the data in the memory block with the data change of the master server is directly copied tothe corresponding memory block in the standby server, the data synchronization process is transparent to the upper layer logic of the master server, the code of the original function logic does not need to be damaged, and the universality is high.

Description

technical field [0001] The invention relates to the field of storage technology, in particular to a method and system for synchronizing data. Background technique [0002] The computer disaster recovery system is an environment that can cope with various disasters. When the computer system suffers from irresistible natural disasters such as fire, flood, earthquake, war, etc., as well as man-made disasters such as computer crime, computer virus, power failure, network / communication failure, hardware / software error, and human error, the disaster recovery system It will ensure the security of user data, also known as data disaster recovery. [0003] The current solution for data disaster recovery is mainly the master-slave hot backup mechanism, that is, under normal circumstances, the master server provides services, and the slave server (also called the backup server) does not provide services. When the master server fails, it will switch to the slave server. server to provi...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/1095
Inventor 吴源荣
Owner TENCENT TECH SHANGHAI
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