cassandra做repair的时候,参数-pr我看得不是很明白,可以解释下么。什么时候用-pr呢?
-pr 意思是做primary token range 的repair。 当所有的节点(node) 完成一遍 repair -pr, 数据被修复一次, 且仅一次,不会有同一token range 被重复repair 的情况。-pr 是最常用的repair option。 当用户需要做 Cassandra repair 的 时候,大多数情况下,使用 "nodetool repair -pr" , 一次一个节点 (node), 直到所有节点都被repair. 如果有多个data center,每个data center 都要 repair一次,这样保证所有的数据被repair.
5 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