In cassandra.yaml I configured the row_cache_size_in_mb: 1920
On startup the log says the cache is initialized with 1920mb. But the JMX interface says RowCacheCapacityInMB as 1024mb . Why this discrepancy?
In cassandra.yaml I configured the row_cache_size_in_mb: 1920
On startup the log says the cache is initialized with 1920mb. But the JMX interface says RowCacheCapacityInMB as 1024mb . Why this discrepancy?
这已在 1.1.1 版本中修复:https ://issues.apache.org/jira/browse/CASSANDRA-4150 ;你应该升级。
我看了一下代码,这就是原因。
最大大小只能是 1024MB 。他们使用旧版本的 concurrentlrucache 库,将容量限制为 1024MB。
不幸的是,由于方法签名不匹配,我无法使用更新版本的库,除非我自定义构建 cassandra