简体   繁体   English

Cassandra-行缓存调整

[英]Cassandra - Row cache tuning

I'm new to Cassandra and trying to get a better understanding on how the row cache can be tuned to optimize the performance. 我是Cassandra的新手,试图更好地了解如何调整行缓存以优化性能。

I came across think this article: https://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsConfiguringCaches.html 我偶然想到了这篇文章: https : //docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsConfiguringCaches.html

And it suggests not to even touch row cache unless read workload is > 95% and mostly rely on machine's default cache mechanism which comes with OS. 并且它建议不要读取行缓存,除非读取工作负载> 95%,并且主要依靠操作系统随附的机器默认缓存机制。

The default row cache size is 0 in cassandra.yaml file so the row cache won't be utilized at all. cassandra.yaml文件中的默认行缓存大小为0,因此根本不会使用行缓存。

Therefore, I'm wondering how exactly I can decide to chose to tweak row cache if needed. 因此,我想知道如果需要的话,我将如何决定选择调整行缓存。 Are there any good pointers one can provide on this? 在这方面有什么好的指针可以提供吗?

What they are saying in this article, is that OS cache is better than row cache. 他们在本文中所说的是OS缓存比行缓存更好。

Cassandra's rows cache known as not efficient for most cases. 大多数情况下,Cassandra的行缓存效率不高。 The only case i see you can even start trying, is that 95% of your workload are reads + you have a relatively small set of hot rows that are not updated frequently. 我看到您甚至可以开始尝试的唯一情况是,您的工作量中有95%是读取的+您有相对较少的不经常更新的热行集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM