- yum -y install git
- cd
- mkdir bin
- mkdir tools
- cd tools
- git clone https://github.com/phunt/zktop.git
- nice updatedb
- locate zoo.cfg
- jot this path down for step below
- let's call it "mypathtozoocfg"
- the name of your zk conf may vary, adjust if so
- cd
- cd bin
- ln -s /root/tools/zktop/zktop.py .
- make sure you put the '.' on the end of that command
- /root/bin/zktop.py --config /<mypathtozoocfg>/zoo.cfg
- echo srvr | nc localhost 2181
- echo stat | nc localhost 2181
- echo cons | nc localhost 2181
- etc.
- Try: watch -d "echo stat | nc localhost 2181"
- on all zk nodes
- in separate terms
- srvr
- version
- latencies
- received client requests
- sent client responses and notifications
- outstanding requests
- zxid, cluster id
- mode in cluster, leader or follower
- node count (?)
- stat
- similar to srvr
- but has actual connections listed by IP near top
No comments:
Post a Comment
Note: only a member of this blog may post a comment.