Skip to content
Snippets Groups Projects
Commit 86bafeee authored by Vikram Hosakote's avatar Vikram Hosakote
Browse files

Add general_log to mariadb container and make heka collect it

Added general_log to ansible/roles/mariadb/templates/galera.cnf.j2
to improve mariadb logging.

This will be helpful to debug mariadb issues especially when
mariadb is scaled.

Test results of this patch set are at:
http://paste.openstack.org/show/492852/

Change-Id: I80438d1bbdd1ed2a1f47489c6f9c45b8107340a0
Closes-Bug: #1563668
parent 251b498c
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,6 @@ filename = "lua_decoders/os_mysql_log.lua" ...@@ -6,6 +6,6 @@ filename = "lua_decoders/os_mysql_log.lua"
type = "LogstreamerInput" type = "LogstreamerInput"
decoder = "mariadb_log_decoder" decoder = "mariadb_log_decoder"
log_directory = "/var/log/kolla" log_directory = "/var/log/kolla"
file_match = 'mariadb/mariadb\.log\.?(?P<Seq>\d*)$' file_match = 'mariadb/(mariadb|mariadb-error)\.log\.?(?P<Seq>\d*)$'
priority = ["^Seq"] priority = ["^Seq"]
differentiator = ['mariadb'] differentiator = ['mariadb']
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
bind-address={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }} bind-address={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
port={{ mariadb_port }} port={{ mariadb_port }}
log-error=/var/log/kolla/mariadb/mariadb.log log-error=/var/log/kolla/mariadb/mariadb-error.log
general_log=1
general_log_file=/var/log/kolla/mariadb/mariadb.log
binlog_format=ROW binlog_format=ROW
default-storage-engine=innodb default-storage-engine=innodb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment