Nodetool Move: Moving a node to a specific ring location
Cassandra uses a Consistent Hashing
to divide the data in a cluster between nodes. Each node has an Initial Token
that represents its logical position on the ring and what data it should hold. There are many situations where a node is not placed at an optimal position in the ring. This may be because of the addition or removal of other nodes. It also may be because while using
OrderPreservingPartitioner, hotspots can naturally develop due to uneven key distribution. This recipe shows how to use
to adjust a node's position.
Use the recipe Calculating Correct Initial Tokens from Chapter 1 to determine what the ideal tokens should be.
How to do it...