1

I have a single node, single replica cluster. I'm looking to scale it up to have 4 nodes, with a replica factor of 2. The ALTER KEYSPACE command works the the replication, but how to I distribute the existing data across nodes?

GrandVizier
  • 499
  • 7
  • 19

1 Answers1

1

As long as you’re using Vnodes, you don’t need to worry about that. Simply add your new nodes, and the token range recalculations happen automatically. Once you’ve added all new nodes, run a nodetool cleanup on every node and you should be all set.

Aaron
  • 55,518
  • 11
  • 116
  • 132
  • yes, thanks. Using `nodetool ring` and some of the other tips from these answers helped to understand where the data is https://stackoverflow.com/questions/46166650/view-cassandra-partitions-using-cqlsh – GrandVizier Nov 10 '22 at 07:42