2

我在监控我的 Cassandra 节点时遇到了问题。我跑了

nodetool cfstats keyspaceName.tableName

不幸的是,读取计数始终为 0,读取延迟为 NaN。我正在读取和写入,但只更新写入指标。

这是我得到的输出:

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

----------------

我很感激任何帮助。

4

1 回答 1

3

由于每个节点负责不同的数据集,因此您读取的所有数据都可能属于其他节点。许多驱动程序都有一个令牌感知负载平衡策略,它将读取发送到应该拥有它的节点。使用 CL.ONE 默认一致性,这也意味着它将缩短将读取发送到其他节点的方式(除非遇到读取修复机会)。

根据您使用的版本和您进行的查询,您可能也看不到这个增量:https ://issues.apache.org/jira/browse/CASSANDRA-7338

于 2016-01-03T14:52:37.777 回答