Alan Orth
6660a0cd36
This was deprecated in MariaDB 10.5. The setting is now ignored and will be removed in a future version. See: https://mariadb.com/kb/en/changes-improvements-in-mariadb-105/#innodb-removed-or-deprecated-variables
27 lines
893 B
YAML
27 lines
893 B
YAML
---
|
|
# file: roles/mariadb/defaults/main.yml
|
|
#
|
|
# Based on my running of mysqltuner.pl on a host with three WordPress databases
|
|
# and a Piwik instance monitoring three sites.
|
|
#
|
|
|
|
# default is 128MB but is a waste because it seems only the mysql table uses it
|
|
key_buffer_size: 32M
|
|
|
|
# default is 128MB but is a waste because it seems only information_schema uses
|
|
# AriaDB, see: https://mariadb.com/kb/en/mariadb/aria-system-variables
|
|
aria_pagecache_buffer_size: 8M
|
|
|
|
# default is 128M, but set to at least the size of your InnoDB data
|
|
innodb_buffer_pool_size: 256M
|
|
|
|
# Ansible 2.7.x with PyMySQL seems to default to TCP connection so we should
|
|
# force it to use a Unix socket.
|
|
# See: https://github.com/ansible/ansible/issues/47736
|
|
mariadb_login_unix_socket: /var/run/mysqld/mysqld.sock
|
|
|
|
# default is 100 but the max I've seen used is 5, so let's reduce it
|
|
max_connections: 33
|
|
|
|
# vim: set ts=2 sw=2:
|