Data node monitoring method, device, electronic equipment and storage medium

A data node and monitoring method technology, applied in the field of network communication, can solve problems such as multi-network resources, increasing the number of network interactions between the client and the server, and missing the change of the target data node, so as to save network resources, simplify the operation of the monitoring mechanism, The effect of reducing the number of network interactions

A data node and monitoring method technology, applied in the field of network communication, can solve problems such as multi-network resources, increasing the number of network interactions between the client and the server, and missing the change of the target data node, so as to save network resources, simplify the operation of the monitoring mechanism, The effect of reducing the number of network interactions

CN109525466BActive Publication Date: 2020-09-29杭州云毅网络科技有限公司

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data node monitoring method, device, electronic equipment and storage medium
  • Data node monitoring method, device, electronic equipment and storage medium
  • Data node monitoring method, device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.

[0064] This application is mainly used in Zookeeper, so the server involved in this application is the server cluster of Zookeeper, and the client is the machine that uses Zookeeper service. No more explanations one by one in the follow-up.

[0065] According to an embodiment of the present application, a data node monitoring system is provided. See figure 1 , The data node monitoring system includes:

[0066] The server 100; wherein, the server 100 can...

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 present application provides a method and a device for listening a data node. The method comprises the following steps of: using a listener to listen a target data node; sending a notification request to a client registering the listener if the listener listens that the target data node changes; and retaining the listener so as to continue to listen the target data node. The method and the device can retain the listener without deleting after the listening operation; therefore, the target data node can be repeatedly listened, and the situation that the change of the target data node is missed during from the deletion of the listener to the newly-building of the listener can be avoided, so that the problem that the change of the target data node is missed during from the deletion of thelistener to the newly-building of the listener is solved. The client only needs to send a registration request to a server once, and does not need to send the registration request to the server multiple times; therefore, the number of network interactions between the client and the server can be reduced, so that the network resource is saved and the listening mechanism operation is simplified.

Description

Technical field [0001] This application relates to the field of network communication technology, and in particular to a method and device for monitoring data nodes. Background technique [0002] As a distributed coordination service system, Zookeeper can provide open source distributed configuration, synchronization services, and naming registration services for large-scale distributed computing. The ZooKeeper system includes a server and multiple clients, and the server includes multiple data nodes. [0003] In the monitoring mechanism supported by ZooKeeper, the client can register a watcher with the server so that the server can monitor the target data node that the client is concerned about. If the server monitors that the target data node changes, the listener is triggered to notify the client that registered the listener. [0004] However, since the ZooKeeper default listener will be deleted after it is used once, the listener in ZooKeeper can only perform one trigger operat...

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
29 Sep 2020
Publication
CN109525466B
IPC
H04L12/26
CPC
H04L43/12
Inventors
陈浩