Reputation: 639
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?
Upvotes: 1
Views: 92
Reputation: 57808
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.
Upvotes: 1