2021-01-04 14:33:32 +01:00
|
|
|
munin_sql_config_file: /etc/munin/plugin-conf.d/zzz-mariadb
|
2021-01-01 18:01:44 +01:00
|
|
|
munin_sql_user: munin
|
2023-02-15 23:28:51 +01:00
|
|
|
munin_sql_password: "{{ lookup('ansible.builtin.password', '/tmp/{{ inventory_hostname }}_munin_sql_password chars=ascii_lowercase,digits length=23') }}"
|
2023-02-07 19:29:04 +01:00
|
|
|
|
|
|
|
mysql_socket: /run/mysqld/mysqld.sock
|
2023-02-15 19:36:00 +01:00
|
|
|
|
2023-10-14 10:43:06 +02:00
|
|
|
mysqld:
|
2023-11-19 13:55:33 +01:00
|
|
|
innodb_log_buffer_size: 4M
|
|
|
|
innodb_log_file_size: 256M
|
2023-10-14 10:43:06 +02:00
|
|
|
slow_query_log: 1
|
|
|
|
slowlog_query_log_file: /var/log/mysql/mariadb-slow.logA
|
|
|
|
slowlog_query_time: 10
|
|
|
|
slowlog_log_slow_rate_limit: 1000
|
|
|
|
log_slow_verbosity: query_plan
|
2023-11-04 11:01:20 +01:00
|
|
|
|
|
|
|
automysqlbackup_config:
|
|
|
|
dbhost: localhost
|
|
|
|
dbnames: "$(mysql --defaults-file=/etc/mysql/debian.cnf -s -N --execute='SHOW DATABASES' | grep -v ^mysql$ | grep -v ^performance_schema$ | grep -v ^information_schema$ | xargs)"
|
|
|
|
backupdir: /var/lib/automysqlbackup
|
|
|
|
mailcontent: quiet
|
|
|
|
maxattsize: 4000
|
|
|
|
mailaddr: root
|
|
|
|
mdbnames: "mysql $DBNAMES"
|
|
|
|
create_database: "yes"
|
|
|
|
sepdir: "yes"
|
|
|
|
doweekly: 6
|
|
|
|
domonthly: 1
|
|
|
|
comp: gzip
|
|
|
|
compdirect: "yes"
|
|
|
|
commcomp: "yes"
|
|
|
|
latest: "no"
|
|
|
|
postbackup: /usr/local/bin/automysqlbackup_post_script
|
|
|
|
routines: "yes"
|