Kalim
Kalim

Reputation: 319

decommission cassandra nodes after migration having initial_tokens set

Cassandra Version: Apache Cassandra 3.7 I have migrated a cassandra cluster following below link from datastax in which we have set inital_tokens into new cluster. https://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsSnapshotRestoreNewCluster.html

Migration is successful, My question is that we have set inital_tokes on new cluster similar to old cluster, Now i want to decommission some of the nodes of new cluster. 1. What are the considerations or changes required before using nodetool decommission command 2. What will happen to the data if i remove the node by decommissioning because initial_tokens is still set in all the cassandra nodes

Please help me on above questions

Upvotes: 0

Views: 229

Answers (1)

Kalim
Kalim

Reputation: 319

Update: As per the documentation http://cassandra.apache.org/doc/latest/configuration/cassandra_config_file.html, We can use initial_tokens along with num_tokens. However initially when cluster is set up initial_tokens setting will take precedence over num_tokens and from subsequent restarts num_tokens will take prcedence over initial_tokens setting.

So in my use, I have performed rolling restart on cassandra cluster and then started decommissioning nodes one by one.

Upvotes: 0

Related Questions