-
Notifications
You must be signed in to change notification settings - Fork 118
syncobj_admin
Filipp Ozinov edited this page Jan 8, 2017
·
3 revisions
syncobj_admin is utility for monitoring cluster state and adding / removing cluster nodes. It is installed with PySyncObj from pip. It has folowing modes:
You can check each node status with folowing command:
syncobj_admin.py -conn localhost:1181 -status
You'll get different node parameters. Most usefull are:
-
state- it can be one of the folowing:
0 - folower
1 - candidate
2 - leader
-
leader- current cluster leader -
partner_nodes_count- number of partner nodes -
partner_node_status- statuses of connections to partner nodes:
0 - disconnected
1 - connecting
2 - connected
-
commit_idx- last commited transaction number -
last_applied- last applied transaction number -
version- version of a library -
revision- previous git commit hash -
uptime- number of seconds that node process is alive