Reputation: 1245
Autocompactions can be enabled or disabled using nodetool enableautocompaction and disableautocompaction. But is there any way to know the status? I do not see any nodetool command which will show the status.
Upvotes: 1
Views: 1673
Reputation: 1538
As suggested Chris, nodetool compactionstats will probably help if autocompaction enabled then you can see some running task and pending task may be 0 or any number but if autocompaction disabled then you can see many pending task and no running task on nodetool compactionstats.
Upvotes: 0
Reputation: 16410
There is no mechanism to tell short of taking a heap dump currently. Best option is just to use nodetool enableautocompaction
if you want it on regardless to be safe or setting alerting on compaction pending tasks.
Upvotes: 1
Reputation: 2892
I think you are searching for one of the below commands:
Description: Provides the history of compaction operations.
Provide statistics about a compaction. The total column shows the total number of uncompressed bytes of SSTables being compacted. The system log lists the names of the SSTables compacted.
Upvotes: 0