Cassandra nodetool cfstats的不同字段意味着什么?

Cassandra nodetool cfstats的不同字段意味着什么?,cassandra,nodetool,Cassandra,Nodetool,当我使用下面的命令时。 nodetool-h localhost-p 7199 cfstats demodhb我得出了以下结果。从下面的结果中我不能得出任何结论。我无法决定我的两节点集群Cassandra是否运行良好,或者是否需要进行调优 Keyspace: demodb Read Count: 81361 Read Latency: 0.04145315323066334 ms. Write Count: 23114

当我使用下面的命令时。
nodetool-h localhost-p 7199 cfstats demodhb我得出了以下结果。从下面的结果中我不能得出任何结论。我无法决定我的两节点集群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 

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

您好,谢谢您的回复……您的观察是准确的。告诉我在哪里检查数据库中的键数,以及如何知道何时将数据从memtable刷新到sstable。这个“Memtable switch count:5”是什么?一旦你得到“SSTable count:”非零,你就会得到一些刷新。要强制刷新,可以使用“nodetool flush”命令。据我所知,你无法知道钥匙的确切数量,只能估计。我无法解释“Memtable开关计数”的确切含义,需要深入研究Cassandra代码。似乎在刷新之前开关计数会增加,但在切换时也会出现其他一些情况。关于键的数量,您可以在此处阅读:。作者把每件事都解释得很好。