Manage compaction using nodetool commands

Use these nodetool commands for compaction.

nodetool compact

Forces a major compaction on one or more tables or given SSTables.

nodetool compactionhistory

Prints history of compaction.

nodetool compactionstats

Prints statistics about compactions.

nodetool disableautocompaction

Disables autocompaction for a keyspace and one or more tables.

nodetool enableautocompaction

Enables autocompaction for a keyspace and one or more tables, or all tables.

nodetool garbagecollect

Removes deleted data from one or more tables.

nodetool getcompactionthreshold

Prints minimum and maximum compaction thresholds for a given table.

nodetool getcompactionthroughput

Prints the compaction throughput in megabytes (MBs) per second.

nodetool getconcurrentcompactors

Gets the number of concurrent compactors in the system.

nodetool setcompactionthreshold

Sets minimum and maximum compaction thresholds for a table.

nodetool setcompactionthroughput

Sets the throughput capacity for compaction in the system, or disables throttling.

nodetool setconcurrentcompactors

Sets number of concurrent compactors.

nodetool statusautocompaction

Returns status information about the automatic compaction process at a cluster, keyspace, or SSTable level.

nodetool stop

Stops compaction.

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