Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

Gangadhara M.B avatar image
Gangadhara M.B asked ·

Should we run repair on all nodes after adding a new DC or just on nodes in the new DC?

[FOLLOW UP QUESTION TO #8948]

Before decomm on-prim DC should repair be run all on on-prim DC nodes including newly built AWS DC or required to run repair only on new AWS DC nodes one at a time ?

repairadd datacenter
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

The general recommendation is to regularly run repairs against your cluster regardless of topology changes. If you know that replicas are not consistent or you haven't been running repairs regularly, repair the existing nodes in the cluster before adding a new DC.

Running repair on the newly added nodes is not necessary immediately after they were added because they should be consistent with other replicas provided you followed the general recommendation above.

The standard procedure before decommissioning a DC is to run a full repair to make sure that replicas in all DCs are consistent before the DC is removed. For details, see Decommissioning a datacenter. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.