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

Zookeeper cluster system and connection method and device thereof

A cluster system and connecting device technology, applied in the Internet field, can solve the problem that the Zookeeper client cannot update the server list in time, and achieve the effect of avoiding the inability to update the server list in time and avoiding resource competition.

Active Publication Date: 2018-08-17
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the present invention provides a Zookeeper cluster system and its connection method and device, to solve the problem that the Zookeeper client cannot update the server list in time due to resource competition when a large number of client Zookeepers are connected to the server

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 cluster system and connection method and device thereof
  • Zookeeper cluster system and connection method and device thereof
  • Zookeeper cluster system and connection method and device thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] figure 1 A schematic structural diagram of a Zookeeper cluster system provided by the embodiment of the present invention;

[0036] refer to figure 1 As shown, the Zookeeper cluster provided by this embodiment includes a server 100 and an agent device 300, and the server is configured on multiple servers in a centralized or decentralized configuration to provide cluster services for the Zookeeper client; the Zookeeper client directly provides the user with Provides an interface system for accessing the server. Generally speaking, there are multiple Zookeeper clients, which are used to provide services for multiple users.

[0037] The proxy device is deployed on the machine where the Zookeeper client is located. The proxy device here can be understood as a hardware electronic device with data processing, and can also be understood as a functional module realized by running a corresponding program on the machine where the Zookeeper client is located.

[0038] The prox...

Embodiment 2

[0042] figure 2 It is a flow chart of the steps of a connection method of a Zookeeper cluster system provided by the embodiment of the present application.

[0043] refer to figure 2 As shown, the connection method provided in this embodiment is applied to the Zookeeper cluster system in the previous embodiment, specifically to the agent device of the cluster system. The proxy device includes at least one processor, and a memory connected to the processor. There are instructions for the processor to execute in the memory. When the processor executes the instructions, the above connection method can be realized, specifically:

[0044] S101: Receive a request instruction sent by each Zookeeper client.

[0045] When the corresponding Zookeeper client sends a corresponding request instruction to the server, the request instruction is received.

[0046] S102: Configure path information for the request instruction.

[0047] When a corresponding request instruction is received, t...

Embodiment 3

[0063] Figure 4 It is a structural block diagram of a connection device of a Zookeeper cluster system provided by an embodiment of the present application.

[0064] refer to Figure 4 As shown, the connection device provided in this embodiment is applied to the Zookeeper cluster system in the previous embodiment, specifically to the agent device of the cluster system. The connection device includes a first receiving module 10 , a path configuration module 20 , a first sending module 30 , a second receiving module 40 and a second sending module 50 .

[0065] The first receiving module is used for receiving the request instruction sent by each Zookeeper client.

[0066] When the corresponding Zookeeper client sends a corresponding request instruction to the server, the request instruction is received.

[0067] The path configuration module is used to configure path information for request instructions.

[0068] When a corresponding request instruction is received, the upper...

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 embodiment of the invention provides a Zookeeper cluster system and a connection method and device thereof. The Zookeeper cluster system comprises a proxy device, wherein the proxy device is deployed on a machine in which Zookeeper clients are located; each Zookeeper client is connected with a server through the proxy device; and the proxy device is used for maintaining server lists of a Zookeeper cluster, carrying out connection on the Zookeeper clients and specific machines of the server according to requests of the Zookeeper clients and forwarding the requests of the Zookeeper clients to the specific machines. The proxy device is deployed on the machine in which Zookeeper clients are located and maintains the server lists, so the Zookeeper clients can obtain the server lists in theneighborhood and update own server lists. The Zookeeper clients do not obtain the server lists from the server for updating, so the resource competition problem is avoided, and the problem that the server lists cannot be timely updated due to resource competition can be avoided.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a Zookeeper cluster system and a connection method and device thereof. Background technique [0002] Zookeeper cluster is a distributed coordination system widely used by many Internet companies. As an important cornerstone of distributed systems, the coordination mechanism provided is relied on by many important large-scale distributed system bottom layers, such as distributed computing system Hadoop, message system Kafka et al. The Zookeeper cluster relies on the Zab protocol to provide users with a guarantee of consistency, and can provide functions such as master election and distributed locks. Since the bottom layer of the Zookeeper cluster relies on the ZAB protocol, the write operation of the client needs to be successfully written on most servers at the same time to be considered successful. This mechanism leads to the more servers deployed, the longer the write ope...

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): H04L29/08
CPCH04L67/56H04L67/60H04L67/63
Inventor 梁云龙
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
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