1

I have a 3 nodes Cassandra cluster with 2 keyspaces. One of them has replication factor 1 and the other, replication factor 2. I want to reduce the cluster, using nodetool decommission, to remove 2 nodes and leave only one (single node cluster).

So, what must I do with the replication factor? I think both keyspaces must have replication factor 1, but when must I modify it? Before decommission?

Thanks a lot!

Janbalik
  • 574
  • 6
  • 15

2 Answers2

1

You will need to reduce the Replication Factor to 1 and you should do this before you decommission the 2 nodes.

bechbd
  • 6,206
  • 3
  • 28
  • 47
1

You must reduce the RF to 1 before the decommissioning and you must also run a repair on the keyspace you are reducing the RF on to be on the safe side. Then you can proceed with the decommissioning in a sequential manner.