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

Zookeeper-based request coordination method and device, computer equipment and storage medium

A coordination method and write request technology, applied in transmission systems, electrical components, etc., can solve the problems of limiting ZooKeeper scalability and fault tolerance, low processing efficiency, resource waste, etc., to improve horizontal expansion capabilities and fault tolerance, avoid The problem of low efficiency and the effect of fast routing

Active Publication Date: 2022-02-25
中国移动通信集团重庆有限公司 +1
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The ZooKeeper technology in the related art has the following defects: on the one hand, the election of the leader node (Leader) of ZooKeeper is based on the message delivery consensus algorithm (paxos algorithm), and the paxos algorithm obtains the majority of Server supported by a certain service node (Server). Therefore, the process is a repeated recursive process, so that the number of Servers participating in the election cannot be too many. At the same time, the total number of Servers must be an odd number 2n+1, and the number of surviving Servers must not be less than n+1, which limits the scalability and fault tolerance of ZooKeeper
Or only select m servers from n servers to run the ZooKeeper service to ensure that the data of the ZooKeeper service will not be migrated when the entire cluster is restarted or more than half of the servers where the ZooKeeper service is located are down, but in this case, there will be n-m servers. In the standby state, the processing capacity of the entire server cluster is only all m / n, resulting in waste of resources
Or choose the node with the smallest number as the Leader node every time, but this situation does not consider the load of the node and achieve load balancing
[0004] On the other hand, the read and write access of the client has two modes: write-master and write-arbitrary. In the write-master mode, the modification of the data by the client is submitted to the Leader, and all write requests submitted to the follower (Follower) client It needs to be transferred from Follower to Leader for processing, and the processing efficiency is not high; when writing any mode, the modification of data by the client can be submitted to any Server node, and there is a risk of data consistency and deadlock

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
  • Zookeeper-based request coordination method and device, computer equipment and storage medium
  • Zookeeper-based request coordination method and device, computer equipment and storage medium
  • Zookeeper-based request coordination method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The features and exemplary embodiments of the various aspects of the present invention will be described in detail below, in order to clarify the purposes of the present invention, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments. It will be appreciated that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the invention. The invention can be carried out without some details in these specific details in the art. The description of the embodiments is merely understood to provide a better understanding of the present invention by illustrating the examples of the present invention.

[0036]It should be noted that in this article, a relationship term such as the first and second, etc. is only used to distinguish an entity or operation with another entity or an operational zone, without having to require or imply these e...

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 Zookeeper-based request coordination method and device, computer equipment and a storage medium. Among them, the Zookeeper-based request coordination method includes: receiving the write request from the client; mapping all service nodes in the Zookeeper cluster to the node ring; calculating the distance between every two adjacent nodes on the node ring through the proxy node, and obtaining the leader according to the distance Node; query the routing table through the proxy node, and submit the write request to the leader node for processing. According to the embodiment of the present invention, the requirement for the number of Servers in the leader election of the existing ZooKeeper cluster is made up, and the horizontal expansion capability and fault tolerance of the ZooKeeper cluster are improved; the agent node query routing table is introduced to quickly route the client request, avoiding the existing client Inefficiency problems caused by writing to the main mode or data consistency problems caused by writing to arbitrary modes.

Description

Technical field [0001] The present invention belongs to the field of distributed system cluster, and more particularly to a request coordination method based on ZooKeeper, a request coordination device, computer device, and computer storage medium based on ZooKeeper. Background technique [0002] ZooKeeper is a software that provides consistency services for distributed applications, distributed applications can implement configuration management, name service, distributed lock, cluster management, queue management, and more. [0003] ZooKeeper technology in the related art has the following defects: one aspect, ZooKeeper's leader node (Leader) election is based on a messaging consistency algorithm (PaxOS algorithm), and the PaxOS algorithm acquires most Server support in a service node (Server). In the case, it can be recommended as Leader, so the process is a repeated process, making the number of Server participating in the elections not too much, and the total number of Serve...

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): H04L67/1004H04L67/56
Inventor 谢辉
Owner 中国移动通信集团重庆有限公司
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