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.