Database node cluster fault migration method and device

A fault migration and database technology, applied in the database field, can solve problems such as inability to guarantee business continuity, achieve the effect of ensuring data continuity and liberating manual dependence

Inactive Publication Date: 2019-12-31
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The manual switching method used in the existing technology is highly dependent on the technical ability and experience of the operation engineer itself, and cannot guarantee business continuity
There is currently no effective solution to this problem

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
  • Database node cluster fault migration method and device
  • Database node cluster fault migration method and device

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment approach

[0067] (1) Preparations before the slave node initiates a voting request. In order to become the new master node, the slave node not only needs to obtain the votes of the master node of most management slots in the cluster, but also has as much as possible newer data than other slave nodes (try to ensure that the slave node with the same data as the master node is elected as the new master node) node). For this reason, before sending a voting request to the cluster, the slave node will also exchange replication offsets with other slave nodes in the cluster, so as to ensure that slave nodes with large replication offsets initiate voting as early as possible.

[0068] (2) The slave node initiates a voting request. When the slave node detects that the voting request time has come and the cluster has not yet elected a new master node, the slave node will send a FAILOVER_AUTH_REQUEST message to all nodes in the cluster to request votes.

[0069] (3) All slave nodes in the cluster...

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 database node cluster fault migration method and device. The method comprises the following steps executed by each slave node under the condition of detecting that an original master node is marked to be offline: enabling the slave node to exchange replication offset with other slave nodes so as to determine voting initiation request delay of the slave node; sending a voting request to other slave nodes in response to the slave node waiting time reaching the voting request initiating delay and the new master node not being elected yet; counting voting results in response to voting received by the slave node from other slave nodes to determine whether the slave node is elected as a new master node; and, in response to the slave node being elected as a new master node, using the new master node instead of the original master node to provide service to the outside. The method can achieve the automatic fault migration when the database node cluster breaks down, liberates the manual dependence, and guarantees the data continuity.

Description

technical field [0001] The present invention relates to the field of databases, and more specifically, to a method and device for fault migration of database node clusters. Background technique [0002] With the continuous advancement of informatization, data security and business operation reliability are becoming more and more important. The disaster recovery system can provide a strong guarantee for the high availability and high reliability of the business application system. In some important industries, such as finance and communications, due to the importance of user data, database disaster recovery has attracted more and more attention. The construction of disaster recovery systems will become an important measure to ensure data security. [0003] K-DB Standby Cluster (K-SC for short) is the core function provided for database high availability, data protection, disaster recovery, etc. The K-DB Standby server saves the copy of the database to an independent physica...

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): H04L12/24G06F11/20
CPCG06F11/203H04L41/0663H04L41/0668
Inventor 王文庆
Owner INSPUR SUZHOU INTELLIGENT 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