Supercharge Your Innovation With Domain-Expert AI Agents!

Distributed database disaster recovery method based on log pushing

A database and distributed technology, applied in the field of database disaster recovery, can solve the problems of poor performance, poor performance and loss of full synchronous replication

Active Publication Date: 2021-09-10
北京易鲸捷信息技术有限公司
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

After the main database cluster executes the transaction submitted by the client, it will wait for all the standby database clusters to receive and write the transaction in the replay log before returning to the client. There is no data inconsistency between the main and standby database clusters. The database cluster is returned to the client after the playback is completed, so the performance is very poor
Therefore, there is a certain risk of loss of MySQL database that records binlog logs on the primary database cluster. Although the full synchronous replication strategy can ensure that the data in the primary and standby database clusters is consistent, the performance of full synchronous replication will be poor, and full synchronization Replication also records binlog logs in the primary database cluster. The standby database cluster needs to pull data from the primary database cluster, and then the standby database cluster performs binlog log playback operations.

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
  • Distributed database disaster recovery method based on log pushing
  • Distributed database disaster recovery method based on log pushing
  • Distributed database disaster recovery method based on log pushing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Based on the research on distributed data disaster recovery technology, the present invention realizes two solutions in the database system, which are the maximum reliability mode and the maximum performance mode, for synchronizing the data of the main database to the standby database in real time. The two modes are handled as figure 1 shown. When performing transaction operations in the primary database cluster, the primary database cluster log push instance will directly push the transaction log to the transaction log table of the standby database cluster in real time, and start the transaction log playback thread on the standby database cluster to read the data in the transaction log table , and then replay the transaction operation in real time, so that the active and standby database clusters reach the state of real-time data synchronization. In addition, for abnormal situations, the cache technology is used to store transaction logs without affecting the transact...

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 distributed database disaster recovery method based on log pushing, and belongs to a database disaster recovery method. The method comprises the steps of: when a client conducts transaction operation through a main database cluster, enabling the main database cluster to start a transaction log synchronization thread, and synchronously recording the operation of a current transaction as a transaction log; and sending the transaction log to a log pushing instance, and pushing the transaction log to a transaction log table of a standby database cluster by the log pushing instance. Compared with the method that the standby database cluster pulls the transaction logs from the main database cluster in the MySQL database, the method has the advantages that the pulling time is saved, and the data synchronization of the main database cluster and the standby database cluster is more efficient; and in the data pushing process of the main and standby database clusters, abnormal conditions can be processed, so that the transaction log consistency of the main and standby database clusters is ensured, and the risk of data inconsistency of the main and standby database clusters is effectively reduced.

Description

technical field [0001] The present invention relates to a database disaster recovery method, and more specifically, the present invention mainly relates to a distributed database disaster recovery method based on log push. Background technique [0002] In the field of database distributed database, disaster recovery technology is very important to customers, so it has always been one of the hot research directions in the field. At present, the mainstream data synchronization schemes of active and standby database clusters are similar to the data synchronization of MySQL active and standby database clusters. MySQL database mainly consists of three synchronization schemes, namely asynchronous replication, semi-synchronous replication and full synchronous replication. The aforementioned three methods all exist. Their own shortcomings, in asynchronous replication, binlog logs are recorded in the primary database cluster, and the standby database cluster needs to pull binlog logs...

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
CPCG06F11/1448G06F11/1464
Inventor 周建华周兴徐恺华刘明胡景辉张治臣苏锦佩史天航
Owner 北京易鲸捷信息技术有限公司
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