infra/ansible/roles/freeradius/templates/mariadb-tuning.cnf.j2
2026-07-12 15:35:31 -05:00

33 lines
906 B
Django/Jinja

#
# MariaDB performance tuning for FreeRADIUS
# Managed by Ansible — do not edit manually.
#
[mariadbd]
# --- Connections ---
max_connections = 100
thread_cache_size = 16
skip-name-resolve
# --- InnoDB ---
# 512M is plenty — the radius DB is small but InnoDB benefits from headroom
innodb_buffer_pool_size = 512M
innodb_buffer_pool_instances = 1
innodb_flush_log_at_trx_commit = 2
innodb_log_file_size = 128M
innodb_file_per_table = 1
innodb_flush_method = fsync
# --- Tables ---
table_open_cache = 256
table_definition_cache = 400
# --- Query Cache ---
# Disabled by default in MariaDB 10.6+ — leave off for FreeRADIUS
# (most queries are single-row lookups, query cache adds overhead)
query_cache_type = 0
# --- Binary Logging ---
# Disable unless replication is needed — saves disk I/O
# skip-log-bin is default in Debian, explicit for safety
disable_log_bin