nodetool - Knowing which real node is up in a Cassandra cluster under virtual node setting -
virtual node powerful setting in cassandra ease burden of assigning proper initial token each node, found pain when reading output of nodetool ring
each node described tons of lines. example:
node-1 155 normal 228.55 kb 8.31% 7196378057413163154 node-1 155 normal 228.55 kb 8.31% 7215375135797395653 node-1 155 normal 228.55 kb 8.31% 7299851409832649823 node-1 155 normal 228.55 kb 8.31% 7361899028342316034 node-1 155 normal 228.55 kb 8.31% 7470359832465044920 node-1 155 normal 228.55 kb 8.31% 7631123206720404219 node-1 155 normal 228.55 kb 8.31% 7675034684873781539 node-1 155 normal 228.55 kb 8.31% 7871044212864174985 node-1 155 normal 228.55 kb 8.31% 7888407753199222932 node-1 155 normal 228.55 kb 8.31% 7916197345035903777 node-1 155 normal 228.55 kb 8.31% 7940203367286725631 node-1 155 normal 228.55 kb 8.31% 7981190016602200507 node-1 155 normal 228.55 kb 8.31% 8015518064513163806 node-1 155 normal 228.55 kb 8.31% 8018007479871405889 .....
if goal know real node up, , how data each real node possesses, can know how should it?
you should use nodetool status
, outputs 1 line per node e.g.
$ bin/nodetool status datacenter: datacenter1 ======================= status=up/down |/ state=normal/leaving/joining/moving -- address load tokens owns host id rack un 127.0.0.1 152.64 kb 256 100.0% 22f70e40-4070-483a-9fa6-e272556b7164 rack1
Comments
Post a Comment