From 20a3dbdfa178f6e916e09f65476b9dfeb4748a4a Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Mon, 16 Feb 2015 13:24:35 +0000 Subject: [PATCH] mysql: disable query logging by default Having DATABASE_QUERY_LOGGING enabled results in devstack turning on verbose mysql query logging. This results in a log file /var/log/mariadb/mariadb-slow.log that grows to 10's of GB in size in very little time (few weeks if that). Developers never seem to notice this exists until their host OS runs out of disk space due to this logfile that is never truncated. Very few people will ever look at this logged data, so a more sensible default is False, to make the out of the box setup be suitable for the majority. Those few people who want to debug mysql query performance can enable it in local.conf, as will the devstack gate setup scripts. Depends-On: I6970d61474528f554134d0aa333cd52b7b20f309 Change-Id: Ia4a366c839ac51623bc1fbee3560dc4d848cce14 --- stackrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stackrc b/stackrc index 7bb4cc29d9..ad2e72d197 100644 --- a/stackrc +++ b/stackrc @@ -114,7 +114,7 @@ fi # This can be used to turn database query logging on and off # (currently only implemented for MySQL backend) -DATABASE_QUERY_LOGGING=$(trueorfalse True DATABASE_QUERY_LOGGING) +DATABASE_QUERY_LOGGING=$(trueorfalse False DATABASE_QUERY_LOGGING) # Set a timeout for git operations. If git is still running when the # timeout expires, the command will be retried up to 3 times. This is