Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Master selection method and system of ha component in distributed database system

A database and distributed technology, applied in the field of distributed databases, can solve problems such as reducing efficiency and usability, and achieve the effect of improving efficiency and preventing split-brain

Active Publication Date: 2020-03-17
FUJIAN TQ DIGITAL
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Distributed database systems have several problems, among them, the availability problem is a fundamental problem for most application services
However, this method cannot completely prevent the split-brain phenomenon, and the coordinators need to communicate with each other regularly, which may reduce the efficiency

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
  • Master selection method and system of ha component in distributed database system
  • Master selection method and system of ha component in distributed database system
  • Master selection method and system of ha component in distributed database system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0068] Please refer to figure 1 , Embodiment 1 of the present invention is: a method for selecting masters of HA components of a distributed database system, please refer to figure 2 , the distributed database system includes a database cluster 1 , an HA component cluster 2 , a database agent 3 and a coordination component 4 . The database cluster 1 is composed of at least one database group, and one database group includes one primary database node and at least one standby database node. The HA components in the HA component cluster 2 provide the high availability function of the database cluster 1 . The coordination component 4 saves the information of the database cluster 1, including all database groups and the primary and backup information of the database nodes therein, and actively notifies the database agent 3 and the HA component when the information of the database cluster 1 changes. The database agent 3 reads the information of the entire database cluster 1 from ...

Embodiment 2

[0094] Please refer to Figure 5 , this embodiment is an HA component selection master system of a distributed database system corresponding to the method of Embodiment 1, including:

[0095] The sending module 101 is used for each HA component to send a write request to the coordination component;

[0096] The assigning module 102 is used for the coordinating component to assign a unique identifier to each HA component according to the write request, and obtain the association information between each HA component and its corresponding identifier; the write request includes HA component data uniquely corresponding to the HA component. Optionally, the assigning module 102 is specifically used to assign each HA component a sequentially increasing serial number according to the time sequence in which the write request of each HA component is received by the coordinating component, and obtain the association of each HA component with its serial number information.

[0097] The ...

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 HA module master selecting method and system for a distributed database system. The HA module master selecting method includes the steps that all HA modules send writing requests to coordination modules; the coordination modules give unique identifications to all the HA modules respectively according to the writing requests, and associated information of all the HA modules and corresponding identifications of all the HA modules is obtained; one HA module obtains the associated information; the HA module obtains an identification corresponding to the HA module according to the associated information; whether the identification is a preset primary-node identification or not is judged. The coordination modules are introduced into a whole architecture of a distributed database, mutual communication between the HA modules is achieved through the coordination modules, and it can be avoided that the efficiency of the HA modules is reduced; according to the characteristics such as the sequential consistency of the coordination modules, unique identifications of all the HA modules are given, all the HA modules can determine unique primary nodes according to the uniqueness of the identifications, and the brain-split phenomenon is further prevented.

Description

technical field [0001] The invention relates to the field of distributed databases, in particular to a method for selecting a master of an HA component of a distributed database system and a system thereof. Background technique [0002] In the era of big data, distributed databases have become the necessary infrastructure for data storage. Distributed database systems have several problems, among which availability is a fundamental problem for most application services. Providing a certain degree of high availability service is one of the necessary characteristics of a distributed database system. [0003] At present, there are many high-availability solutions for distributed database systems, and single-node high-availability components are often used for fault detection and fault handling. This solution has a single point of failure, and when the high-availability component itself is abnormal, it will not be able to provide high-availability services. [0004] For a dis...

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 Patents(China)
IPC IPC(8): G06F11/30G06F16/27
CPCG06F11/3006G06F11/3055G06F16/27
Inventor 刘德建陈小钟贾玉博陈霖吴拥民陈宏展
Owner FUJIAN TQ DIGITAL
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products