h1. ZooKeeper top
Author: "Patrick Hunt":http://people.apache.org/~phunt/ (follow me on "twitter":http://twitter.com/phunt)
h2. Summary
"This project":http://github.com/phunt/zktop provides a unix "top" like utility for ZooKeeper. It is compatible with Python2.6, Python2.7 and Python3.
h3. Example
Running:
or - omitting the port numbers, defaulting to 2181 -
or, for a ZK-style configuration file:
shows a screen like:
h3. What's Apache ZooKeeper?
From the "official site":http://hadoop.apache.org/zookeeper/: "ZooKeeper is a high-performance coordination service for distributed applications."
It exposes common services - such as naming, configuration management, synchronization, and group services - in a simple interface so you don't have to write them from scratch. You can use it off-the-shelf to implement consensus, group management, leader election, and presence protocols.
h2. zktop.py
- Top line is overall cluster status
1-n) Lines 1-n are for the n servers
n+1 and below are for client connections
h3. Usage
--fix_330 works around a bug in ZooKeeper 3.3.0, it is only necessary if running the server against that version of ZooKeeper.
The screen refreshes every 3 seconds.
- 'h' help
- 'q' quits
- 'r' resets the server stats
- spacebar updates immediately
h2. PyPi
zktop is now installable from PyPi
h2. License
This project is licensed under the Apache License Version 2.0