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?
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?
@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.
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 (-st
& -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!
6 People are following this question.
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2023 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use