Skip to content

Instantly share code, notes, and snippets.

@thanhpk
Created July 13, 2018 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thanhpk/60d87a796c22c4a37fff16df476ed9d4 to your computer and use it in GitHub Desktop.
Save thanhpk/60d87a796c22c4a37fff16df476ed9d4 to your computer and use it in GitHub Desktop.
Get insight about zookeer cluster

echo stat | nc localhost 2181

Zookeeper version: 3.4.8-1--1, built on Fri, 26 Feb 2016 14:51:43 +0100
Clients:
 /10.128.0.10:23356[1](queued=0,recved=1612644,sent=1612660)
 /10.128.0.9:55534[1](queued=0,recved=400,sent=400)
 /10.128.0.8:25044[1](queued=0,recved=400,sent=400)
 /127.0.0.1:27466[0](queued=0,recved=1,sent=0)

Latency min/avg/max: 0/0/444
Received: 7110685
Sent: 7110711
Connections: 4
Outstanding: 0
Zxid: 0x10020bfff
Mode: follower
Node count: 28970

-> a follower

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment