简体   繁体   English

Cassandra集群监控

[英]Cassandra cluster monitoring

How to collect data from all nodes within cluster from single node in cassandra. 如何从Cassandra中的单个节点收集群集中所有节点的数据。 Does jmx provide aggregated values for all nodes which are present on same cluster on single node? jmx是否为单个节点上同一集群中存在的所有节点提供聚合值?

Yes. 是。 For Cassandra cluster you will be able to do so.As per my knowledge there are two well know ways for monitoring and getting cluster status. 对于Cassandra集群,您将能够做到这一点。据我所知,有两种众所周知的方法来监视和获取集群状态。

  1. nodetool utility : The nodetool utility is a command-line interface for monitoring Cassandra and performing routine database operations. nodetool实用程序: nodetool实用程序是用于监视Cassandra和执行常规数据库操作的命令行界面。 Included in the Cassandra distribution, nodetool and is typically run directly from an operational Cassandra node. nodetool包含在Cassandra发行版中,通常直接从可运行的Cassandra节点运行。
  2. Datastax Ops-center : OpsCenter provides a graphical representation of performance trends in a summary view that is hard to obtain with other monitoring tools. Datastax Ops-center: OpsCenter在摘要视图中提供性能趋势的图形表示,而其他监视工具很难获得。 The GUI provides views for different time periods as well as the capability to drill down on single data points. GUI提供了不同时间段的视图以及向下钻取单个数据点的功能。 Both real-time and historical performance data for a Cassandra or DataStax Enterprise cluster are available in OpsCenter. Cassandra或DataStax Enterprise集群的实时和历史性能数据都可以在OpsCenter中获得。 OpsCenter metrics are captured and stored within Cassandra. OpsCenter指标已捕获并存储在Cassandra中。

I think the the first way (nodetool utility) will be more useful to meet your requirements. 我认为第一种方法(nodetool实用程序)将更有用以满足您的需求。

You will get more information at Cassandra cluster monitoring and nodetool options. 您将在Cassandra集群监视nodetool选项中获得更多信息

JMX provides information from a single node. JMX提供来自单个节点的信息。 To have information about entire cluster we collect data from all nodes into Zabbix. 为了获得有关整个集群的信息,我们将所有节点的数据收集到Zabbix中。 Zabbix allows to create graphs and screens that show jmx values from all nodes in one place. Zabbix允许创建图形和屏幕,以显示一个位置中所有节点的jmx值。 Eg we can see all Read Pending Tasks for all nodes in single graph. 例如,我们可以在单个图形中看到所有节点的所有“待读任务”。

I think, to have separate information for each node in one place it's better solution to diagnose possible issues than to have common aggregate information. 我认为,要在一个地方为每个节点提供单独的信息,比拥有共同的汇总信息更好的解决可能的问题的解决方案。

Regarding metrics, I can recommend Guide to Cassandra Thread Pools that provides a description of the different cassandra metrics and how to monitor them. 关于指标,我可以推荐《 Cassandra线程池指南》,其中提供了有关不同cassandra指标以及如何监控它们的描述。

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

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