GrandVizier
GrandVizier

Reputation: 639

scale Cassandra cluster and redistribute data

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

Answers (1)

Aaron
Aaron

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

Related Questions