Main and standby method and device between database clusters

A technology between databases and clusters, applied in the database field, can solve the problems of high interdependence of nodes, inconsistency, data lag behind the main site, etc., to improve business continuity, enhance high availability, and improve disaster tolerance. Effect

Pending Publication Date: 2022-07-08
上海沄熹科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the data in each node in the standby site usually lags behind the primary site and does not have consistency
Therefore, if the primary site fails and all nodes fail, the standby site cannot take over directly, that is, it does not have disaster recovery capabilities
However, if the data is replicated to the standby site in synchronous mode, although it can ensure that the standby site has the ability to take over services at any time, it faces the increase of the geographical distance between the primary and secondary sites, and the synchronous replication mode will cause significant service performance at the primary site. decline, issues affecting business continuity operations
[0006] On the other hand, the mode of deploying a single cluster across sites still has the problem of high interdependence between nodes, and the possibility of mutual transmission of influence when a failure occurs, causing damage

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
  • Main and standby method and device between database clusters
  • Main and standby method and device between database clusters
  • Main and standby method and device between database clusters

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make those skilled in the art better understand the solution of the present invention, the present invention will be further described in detail below with reference to specific embodiments. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0038] A preferred embodiment is given below:

[0039] like figure 1 As shown, in this embodiment, a method for active / standby between database clusters, the main site has a connection node, a coordinator node, and a common node, and the standby site has a Merge module and a standby database. Taking a cross-node transaction as an example to describe the active-standby solution between database clusters based on the dependencies between transactions, the specific met...

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 relates to the field of databases, and particularly provides a main and standby method between database clusters, which comprises the following steps: S1, after a transaction is started, obtaining a unique transaction ID and returning the transaction ID to a client; s2, a user sends an SQL (Structured Query Language) sql1 to a connection node, the connection node forwards the received sql1 to a corresponding coordinator node for execution, responds to the connection node after execution is completed and returns the sql1 to the client, and meanwhile, an SQL statement or a dependency relationship between Key-Value data corresponding to the SQL statement and transactions is sent to a Merge module of a standby site; s3, the user sends a second SQL sql1, and the process is the same as that of the step S2; s4, the user sends commit / abort statements, and the transaction enters a submission stage; and S5, after receiving the commit, the Merge module of the standby site verifies whether the transaction is complete or not through the key span of the transaction record and the final version number of each range. Compared with the prior art, when the main database breaks down, the main database can be rapidly switched to the standby database, and the disaster recovery capacity of the database is improved.

Description

technical field [0001] The present invention relates to the technical field of databases, and in particular provides a method and a device for master / slave between database clusters. Background technique [0002] A database standby database is a standby database that creates, maintains, and monitors one or more primary databases to protect enterprise data structures from failures, disasters, errors, and crashes. Currently, database active and standby technologies are being widely used around the world. From 911 Since the incident, many companies have put remote disaster recovery at the forefront. The most valuable thing in the 21st century is data. As a basic IT software for storing data, traditional stand-alone databases are increasingly limited in the era of massive data. With poor scalability, smooth performance curve and high investment, distributed databases came into being. Distributed database breaks the performance bottleneck of traditional stand-alone database, can...

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): G06F16/27G06F16/242G06F11/14G06F9/46
CPCG06F16/27G06F16/2433G06F11/1448G06F9/466
Inventor 管延信朱林浩杨帅
Owner 上海沄熹科技有限公司
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