mariadb: Optimiere Datenbanken
This commit is contained in:
parent
43a8ed97f7
commit
85a3b8a11a
1 changed files with 6 additions and 0 deletions
|
@ -9,3 +9,9 @@ slow_query_log_file = /var/log/mysql/mariadb-slow.log
|
||||||
long_query_time = 10
|
long_query_time = 10
|
||||||
log_slow_rate_limit = 1000
|
log_slow_rate_limit = 1000
|
||||||
log_slow_verbosity = query_plan
|
log_slow_verbosity = query_plan
|
||||||
|
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in a new issue