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

Distributed database weighted voting method based on operating sequence number

An operation sequence, database technology, applied in the field of database management, can solve the problems of single write operation, cannot guarantee the detection of master node failure, etc., to achieve the effect of improving work efficiency

Inactive Publication Date: 2015-09-23
SHENZHEN SEQUOIADB DATABASE SOFTWARE CO
View PDF3 Cites 75 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It cannot be guaranteed that the system will find the failure of the master node in the shortest time, and elect a new master node from the original slave nodes according to the weight to perform a single write operation

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 weighted voting method based on operating sequence number
  • Distributed database weighted voting method based on operating sequence number
  • Distributed database weighted voting method based on operating sequence number

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] The technical content of the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0059] Such as figure 1 As shown, the distributed database weight election method based on the operation sequence number provided by the present invention includes the following steps: when the distributed database is running, the information between nodes in the distributed database is carried out by sending a heartbeat message containing the operation sequence number. synchronization. Detect heartbeat messages in real time, and judge whether there is a normal master node in the cluster through abnormal detection. When there is a normal master node, update the operation sequence number stored in the local node according to the heartbeat message; otherwise, send a request to other nodes in the cluster to become the master node , and elect the master node according to the operation sequence number. The follow...

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 weighted voting method based on an operating sequence number. The method comprises the steps as follows: S1, synchronizing information among nodes by transmitting a heartbeat message comprising the operating sequence number when a distributed database is operated; S2, judging whether there is a normal host node in a cluster via anomaly detection, and updating the operating sequence number stored by a local node according to the heartbeat message when there is the normal host node; otherwise, turning to a step S3; S3, transmitting a message for requesting to be the host node to other nodes in the cluster while detecting that there is no normal host node in the cluster from the node and voting the host node according to the operating sequence number. The distributed database weighted voting method of the invention could incorporate the operating sequence number for describing the newest operating state of the node so that the node comprising the newest operating sequence number could be voted as the host node to ensure maximum user operations to be remained, thereby improving work efficiency.

Description

technical field [0001] The invention relates to a distributed database election method, in particular to a distributed database weight election method based on an operation sequence number, which belongs to the technical field of database management. Background technique [0002] Today, master-slave configuration in distributed computing systems has become a widely accepted concept, and the core of data consistency guarantee lies in the election mechanism. At any time, only one node in a cluster can be used as the master node to handle read and write operations, and the other nodes are used as hot standby in case the master node fails. [0003] Now, the general practice is to use an election mechanism similar to the Paxos algorithm, which divides multiple nodes into different roles such as electors and voters. In the end, the control cluster will definitely elect at most one node as the master node, and all other nodes are Unanimously recognize the node as the primary node....

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
CPCG06F16/27
Inventor 王涛
Owner SHENZHEN SEQUOIADB DATABASE SOFTWARE CO
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