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 nodetool move to adjust a node's position.

Getting ready

Use the recipe Calculating Correct Initial Tokens from Chapter 1 to determine what the ideal tokens should be.

How to do it...

  1. Run nodetool ...

Get Cassandra High Performance Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.