【问题标题】:Monitor/Log slow running queries in Apache Cassandra 2.2.X在 Apache Cassandra 2.2.X 中监控/记录运行缓慢的查询
【发布时间】:2017-11-09 04:57:03
【问题描述】:

如何在不使用任何外部监控工具的情况下监控/记录 Apache Cassandra 2.2.X 版本中运行缓慢的查询?我们可以在 YAML 中设置任何参数来记录运行缓慢的查询吗?或任何其他方法?

在 CASSANDRA-12403 中,我看到他们为此添加了参数“slow_query_log_timeout_in_ms: 500”。我们可以在 Cassandra 2.2.X 版本的 Cassandra.YAML 文件中添加这个参数吗?还是我们需要为 2.2.X 版本应用此补丁才能使其正常工作?

【问题讨论】:

    标签: cassandra cassandra-2.2


    【解决方案1】:

    它是较新版本中的一项功能,您可以升级或应用补丁并退出自定义构建。在 2.2.x 中不支持自行完成。

    这有点远,但您可以让https://github.com/smartcat-labs/cassandra-diagnosticshttps://github.com/smartcat-labs/cassandra-diagnostics/blob/dev/cassandra-diagnostics-core/COREMODULES.md#slow-query-module 工作。它也只支持 2.1 和 3.0,但我没有看到 2.2。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-30
      • 2021-11-04
      • 1970-01-01
      相关资源
      最近更新 更多