Running validation compaction sequentially

About this task

Set the snapshot_override configuration option to true to run validation compaction sequentially for both subrange and incremental repairs. The repair takes a snapshot of all data on all the nodes and then each node validates the snapshot one at a time.

Switching the repair snapshot behavior might be necessary for latency sensitivity reasons. The snapshot override option determines the manner in which Merkle trees are built during validation compaction: all at once in parallel (default); or one node at a time to reduce impact on server load.

Be aware that enabling the snapshot override results in considerably slower repair completion times. Roughly estimate the slowdown as equivalent to the replication factor. For instance, with an RF of 3, the repairs builds the Merkle tree three times, one at a time, so sequential compaction could take at least three times as long as parallel.

Procedure

  1. Locate the opscenterd.conf file. The location of this file depends on the type of installation:

    • Package installations: /etc/opscenter/opscenterd.conf

    • Tarball installations: install_location/conf/opscenterd.conf

  2. Open opscenterd.conf for editing.

  3. Set the snapshot_override option to True:

    [repair_service]
    snapshot_override=True
  4. Restart opscenterd.

  5. Monitor the subrange and incremental repair progress on the Status tab. Be sure to observe the slower progress of validation compactions in the Validation Compactions pane. After differences are determined by Merkle tree comparisons, the streaming progress continues at its regular pace as shown in the Streams pane.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, 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. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com