nmakb
nmakb

Reputation: 1245

how to know if cassandra autocompaction is enabled or not

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

Answers (3)

LetsNoSQL
LetsNoSQL

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

Chris Lohfink
Chris Lohfink

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

mukesh210
mukesh210

Reputation: 2892

I think you are searching for one of the below commands:

1.CompactionHistory

Description: Provides the history of compaction operations.

  1. CompactionStats

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

Related Questions