参数tidb_slow_log_threshold设定默认是300ms记录到慢日志。慢查询查看的慢sql文件,sql分析查的tidb_stmt_summary* 一些表
查看当前
select @@tidb_slow_log_threshold;
查看每个tidb server
select * from information_schema.cluster_config where key
=‘instance.tidb_slow_log_threshold’;
参数tidb_slow_log_threshold设定默认是300ms记录到慢日志。慢查询查看的慢sql文件,sql分析查的tidb_stmt_summary* 一些表
查看当前
select @@tidb_slow_log_threshold;
查看每个tidb server
select * from information_schema.cluster_config where key
=‘instance.tidb_slow_log_threshold’;