2013-03-24 5 views
0

Opscenter 또는 cfstats를 체크인 할 때 캐싱이 활성화되어 있지 않습니다. 솔라ンド라는 데비안에서 카산드라 1.1.7을 실행 중입니다. 다음과 같이Cassandra에서 캐싱이 작동하지 않습니다.

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에 대한 자료를 보여줍니다 나는 cassandra.yaml에서 필요한 전역 옵션을 설정 한 입력란 :

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 

모든 도움이나 제안을 부탁드립니다.

캐싱 통계 카산드라 1.1 정보로 cfstats에서 이동 된

답변

2

샘. nodetool 정보를 실행하면 다음과 같은 내용이 표시됩니다.

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 

이것은 CF가 아닌 전역 캐시가 있기 때문입니다. Opscenter가이 변경 사항을 업데이트해야하는 것으로 보입니다. 아마도 사용할 수있는 이후 버전이있을 수 있습니다.

+0

예 알겠습니다. :) Richard에게 감사드립니다. – Sam

관련 문제