【问题标题】:How to find cassandra query response time?如何找到 cassandra 查询响应时间?
【发布时间】:2016-10-14 03:36:46
【问题描述】:

我正在尝试使用 cqlsh 在 cassandra 中找出查询的响应时间。

我正在使用“tracing on”,然后在 cqlsh 中执行查询,但出现以下错误:

语句跟踪未在 10 秒内完成

这是我正在执行的查询:

test@cqlsh:test> TRACING on;
test@cqlsh:test> select * from test limit 1;

--- output row ---
Statement trace did not complete within 10 seconds

还有其他方法可以找出查询的响应时间吗?
为什么不显示跟踪,即使只请求了 1 行,我肯定会在一秒钟内得到?

【问题讨论】:

  • 要么你的集群被水洗了,要么test 非常混乱。包括关于集群 (nodetool status) 的信息、您的密钥空间复制因子、tests 架构和来自nodetool tablestats的输出
  • 我将 cassandra 从 2.0.17 升级到 2.1.15。这会引起@ChrisLohfink 的某种问题吗?
  • 如果您收到超过 10 秒的响应,则可能从根本上破坏了某些东西。提供的信息很难说是什么

标签: cassandra cassandra-2.1


【解决方案1】:

对于升级的主要点版本,您需要在每个节点上升级 SSTables。

确保所有节点的版本相同

nodetool upgradesstables

【讨论】:

  • 我这样做了,没有帮助。
猜你喜欢
  • 1970-01-01
  • 2018-12-29
  • 1970-01-01
  • 1970-01-01
  • 2017-04-13
  • 2017-04-30
  • 2017-04-17
  • 2015-06-06
  • 2013-01-02
相关资源
最近更新 更多