Skip to content

Commit 20a3dbd

Browse files
berrangeianw
authored andcommitted
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
1 parent 13c7ccc commit 20a3dbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stackrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ fi
114114

115115
# This can be used to turn database query logging on and off
116116
# (currently only implemented for MySQL backend)
117-
DATABASE_QUERY_LOGGING=$(trueorfalse True DATABASE_QUERY_LOGGING)
117+
DATABASE_QUERY_LOGGING=$(trueorfalse False DATABASE_QUERY_LOGGING)
118118

119119
# Set a timeout for git operations. If git is still running when the
120120
# timeout expires, the command will be retried up to 3 times. This is

0 commit comments

Comments
 (0)