to ease the work and load of the node during a full repair we can opt for either primary repair or subrange repair . what is the difference between the two?
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
Partitioner range (
-pr) repairs only repair the range where the node is the primary owner so the specified range only gets repaired once (recommended).
Subrange repair (
-et) repairs the range between the given start and end tokens.
We recommend running partitioner range repairs (
-pr). The reason for this is that it is the most efficient type of repair and is the most fool-proof.
Subrange repairs is not recommended because most users do not know how to pick and calculate the correct ranges. In a lot of cases, they miss repairing certain ranges and wonder why their data is out-of-sync. There are advantages to running subrange repairs but it is best left to experts. If you really want to run it, we recommend that you use a free open-source tool like Cassandra Reaper.
For more info on why partitioner range repairs are recommend, see Repairs in Cassandra. Cheers!
@pranali.khanna101994_189965 Each node in cassandra will manage the following data.
Now we can run repair with the following options.
Please refer to our documentation Repair for more details.
6 People are following this question.