Illustration Image

Memory spikes in Cassandra Nodes during Compaction [closed]

Setup: -

I have a Cassandra cluster running in 3 datacenters with 3 nodes each, having Replication factor of 3-3-3 hosted on GCP.

Workload is quite write intensive with around 1.5k writes/s and 100 reads/s/node. Both read and write queries are done with LOCAL_QUORUM.

Compaction strategy used - Levelled Compaction strategy

Total Memory allocated - 32 gb

Total Heap allocated - 10 gb

Allocated off-heap - 4 gb

Issue: -

There are spikes in node Memory utilization during compactions which lasts for a short amount of time, Memory utilization is around 44% overall and the spikes go up to 85%. Is there a way to tune something and restrict the spikes to a lower value?

I understand Compaction is a natural, fundamental process, but having these large spikes makes capacity planning difficult.

I have tried tuning compaction_throughput_mb_per_sec and concurrent_compactors settings, which doesn't seem to affect the spikes at all.

Become part of our
growing community!
Welcome to Planet Cassandra, a community for Apache Cassandra®! We're a passionate and dedicated group of users, developers, and enthusiasts who are working together to make Cassandra the best it can be. Whether you're just getting started with Cassandra or you're an experienced user, there's a place for you in our community.
A dinosaur
Planet Cassandra is a service for the Apache Cassandra® user community to share with each other. From tutorials and guides, to discussions and updates, we're here to help you get the most out of Cassandra. Connect with us and become part of our growing community today.
© 2009-2023 The Apache Software Foundation under the terms of the Apache License 2.0. Apache, the Apache feather logo, Apache Cassandra, Cassandra, and the Cassandra logo, are either registered trademarks or trademarks of The Apache Software Foundation. Sponsored by Anant Corporation and Datastax, and Developed by Anant Corporation.

Get Involved with Planet Cassandra!

We believe that the power of the Planet Cassandra community lies in the contributions of its members. Do you have content, articles, videos, or use cases you want to share with the world?