Distributed consistency protocol submission method and system based on sequential verification

A distributed and consistent technology, applied in transmission systems, digital transmission systems, database distribution/replication, etc., can solve the problems of increasing or decreasing RAFT sending and receiving data, reducing the efficiency of RAFT reaching consensus, etc., so as to improve communication efficiency and reduce coupling. degree, the effect of reducing network bandwidth usage

Active Publication Date: 2021-06-04
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF14 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The RAFT module is to reach a consensus, but it needs to carry user data, and the CommandID in the Entry only occupies 8 bytes, so it is a must for the user data to appear in the Entry This will not only increase or decrease the amount of data sent and received between each node of RAFT, which will affect the network bandwidth, but also reduce the efficiency of RAFT to reach a consensus. At the same time, RAFT Log needs to be placed on the disk, and the storage cost is increased, so it is invented now. A method and system for submitting a distributed consensus protocol based on sequential verification to solve the above problems

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 consistency protocol submission method and system based on sequential verification
  • Distributed consistency protocol submission method and system based on sequential verification
  • Distributed consistency protocol submission method and system based on sequential verification

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] A method for submitting a distributed consensus protocol based on sequential verification, the specific steps of the method include:

[0055] S1 uses the client to establish a long connection with the distributed database cluster according to the agreed communication method;

[0056] The S2 database executes the SQL statement query process;

[0057] After S3 finishes parsing the SQL statement, it converts the operations involved into the corresponding type of Request;

[0058] The present invention provides a distributed consensus protocol submission amplification based on sequential verification. In the current distributed database system, user data is encapsulated and then passed into the distributed consensus algorithm module, such as RAFT, which utilizes distributed consistency The algorithm reaches a consensus among multiple copies. This embodiment takes the CockroachDB distributed database as an example. It uses the RAFT algorithm as the distributed consensus alg...

Embodiment 2

[0082] A distributed consistency protocol submission system based on sequential verification, the system specifically includes a connection module, an execution module and a conversion module:

[0083] Connection module: use the client to establish a long connection with the distributed database cluster according to the agreed communication method;

[0084] Execution module: the database executes the SQL statement query process;

[0085] Conversion module: After completing the parsing of the SQL statement, convert the operations involved into the corresponding type of Request;

[0086] Further, the connection module specifically includes a communication module, a test module and a startup module:

[0087] Communication module: the user connects to the client according to the agreed communication distribution method;

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 consistency protocol submission method and system based on sequential verification, and belongs to the field of distributed database development. The method comprises the following specific steps: S1, establishing long connection with a distributed database cluster by using a client according to an agreed communication mode; s2, enabling the database to execute an SQL statement query process; s3, after SQL statement analysis is completed, converting related operations into Request of a corresponding type. According to the method, the idea of high cohesion and low coupling is utilized, user data is decoupled from the distributed consensus module, an independent user data processing module is formed, the independent user data processing module can be parallel to the distributed consensus module, the performance overhead of the distributed consensus module is reduced, the consensus reaching efficiency of distributed consensus is improved, and therefore, the overall processing capacity of the distributed database is improved, the performance of the distributed database is improved, and meanwhile the portability and reusability of the consensus module are improved.

Description

technical field [0001] The invention discloses a method and system for submitting a distributed consistency protocol based on sequence verification, and relates to the technical field of distributed database development. Background technique [0002] With the rapid development of modern science and technology, more and more technologies have been popularized. In less than a hundred years since the birth of the Internet, it has extended its tentacles to every corner of human society, bringing earth-shaking changes to human civilization, and with the popularization of mobile Internet, this change is showing a trend of continuous acceleration . In the process of rapid development of human society, the data produced by human activities is also increasing rapidly. The database is an IT basic software for storing data. Traditional stand-alone databases are increasingly limited by system scalability, system performance, and input-output ratio, so distributed databases emerge as t...

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/23G06F16/2458G06F16/27H04L12/26H04L29/08
CPCG06F16/2365G06F16/2471G06F16/27H04L67/141H04L43/0811H04L67/568
Inventor 李涛张晖周正德孙思清
Owner SHANDONG LANGCHAO YUNTOU INFORMATION 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