Monitoring servers using zookeeper
Vložit
- čas přidán 12. 07. 2024
- This is a video about Monitoring servers using zookeeper. You can monitor if a server is up and running using zookeeper. It is much better than polling approach. We have also covered a coding example with a demo. Apache zookeeper has utility in coordinating between services. I have a playlist dedicated for zookeeper. You can find the playlist here: • apache zookeeper
Here is the link to the code on Github: github.com/anshriva/zookeeper...
Here is the link to the White Paper on who zookeeper is used for cluster monitoring at Yahoo: drive.google.com/file/d/13T0W...
Chapters:
00:00 Intro
00:18 Problem statement
03:05 Polling Approach
05:14 Solution Approach
10:22 Coding
15:52 Demo
19:05 Conclusion
[Tags]
apache zookeeper
apache kafka
apache zookeeper explained
apache zookeeper tutorial
apache zookeeper demo
big data tutorial for beginners
apache zookeeper use cases
apache zookeeper kafka
apache zookeeper service discovery
apache zookeeper maven
apache zookeeper github
zookeeper cluster management
zookeeper monitoring
apache zookeeper architecture
zookeeper monitoring metrics
zookeeper monitoring tools - Věda a technologie
very simple and informative!. Thanks for the video
Nice video. The code was of utmost importance to understand the concept.
One question: How to servers keep a persistent connection with the zookeeper? I am hoping they are not sending heartbeats to the zookeeper server.
The persistent connection is a TCP based connection. The heartbeat mechanism in Zookeeper is used to detect if the connection is still active.
In the below code, 2000 is the heart beat interval in milliseconds. So, it will check for connection being alive every 2 seconds. If you do not give this optional value while connecting, it will consider the default value as 1/3 rd of session time out (5000). So, the default value for below case will be 1667 ms.
ZooKeeper zk = new ZooKeeper("localhost:2181", 5000, new Watcher() {
@Override
public void process(WatchedEvent event) {
// handle Zookeeper event
}
}, false, new MyZkConnectionWatcher(), 2000);
I have one question regarding zookeeper , suppose we have 3 node cluster and leader went down , so how much time will it take to re-elect a new leader ? and in that time will client gets an error ?
Hi which tool you are using to draw the picture, would you like to share it with me? Thanks
I use sketchwow