【问题标题】:Cassandra: read/s write/sCassandra:读/秒写/秒
【发布时间】:2016-10-25 06:12:02
【问题描述】:

我正在尝试计算我的 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

要得到这个,然后从前面的那个中减去后者,“本地读取计数:”。 但我不确定这里的“本地”是什么意思? 这是否意味着它是该节点的本地节点,并且在 5 个节点的环中,我应该将该值乘以 5?还是简单的减法会给我正确的结果?

另外,我应该查看哪个 JMX bean 来获取这些 #'s?

【问题讨论】:

    标签: cassandra throughput


    【解决方案1】:

    看看这个nodetool cfstats

    我认为您正在寻找的是“读取延迟”和“写入延迟”。 这些字段表明您在集群中的读取/写入速度有多快。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-02-07
      • 1970-01-01
      • 2015-04-17
      • 1970-01-01
      • 2020-07-26
      • 2019-07-13
      • 2010-12-14
      相关资源
      最近更新 更多