cassandra的nodetool是仅收集单个节点还是整个集群的数据?

时间:2018-02-06 05:40:53

标签: cassandra nodetool

我的内部服务有一个19节点的Cassandra集群。如果我使用nodetool登录节点并运行tablestats等命令,那么是否只为该特定节点或整个集群收集统计信息?

2 个答案:

答案 0 :(得分:1)

  

如果-h,大多数nodetool命令在集群中的单个节点上运行   不用于标识一个或多个其他节点。如果节点来自   您发出命令的是预期目标,您不需要   -h选项用于标识目标;否则,对于远程   使用-h。

调用,识别目标节点或节点

Nodetool Utility

答案 1 :(得分:1)

cassandra的

<html> <body> <p>Click the button to wait 3 seconds, then alert "Hello".</p> <input type="text" id="myText" value="A text field"> <br><br><br> <button onclick="myFunction()">Try it</button> <script> function myFunction() { setTimeout(function(){ document.getElementById("myText").focus(); }, 3000); } </script> </body> </html> 实用程序为整个集群收集,而不是单个节点。 例如,如果您运行类似 -

的命令
  

命令:

 connect(view, SIGNAL(focus(bool)),SLOT(popupKeyboardOnAutoFocus(bool)));
  

结果:

nodetool

表格nodetool tablestats musicdb.artist 属于上面的密钥空间Keyspace: musicdb Read Count: 0 Read Latency: NaN ms. Write Count: 0 Write Latency: NaN ms. Pending Flushes: 0 Table: artist SSTable count: 1 Space used (live): 62073 Space used (total): 62073 Space used by snapshots (total): 0 Off heap memory used (total): 1400 SSTable Compression Ratio: 0.27975344141453456 Number of keys (estimate): 1000 Memtable cell count: 0 Memtable data size: 0 Memtable off heap memory used: 0 Memtable switch count: 0 Local read count: 0 Local read latency: NaN ms Local write count: 0 Local write latency: NaN ms Pending flushes: 0 Bloom filter false positives: 0 Bloom filter false ratio: 0.00000 Bloom filter space used: 1264 Bloom filter off heap memory used: 1256 Index summary off heap memory used: 128 Compression metadata off heap memory used: 16 Compacted partition minimum bytes: 104 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 的状态来自整个群集