Browse code

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

Daniel P. Berrange authored on 2015/02/16 22:24:35
Showing 1 changed files
... ...
@@ -114,7 +114,7 @@ fi
114 114
 
115 115
 # This can be used to turn database query logging on and off
116 116
 # (currently only implemented for MySQL backend)
117
-DATABASE_QUERY_LOGGING=$(trueorfalse True DATABASE_QUERY_LOGGING)
117
+DATABASE_QUERY_LOGGING=$(trueorfalse False DATABASE_QUERY_LOGGING)
118 118
 
119 119
 # Set a timeout for git operations.  If git is still running when the
120 120
 # timeout expires, the command will be retried up to 3 times.  This is