Data reading method and device based on implementation of distributed consistency protocol

A technology for data reading and protocol implementation, applied in the field of data processing, can solve problems such as affecting reading performance and reading data overhead, and achieve the effect of improving data reading efficiency and reading performance.

Active Publication Date: 2018-06-29
BEIJING QIHOO TECH CO LTD
View PDF2 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The existing data reading method based on the distributed consensus protocol requires that each operation of reading data must follow the distributed consensus protocol (Raft protocol), that is, the service node that receives the data reading request sends the request through the network Send to other service nodes in the distributed system. After more than half of the service nodes in the distributed system confirm the data corresponding to the data read request, the data will be returned to the client, and it also needs to be recorded in the service node log, so that The overhead of reading data is too large, which affects the reading performance

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
  • Data reading method and device based on implementation of distributed consistency protocol
  • Data reading method and device based on implementation of distributed consistency protocol
  • Data reading method and device based on implementation of distributed consistency protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0026] figure 1 A schematic flowchart of a data reading method implemented based on a distributed consensus protocol according to an embodiment of the present invention is shown. This method is applied to a distributed system containing multiple service nodes, such as figure 1 As shown, the method includes the following steps:

[0027] Step S100, select a service node from multiple service nodes as the main service node, set 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 data reading method and a data reading device based on the implementation of a distributed consistence protocol, computer equipment and a computer storage medium. The methodcomprises the steps of selecting a service node from a plurality of service modes to serve as a main service node, setting lease time of the main service node, and broadcasting node information of themain service node to the other service nodes; when any service node receives a data reading request sent by a client, and comparing the node information of the service node with the node informationof the main service node to determine that whether the service node is the main service node; and if the service node is not the main service node, forwarding the data reading request to the main service node, so as to return data stored by the main service node to a client. Therefore, the data reading efficiency and reading performance can be enhanced, and the problem that in the prior art, the overhead for reading the data is large is overcome.

Description

technical field [0001] The present invention relates to the technical field of data processing, in particular to a data reading method, device, computing device and computer storage medium realized based on a distributed consensus protocol. Background technique [0002] A complete distributed system is formed by connecting many service nodes in different locations through the network, and a large amount of data is distributed among different service nodes in the entire network system. All clients connected to the distributed system can access the data in any service node. [0003] The existing data reading method based on the distributed consensus protocol requires that each operation of reading data must follow the distributed consensus protocol (Raft protocol), that is, the service node that receives the data reading request sends the request through the network Send to other service nodes in the distributed system. After more than half of the service nodes in the distrib...

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): H04L29/08H04L12/24H04L1/22
CPCH04L1/22H04L41/0668H04L67/1008H04L67/1097H04L67/1001H04L67/62
Inventor 陈宗志
Owner BEIJING QIHOO 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