James Lim
James Lim

Reputation: 13062

If I enable auto-compaction on Cassandra, do I still need to use `nodetool compact`?

I have a Cassandra cluster with a keyspace named foo and a table named y.

If I run the following command,

$ nodetool enableautocompaction foo y

do I still have to manually use nodetool compact on foo.y?

Does enableautocompaction enable minor compaction or major compaction? (The documentation for that command was rather sparse.)

Upvotes: 2

Views: 3771

Answers (1)

Chris Lohfink
Chris Lohfink

Reputation: 16420

It starts enabled unless you explicitly disable it, you shouldn't need it since its more for some special case scenarios and testing.

You also shouldn't run manual compactions with nodetool compact unless you are really sure about what you're doing. Once you run it, the sstable created won't be included in normal compactions for a very long time so you end up having to continually manually manage the number of sstables or suffer poor read performance.

Upvotes: 4

Related Questions