getcompactionthreshold

This provides minimum and maximum thresholds for compaction on a table in a keyspace. This can be configured, but would require a restart of Cassandra for that config to be reflected. This can also be increased using setcompactionthreshold, but it would be reset when Cassandra is restarted. But it can be used as a quick fix during issues with nodes or while bootstrapping a node:

$CASSANDRA_HOME/bin/nodetool getcompactionthreshold <keyspaceName> <tableName>

The output is as follows:

Figure 7.11: getcompactionthreshold

Get Mastering Apache Cassandra 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.