Details
-
Improvement
-
Status: Open
-
Normal
-
Resolution: Unresolved
-
None
-
None
Description
Currently, "nodetool ring $KEYSPACE" shows ownership based entirely upon token distribution. However, the actual ownership must also account for rack information. As an example, for a table with RF=3 in a cluster with three racks, if the ring order of nodes/racks is, e.g. node1-rack1, node2-rack2, node3-rack1, node-4rack2, node5-rack3, ...
It will turn out that node5 shares ownership with node1, node2, node3, and node4 because of rack distribution rules. Not only is this potentially unexpected, it's also somewhat difficult to reason about exactly how the data will be distributed. It would be really convenient if nodetool could tell us this distribution.