Method and system for synchronizing data

A data synchronization and database technology, applied in the field of memory database, can solve the problems of waste of resources, data loss, etc., and achieve the effect of improving reliability

Active Publication Date: 2010-06-23
JUHAOKAN TECH CO LTD
View PDF0 Cites 40 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the problem of resource waste and data loss during switching caused by the simultaneous operation of two memory databases of mutual active and standby machines in the prior art, the present invention provides a data synchronization method

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
  • Method and system for synchronizing data
  • Method and system for synchronizing data
  • Method and system for synchronizing data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0074] In order to solve the problem of resource waste and data loss during switching caused by the simultaneous operation of two memory databases of mutual active and standby machines in the prior art, the embodiment of the present invention provides a data synchronization method. Process such as figure 1 As shown, step 101, receiving and buffering the logical log, sorting the logical log by serial number;

[0075] Step 102, judging whether the logical log is normal;

[0076] Step 103, if the logical log is normal, write the logical log into the memory database.

[0077] Embodiments of the present invention also provide a data synchronization method, such as figure 2 As shown, in step 201, send the logical log to at least one edge node, and receive a response message sent by the edge node, and the response message carries a logical log sequence number and a node number;

[0078] Step 202, after receiving the response messages from all the edge nodes, delete the cached log...

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 method and a system for synchronizing data, relating to the field of memory database, and solving the problems of resource waste caused by synchronous operation of two memory databases and data loss caused by switching. The method for synchronizing data comprises the following steps of: receiving and caching logic log and ordering the logic log according to the serial number; judging whether the logic log is in normal state or not; and if so, writing the logic log in the memory database. The invention can be applied to data synchronization of a database.

Description

technical field [0001] The invention relates to the field of memory databases, in particular to a data synchronization method and a data synchronization system. Background technique [0002] For enterprise users, various services are based on the database, and the reliability of the database is very important. In order to improve the reliability of the in-memory database, you can adopt the scheme of active and standby dual machines. The two in-memory databases run at the same time. One host receives business access, and the other serves as the backup machine to synchronize the data in the host’s memory in real time. In case of failure, switch to the standby machine, and the standby machine will continue to provide services. [0003] In the process of realizing the above-mentioned in-memory database working in the master / standby mode, the inventor found that at least the following problems existed in the prior art: [0004] 1. Two in-memory databases run at the same time, b...

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): G06F17/30
Inventor 周丹弟
Owner JUHAOKAN TECH CO LTD
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