在Cassandra 3.11.4中服务器端的慢查询记录器Cassandra

问题描述 投票:0回答:1

按照

https://issues.apache.org/jira/browse/CASSANDRA-12403

我尝试使用Cassandra 3.11.4上的以下步骤启用慢速查询日志记录,但无法查询它们是什么问题,或者我错过了任何步骤。

`/nodetool getlogginglevels
 Logger Name                                        Log Level
 ROOT                                                    INFO
 com.thinkaurelius.thrift                               ERROR
 org.apache.cassandra                                   DEBUG
 org.apache.cassandra.db                                DEBUG
 org.apache.cassandra.db.monitoring                     DEBUG


In cassandra.yaml 

# can be identified. Set this value to zero to disable slow query logging. slow_query_log_timeout_in_ms: 500

qazxsw poi [默认logback xml] [1]

cat logback.xml
cassandra cassandra-2.0 cassandra-3.0 spark-cassandra-connector
1个回答
0
投票

步骤是正确的,你应该检查system.log是否有任何记录的慢查询。此外,您需要检查创建会话和事件表的system_traces键空间。

© www.soinside.com 2019 - 2024. All rights reserved.