简体   繁体   English

使用 jmx 监控 cassandra 磁盘空间

[英]Monitoring cassandra disk space with jmx

When I tried to monitor Cassandra_node with JMX, I had a problem.当我尝试使用 JMX 监控 Cassandra_node 时,我遇到了问题。

In detail, I got a negative value from jmx["org.apache.cassandra.metrics:type=Storage,name=Load","Count"].详细地说,我从jmx["org.apache.cassandra.metrics:type=Storage,name=Load","Count"].得到一个负值jmx["org.apache.cassandra.metrics:type=Storage,name=Load","Count"].

In Cassandra Wiki, the definition of this metrics is:在 Cassandra Wiki 中,这个指标的定义是:

Total disk space used (in bytes) for this node此节点使用的总磁盘空间(以字节为单位)

Is it possible to get a negative value from this metrics?是否可以从该指标中获得负值? and why?为什么?

Yes its possible.是的,它可能。 It depends a bit on version but there were some bugs like CASSANDRA-8205 and CASSANDRA-7239 in particular around the load.这有点取决于版本,但有一些错误,例如CASSANDRA-8205CASSANDRA-7239 ,特别是在负载周围。 If its operating like it should, those will be accurate though.如果它的操作像它应该的那样,那么这些将是准确的。

You can always drop down to OS level and monitor it by looking at du on the data directory.您可以随时下拉到操作系统级别并通过查看数据目录上的du来监视它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM