1

当我使用以下命令时。
nodetool -h localhost -p 7199 cfstats demodb我想出了以下结果。我无法从以下结果得出任何结论。我无法确定我的两节点集群 Cassandra 性能是否良好或需要调整。

 Keyspace: demodb
            Read Count: 81361
            Read Latency: 0.04145315323066334 ms.
            Write Count: 23114
            Write Latency: 0.06758518646707623 ms.
            Pending Tasks: 0
                    Table: schema1
                    SSTable count: 0
                    Space used (live), bytes: 0
                    Space used (total), bytes: 3560
                    SSTable Compression Ratio: 0.0
                    Number of keys (estimate): 0
                    Memtable cell count: 5686
                    Memtable data size, bytes: 3707713
                    Memtable switch count: 5
                    Local read count: 81361
                    Local read latency: 0.000 ms
                    Local write count: 23114
                    Local write latency: 0.000 ms
                    Pending tasks: 0
                    Bloom filter false positives: 0
                    Bloom filter false ratio: 0.00000
                    Bloom filter space used, bytes: 0
                    Compacted partition minimum bytes: 0
                    Compacted partition maximum bytes: 0
                    Compacted partition mean bytes: 0
                    Average live cells per slice (last five minutes): 1.0
                    Average tombstones per slice (last five minutes): 0.0 
4

1 回答 1

2

据我所知,我可以告诉你,表 schema1 中的数据仍然完全在内存中“SSTable 计数:0”。在这一点上,没有什么可以优化的。当您有更多数据并且您的内存状态已刷新到磁盘时,统计信息将更有帮助。优化某些东西还为时过早。

于 2014-08-08T22:55:40.723 回答