Caching 缓存在Cassandra中不起作用

Caching 缓存在Cassandra中不起作用,caching,cassandra,solandra,Caching,Cassandra,Solandra,在签入Opscenter或cfstats时,我似乎没有启用任何缓存。我在Debian上运行Cassandra 1.1.7和Solandra。我已在cassandra.yaml中设置了所需的全局选项: key_cache_size_in_mb: 800 key_cache_save_period: 14400 row_cache_size_in_mb: 800 row_cache_save_period: 15400 row_cache_provider: SerializingCacheProv

在签入Opscenter或cfstats时,我似乎没有启用任何缓存。我在Debian上运行Cassandra 1.1.7和Solandra。我已在cassandra.yaml中设置了所需的全局选项:

key_cache_size_in_mb: 800
key_cache_save_period: 14400
row_cache_size_in_mb: 800
row_cache_save_period: 15400
row_cache_provider: SerializingCacheProvider
柱族的创建如下所示:

create column family example
with column_type = 'Standard'
and comparator = 'BytesType'
and default_validation_class = 'BytesType'
and key_validation_class = 'BytesType'
and read_repair_chance = 1.0
and dclocal_read_repair_chance = 0.0
and gc_grace = 864000
and min_compaction_threshold = 4
and max_compaction_threshold = 32
and replicate_on_write = true
and compaction_strategy = 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'
and caching = 'ALL';
Opscenter不显示缓存图上的可用数据,CFSTATS不显示任何缓存相关字段:

Column Family: charsets
SSTable count: 1
Space used (live): 5558
Space used (total): 5558
Number of Keys (estimate): 128
Memtable Columns Count: 0
Memtable Data Size: 0
Memtable Switch Count: 0
Read Count: 61381
Read Latency: 0.123 ms.
Write Count: 0
Write Latency: NaN ms.
Pending Tasks: 0
Bloom Filter False Postives: 0
Bloom Filter False Ratio: 0.00000
Bloom Filter Space Used: 16
Compacted row minimum size: 1917
Compacted row maximum size: 2299
Compacted row mean size: 2299
欢迎提供任何帮助或建议


Sam

在Cassandra 1.1中,缓存统计数据已从cfstats移动到info。如果运行nodetool info,您将看到如下内容:

Key Cache : size 5552 (bytes), capacity 838860800 (bytes), 38 hits, 47 requests, 0.809 recent hit rate, 14400 save period in seconds
Row Cache : size 0 (bytes), capacity 838860800 (bytes), 0 hits, 0 requests, NaN recent hit rate, 15400 save period in seconds
这是因为现在有了全局缓存,而不是per-CF。似乎Opscenter需要更新以进行此更改-可能有更高版本可用