Skip to content

AxonOps — AI-Native Control Plane for Open Source Data Platforms

nodetool getcompactionthreshold

Displays the compaction thresholds for a table.


Terminal window
nodetool [connection_options] getcompactionthreshold <keyspace> <table>

See connection options for connection options.

nodetool getcompactionthreshold displays the minimum and maximum SSTable count thresholds that trigger compaction for a specific table. These thresholds control when automatic compaction occurs.


ArgumentDescription
keyspaceTarget keyspace name
tableTarget table name

Terminal window
nodetool getcompactionthreshold my_keyspace my_table
Current compaction thresholds for my_keyspace/my_table:
min = 4, max = 32

  • Minimum SSTables needed to trigger compaction
  • Default: 4
  • Maximum SSTables to include in single compaction
  • Default: 32

Terminal window
# Check thresholds for a table
nodetool getcompactionthreshold my_keyspace my_table
Terminal window
# Get current SSTable count
nodetool tablestats my_keyspace.my_table | grep "SSTable count"
# Compare with thresholds
nodetool getcompactionthreshold my_keyspace my_table

CommandRelationship
setcompactionthresholdModify thresholds
compactionstatsView compaction status
tablestatsTable statistics