From b67ed55aedd2a49c8d12704d1b56513f5f2e5e25 Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 14 Jan 2023 00:53:10 +0100 Subject: [PATCH] =?UTF-8?q?mariadb:=20Konfiguriere=20MariaDB-Optionen=20f?= =?UTF-8?q?=C3=BCr=20database.sao?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/90-sao.cnf.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/90-sao.cnf.j2 b/templates/90-sao.cnf.j2 index 6dd9bdc..4d23040 100644 --- a/templates/90-sao.cnf.j2 +++ b/templates/90-sao.cnf.j2 @@ -3,6 +3,10 @@ [mysqld] bind_address={{ mariadb.bind_address|default("127.0.0.1") }} +{% if inventory_hostname == "database.sao" %} +open_files_limit = 64184 +{% endif %} + # Slow-Log slow_query_log = 1 slow_query_log_file = /var/log/mysql/mariadb-slow.log @@ -10,8 +14,10 @@ long_query_time = 10 log_slow_rate_limit = 1000 log_slow_verbosity = query_plan +{% if inventory_hostname != "database.sao %} innodb_buffer_pool_size = {{ (ansible_memtotal_mb / 1024 * 0.8) | round (0, 'floor') | int }}G innodb_log_file_size = 256M innodb_log_buffer_size = 4M innodb_buffer_pool_instances = 4 performance_schema = on +{% endif %}