Database Reference
In-Depth Information
Once the cluster is up and running, you can use the command-line tool
node-
tool
to show various statistics about the nodes in the cluster. The option for
no-
detool
to describe the ring, its tokens, load, and the effective ownership of the
nodes in the cluster is
nodetool ring
. Just run the command from any node in
the ring to get an output of the entire ring's statistics.
Listing 2.2
shows the usage
of
nodetool ring
and example output for a six-node cluster.
Listing 2.2
Using
nodetool
to Show Cluster State
$ nodetool ring
Ad-
dress
DC
Rack
Status
State
Owns Token
141784319550391026443072753096570088105
127.0.0.1
datacenter1
rack1
Up
Normal
6.82 KB
16.67%
0
127.0.0.2
datacenter1
rack1
Up
Normal 9.09 KB 16.67%
28356863910078205288614550619314017621
127.0.0.3
datacenter1
rack1
Up
Normal 13.5 KB 16.67%
56713727820156410577229101238628035242
127.0.0.4
datacenter1
rack1
Up
Normal 15.57 KB 16.67%
85070591730234615865843651857942052863
127.0.0.5
datacenter1
rack1
Up
Normal 13.52 KB 16.67%
113427455640312821154458202477256070484
127.0.0.6
datacenter1
rack1
Up
Normal 6.82 KB 16.67%
141784319550391026443072753096570088105