You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Shalom Sagges <sh...@gmail.com> on 2025/07/13 18:21:18 UTC
POC on Cassandra 5.0.4
Hi Everyone,
I plan to start a POC on Cassandra 5.0.4 as a NoSQL database in our
Production environment.
I'd like to make sure it's well tuned from the start, and I wanted to know
if there are any recommendations for tuning Cassandra, such as:
- Is 5.0.4 a stable version to use in Production?
- Operating System tuning (linux).
- Service file settings.
- Cassandra yaml/jvm/logback tuning.
links to tuning guides would also be most welcome.
I’d greatly appreciate any pointers you may have.
Thanks! 🙏
Re: POC on Cassandra 5.0.4
Posted by Shalom Sagges <sh...@gmail.com>.
Thanks a lot guys :-)
Much appreciated!
On Mon, Jul 14, 2025 at 1:39 PM Dmitry Konstantinov <ne...@gmail.com>
wrote:
> Hi Shalom,
>
> Yes, 5.0.4 is production ready.
> On OS level it makes sense to start from
> https://docs.datastax.com/en/dse/6.9/managing/configure/recommended-settings.html#configSetKernelParameters
>
> JDK: latest JDK17 build, if you are looking for low latency you can try to
> use Shenandoah or ZGC instead of G1 but they can be more sensitive to
> overload/load spikes
> Cassandra yaml: to get the best performance by using the latest features
> (such as trie memtables, direct IO commit log, etc) create your
> cassandra.yaml from cassandra_latest.yaml configuration.
> The default logback configuration is ok from perf point of view.
>
> Regards,
> Dmitry
>
>
> On Mon, 14 Jul 2025 at 11:31, Đức Nguyễn <ni...@gmail.com>
> wrote:
>
>> Hi Shalom
>>
>> We are also using 5.0.4 and I can say that it's a stable version for use
>> in production. We started switching from on-prem to k8s cassandra -->
>> k8ssandra operator 4 years ago so the answer maybe a bit different from
>> what you are looking for.
>> But since you are quite familiar with it since 3.11, the general rules
>> for Cassandra prod resources haven't changed much.
>> 4+ cores,
>> 24-32GB RAM with at least 16GB mem for heap
>> Use G1GC for >16GB memory
>> SSD + separate physical disk between commit log/data dir
>> Turn on your audit-log (this is prod)
>> One of the notable changes in my opinion are ZeroCoppy and SAI Index -
>> you can look for them on the internet (Same as OS tuning setting)
>> You can also pull some pre-configured image and digging the config - I
>> would recommend OSS Cassandra, Datastax and k8ssandra docker repo.
>>
>> Regards
>> Duc Nguyen
>>
>>
>> On Mon, Jul 14, 2025 at 3:28 PM Shalom Sagges <sh...@gmail.com>
>> wrote:
>>
>>> Hi Manish, :-)
>>>
>>> I'm quite proficient with Cassandra. I was managing Cassandra clusters
>>> for over 5 years.
>>> However, I switched jobs and only several years later was I able to
>>> persuade my manager to run a POC on Cassandra. :-)
>>> I stopped at 3.11 and I'm sure a lot has changed since then.
>>> I'd like the POC to be as optimal as possible, and that's why I wish to
>>> dive into the fine tuning area such as
>>>
>>> - Operating System tuning (linux), Service file settings, Cassandra
>>> yaml/jvm/logback tuning or anything else that may boost performance.
>>>
>>>
>>> Thanks!
>>>
>>>
>>> On Mon, Jul 14, 2025 at 5:48 AM manish khandelwal <
>>> manishkhandelwal03@gmail.com> wrote:
>>>
>>>> Hi
>>>>
>>>> Yes 5.0.4 is stable version for use in production. You can refer
>>>> https://cassandra.apache.org/doc/latest/cassandra/getting-started/production.html
>>>> for production settings.
>>>>
>>>> Regards
>>>> Manish
>>>>
>>>> On Sun, Jul 13, 2025 at 11:52 PM Shalom Sagges <sh...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Everyone,
>>>>>
>>>>> I plan to start a POC on Cassandra 5.0.4 as a NoSQL database in our
>>>>> Production environment.
>>>>> I'd like to make sure it's well tuned from the start, and I wanted to
>>>>> know if there are any recommendations for tuning Cassandra, such as:
>>>>>
>>>>> - Is 5.0.4 a stable version to use in Production?
>>>>> - Operating System tuning (linux).
>>>>> - Service file settings.
>>>>> - Cassandra yaml/jvm/logback tuning.
>>>>>
>>>>> links to tuning guides would also be most welcome.
>>>>>
>>>>> I’d greatly appreciate any pointers you may have.
>>>>>
>>>>> Thanks! 🙏
>>>>>
>>>>
>
> --
> Dmitry Konstantinov
>
Re: POC on Cassandra 5.0.4
Posted by Dmitry Konstantinov <ne...@gmail.com>.
Hi Shalom,
Yes, 5.0.4 is production ready.
On OS level it makes sense to start from
https://docs.datastax.com/en/dse/6.9/managing/configure/recommended-settings.html#configSetKernelParameters
JDK: latest JDK17 build, if you are looking for low latency you can try to
use Shenandoah or ZGC instead of G1 but they can be more sensitive to
overload/load spikes
Cassandra yaml: to get the best performance by using the latest features
(such as trie memtables, direct IO commit log, etc) create your
cassandra.yaml from cassandra_latest.yaml configuration.
The default logback configuration is ok from perf point of view.
Regards,
Dmitry
On Mon, 14 Jul 2025 at 11:31, Đức Nguyễn <ni...@gmail.com> wrote:
> Hi Shalom
>
> We are also using 5.0.4 and I can say that it's a stable version for use
> in production. We started switching from on-prem to k8s cassandra -->
> k8ssandra operator 4 years ago so the answer maybe a bit different from
> what you are looking for.
> But since you are quite familiar with it since 3.11, the general rules for
> Cassandra prod resources haven't changed much.
> 4+ cores,
> 24-32GB RAM with at least 16GB mem for heap
> Use G1GC for >16GB memory
> SSD + separate physical disk between commit log/data dir
> Turn on your audit-log (this is prod)
> One of the notable changes in my opinion are ZeroCoppy and SAI Index - you
> can look for them on the internet (Same as OS tuning setting)
> You can also pull some pre-configured image and digging the config - I
> would recommend OSS Cassandra, Datastax and k8ssandra docker repo.
>
> Regards
> Duc Nguyen
>
>
> On Mon, Jul 14, 2025 at 3:28 PM Shalom Sagges <sh...@gmail.com>
> wrote:
>
>> Hi Manish, :-)
>>
>> I'm quite proficient with Cassandra. I was managing Cassandra clusters
>> for over 5 years.
>> However, I switched jobs and only several years later was I able to
>> persuade my manager to run a POC on Cassandra. :-)
>> I stopped at 3.11 and I'm sure a lot has changed since then.
>> I'd like the POC to be as optimal as possible, and that's why I wish to
>> dive into the fine tuning area such as
>>
>> - Operating System tuning (linux), Service file settings, Cassandra
>> yaml/jvm/logback tuning or anything else that may boost performance.
>>
>>
>> Thanks!
>>
>>
>> On Mon, Jul 14, 2025 at 5:48 AM manish khandelwal <
>> manishkhandelwal03@gmail.com> wrote:
>>
>>> Hi
>>>
>>> Yes 5.0.4 is stable version for use in production. You can refer
>>> https://cassandra.apache.org/doc/latest/cassandra/getting-started/production.html
>>> for production settings.
>>>
>>> Regards
>>> Manish
>>>
>>> On Sun, Jul 13, 2025 at 11:52 PM Shalom Sagges <sh...@gmail.com>
>>> wrote:
>>>
>>>> Hi Everyone,
>>>>
>>>> I plan to start a POC on Cassandra 5.0.4 as a NoSQL database in our
>>>> Production environment.
>>>> I'd like to make sure it's well tuned from the start, and I wanted to
>>>> know if there are any recommendations for tuning Cassandra, such as:
>>>>
>>>> - Is 5.0.4 a stable version to use in Production?
>>>> - Operating System tuning (linux).
>>>> - Service file settings.
>>>> - Cassandra yaml/jvm/logback tuning.
>>>>
>>>> links to tuning guides would also be most welcome.
>>>>
>>>> I’d greatly appreciate any pointers you may have.
>>>>
>>>> Thanks! 🙏
>>>>
>>>
--
Dmitry Konstantinov
Re: POC on Cassandra 5.0.4
Posted by Đức Nguyễn <ni...@gmail.com>.
Hi Shalom
We are also using 5.0.4 and I can say that it's a stable version for use in
production. We started switching from on-prem to k8s cassandra -->
k8ssandra operator 4 years ago so the answer maybe a bit different from
what you are looking for.
But since you are quite familiar with it since 3.11, the general rules for
Cassandra prod resources haven't changed much.
4+ cores,
24-32GB RAM with at least 16GB mem for heap
Use G1GC for >16GB memory
SSD + separate physical disk between commit log/data dir
Turn on your audit-log (this is prod)
One of the notable changes in my opinion are ZeroCoppy and SAI Index - you
can look for them on the internet (Same as OS tuning setting)
You can also pull some pre-configured image and digging the config - I
would recommend OSS Cassandra, Datastax and k8ssandra docker repo.
Regards
Duc Nguyen
On Mon, Jul 14, 2025 at 3:28 PM Shalom Sagges <sh...@gmail.com>
wrote:
> Hi Manish, :-)
>
> I'm quite proficient with Cassandra. I was managing Cassandra clusters for
> over 5 years.
> However, I switched jobs and only several years later was I able to
> persuade my manager to run a POC on Cassandra. :-)
> I stopped at 3.11 and I'm sure a lot has changed since then.
> I'd like the POC to be as optimal as possible, and that's why I wish to
> dive into the fine tuning area such as
>
> - Operating System tuning (linux), Service file settings, Cassandra
> yaml/jvm/logback tuning or anything else that may boost performance.
>
>
> Thanks!
>
>
> On Mon, Jul 14, 2025 at 5:48 AM manish khandelwal <
> manishkhandelwal03@gmail.com> wrote:
>
>> Hi
>>
>> Yes 5.0.4 is stable version for use in production. You can refer
>> https://cassandra.apache.org/doc/latest/cassandra/getting-started/production.html
>> for production settings.
>>
>> Regards
>> Manish
>>
>> On Sun, Jul 13, 2025 at 11:52 PM Shalom Sagges <sh...@gmail.com>
>> wrote:
>>
>>> Hi Everyone,
>>>
>>> I plan to start a POC on Cassandra 5.0.4 as a NoSQL database in our
>>> Production environment.
>>> I'd like to make sure it's well tuned from the start, and I wanted to
>>> know if there are any recommendations for tuning Cassandra, such as:
>>>
>>> - Is 5.0.4 a stable version to use in Production?
>>> - Operating System tuning (linux).
>>> - Service file settings.
>>> - Cassandra yaml/jvm/logback tuning.
>>>
>>> links to tuning guides would also be most welcome.
>>>
>>> I’d greatly appreciate any pointers you may have.
>>>
>>> Thanks! 🙏
>>>
>>
Re: POC on Cassandra 5.0.4
Posted by Shalom Sagges <sh...@gmail.com>.
Hi Manish, :-)
I'm quite proficient with Cassandra. I was managing Cassandra clusters for
over 5 years.
However, I switched jobs and only several years later was I able to
persuade my manager to run a POC on Cassandra. :-)
I stopped at 3.11 and I'm sure a lot has changed since then.
I'd like the POC to be as optimal as possible, and that's why I wish to
dive into the fine tuning area such as
- Operating System tuning (linux), Service file settings, Cassandra
yaml/jvm/logback tuning or anything else that may boost performance.
Thanks!
On Mon, Jul 14, 2025 at 5:48 AM manish khandelwal <
manishkhandelwal03@gmail.com> wrote:
> Hi
>
> Yes 5.0.4 is stable version for use in production. You can refer
> https://cassandra.apache.org/doc/latest/cassandra/getting-started/production.html
> for production settings.
>
> Regards
> Manish
>
> On Sun, Jul 13, 2025 at 11:52 PM Shalom Sagges <sh...@gmail.com>
> wrote:
>
>> Hi Everyone,
>>
>> I plan to start a POC on Cassandra 5.0.4 as a NoSQL database in our
>> Production environment.
>> I'd like to make sure it's well tuned from the start, and I wanted to
>> know if there are any recommendations for tuning Cassandra, such as:
>>
>> - Is 5.0.4 a stable version to use in Production?
>> - Operating System tuning (linux).
>> - Service file settings.
>> - Cassandra yaml/jvm/logback tuning.
>>
>> links to tuning guides would also be most welcome.
>>
>> I’d greatly appreciate any pointers you may have.
>>
>> Thanks! 🙏
>>
>
Re: POC on Cassandra 5.0.4
Posted by manish khandelwal <ma...@gmail.com>.
Hi
Yes 5.0.4 is stable version for use in production. You can refer
https://cassandra.apache.org/doc/latest/cassandra/getting-started/production.html
for production settings.
Regards
Manish
On Sun, Jul 13, 2025 at 11:52 PM Shalom Sagges <sh...@gmail.com>
wrote:
> Hi Everyone,
>
> I plan to start a POC on Cassandra 5.0.4 as a NoSQL database in our
> Production environment.
> I'd like to make sure it's well tuned from the start, and I wanted to know
> if there are any recommendations for tuning Cassandra, such as:
>
> - Is 5.0.4 a stable version to use in Production?
> - Operating System tuning (linux).
> - Service file settings.
> - Cassandra yaml/jvm/logback tuning.
>
> links to tuning guides would also be most welcome.
>
> I’d greatly appreciate any pointers you may have.
>
> Thanks! 🙏
>