user1097437
user1097437

Reputation: 121

Do I need to run compaction on each node of the cluster in cassandra 3

We are having 4 node cassandra cluster . Do I need to run compact and repair on each node of the cluster ?

Cassandra Version:- Cassandra 3.0.10 No of nodes in a cluster : 4 Replication Factor :- 4 Compaction Strategy:- LeveledCompactionStrategy

Thanks

Upvotes: 1

Views: 779

Answers (2)

Igor Novgorodov
Igor Novgorodov

Reputation: 266

Yep, compaction is done automatically, but you should run a regular repair

Upvotes: 1

Aaron
Aaron

Reputation: 57748

To answer the question, "Yes" compaction needs to run on all nodes.

The right answer, is that you shouldn't be the one running compaction. Cassandra is almost always capable of figuring out when to run compaction on its own, and you should not need to invoke it manually.

In fact, once you run compaction manually, the odds of compaction happening organically in the future are minuscule, so then you're stuck having to do it manually.

Similar answer on DBA.StackExchange: https://dba.stackexchange.com/questions/71781/cassandra-maintenance/74213#74213

Upvotes: 3

Related Questions