Throttling compaction throughput

You can throttle throughput for Cassandra compaction operations to dedicate more system resources to repair operations, allowing repairs to complete faster.

About this task

Set the compaction throughput to a small, positive number to devote minimal system resources to compactions. For example, 1.

Throttling compaction throughput slows down compactions markedly, which may cause tombstones to hamper system performance. Do not throttle compaction throughput when Global Mailbox is under heavy load.

To throttle compaction throughput:
Important: In Cassandra, compaction throughput is not throttled by default.

Procedure

  1. Log in to the server where a Cassandra node is installed.
  2. Go to <install_dir>/apache-cassandra/bin directory.
  3. Type ./nodetool setcompactionthroughput --<value_in_mb>.
    Tip: To run nodetool, JAVA_HOME must be set to the location of IBM JDK 8.
  4. Replace <value_in_mb> with the desired throughput capacity in megabytes per second.