From bb61dbc842aae87ccb844bb0abed47bd7cc9d6bd Mon Sep 17 00:00:00 2001 From: lzs <43946384+superlzs0476@users.noreply.github.com> Date: Fri, 26 Apr 2019 18:57:07 +0800 Subject: [PATCH] Adjust slow query configure (#742) --- inventory.ini | 3 --- roles/tidb/templates/run_tidb_binary.sh.j2 | 2 -- 2 files changed, 5 deletions(-) diff --git a/inventory.ini b/inventory.ini index b6326885d..b1f75828e 100644 --- a/inventory.ini +++ b/inventory.ini @@ -86,9 +86,6 @@ kafka_addrs = "" # zookeeper_addrs = "192.168.0.11:2181,192.168.0.12:2181,192.168.0.13:2181" zookeeper_addrs = "" -# store slow query log into seperate file -enable_slow_query_log = False - # enable TLS authentication in the TiDB cluster enable_tls = False diff --git a/roles/tidb/templates/run_tidb_binary.sh.j2 b/roles/tidb/templates/run_tidb_binary.sh.j2 index 4a61d4f5f..e5cc1d844 100755 --- a/roles/tidb/templates/run_tidb_binary.sh.j2 +++ b/roles/tidb/templates/run_tidb_binary.sh.j2 @@ -30,7 +30,5 @@ exec bin/tidb-server \ {% if enable_binlog|default(false) %} --enable-binlog \ {% endif %} -{% if enable_slow_query_log %} --log-slow-query="{{ tidb_log_dir }}/{{ tidb_slow_query_filename }}" \ -{% endif %} --log-file="{{ tidb_log_dir }}/{{ tidb_log_filename }}" 2>> "{{ tidb_log_dir }}/{{ tidb_stderr_filename }}"