Cassandra:read / s write / s

时间:2016-10-25 06:12:03

标签: cassandra throughput

我试图弄清楚我的Cassandra集群的吞吐量,并且无法弄清楚如何使用nodetool来实现这一目标。以下是示例输出:

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

我运行命令:

nodetool cfstats

得到这个,然后减去后者,"本地读数:"从较早的一个。 但我不确定" Local"这意味着什么 它是否意味着它在该节点的本地和5个节点的环中,我应该将该值乘以5?或者简单的减法会给我正确的结果吗?

另外,我应该考虑使用哪种JMX bean来获取这些#?p?

1 个答案:

答案 0 :(得分:1)

看看这个nodetool cfstats

我认为你要找的是'读延迟'和'写延迟'。 这些字段表示您的群集中的读/写速度有多快。