Parameterize galera slow/unindexed logging options

This change creates variables for Galera slow logging and logging
of unindexed queries.  The change also defaults these variables to
off.

DocImpact
Closes-Bug: #1463956

Change-Id: I5f786e2090c631627f3b44ada2baf05fd9699b97
This commit is contained in:
Dave Wilde 2015-07-09 14:22:42 -07:00
parent 3d1fade039
commit 70edf52fcd
2 changed files with 6 additions and 2 deletions

View File

@ -95,3 +95,7 @@ galera_debconf_items:
name: "{{ galera_mariadb_server_package }}"
value: "{{ galera_root_password }}"
vtype: "string"
# Galera slow/unindexed query logging
galera_slow_query_logging: 0
galera_unindexed_query_logging: 0

View File

@ -29,8 +29,8 @@ character-set-server = utf8
datadir = /var/lib/mysql
# LOGGING #
log-queries-not-using-indexes = 1
slow-query-log = 1
log-queries-not-using-indexes = {{ galera_unindexed_query_logging }}
slow-query-log = {{ galera_slow_query_logging }}
slow-query-log-file = /var/log/mysql_logs/mysql-slow.log
log_error = /var/log/mysql_logs/galera_server_error.log
log-bin = /var/lib/mysql/mariadb-bin