2016-10-25 4 views
0

카산드라 클러스터의 처리량을 알아 내려고하고 있으며이를 달성하기 위해 nodetool을 사용하는 방법을 알아낼 수 없습니다.카산드라 : 읽기/쓰기/s

nodetool cfstats 

이 얻을하고 후자 뺄 : 나는 명령을 실행

Starting NodeTool 
Keyspace: realtimetrader 
Read Count: 0 
Read Latency: NaN ms. 
Write Count: 402 
Write Latency: 0.09648756218905473 ms. 
Pending Flushes: 0 
     Table: currencies 
     SSTable count: 1 
     Space used (live): 5254 
     Space used (total): 5254 
     Space used by snapshots (total): 0 
     Off heap memory used (total): 40 
     SSTable Compression Ratio: 0.0 
     Number of keys (estimate): 14 
     Memtable cell count: 1608 
     Memtable data size: 567 
     Memtable off heap memory used: 0 
     Memtable switch count: 0 
     Local read count: 0 
     Local read latency: NaN ms 
     Local write count: 402 
     Local write latency: 0.106 ms 
     Pending flushes: 0 
     Bloom filter false positives: 0 
     Bloom filter false ratio: 0,00000 
     Bloom filter space used: 24 
     Bloom filter off heap memory used: 16 
     Index summary off heap memory used: 16 
     Compression metadata off heap memory used: 8 
     Compacted partition minimum bytes: 125 
     Compacted partition maximum bytes: 149 
     Compacted partition mean bytes: 149 
     Average live cells per slice (last five minutes): 0.0 
     Maximum live cells per slice (last five minutes): 0 
     Average tombstones per slice (last five minutes): 0.0 
     Maximum tombstones per slice (last five minutes): 0 

: "로컬 읽기 수를"이전 하나에서 다음 샘플 출력입니다. 하지만 "지역"이 무엇을 의미하는지 모르겠습니다. 해당 노드에 로컬 인 것을 의미하고 5 노드의 링에서 5로 값을 배수해야합니까? 아니면 간단한 빼기가 올바른 결과를 줄 것입니까?

또한이 #을 얻기 위해 어느 JMX 빈을 조사해야합니까?

답변

1

이것 좀보세요. nodetool cfstats.

당신이 찾고있는 것은 'Read Latency'와 'Write Latency'입니다. 이 필드는 읽기/쓰기가 클러스터에서 얼마나 빨라지는지 나타냅니다.