Adjust configurations mostly for MariasDB.

This commit is contained in:
2021-06-17 22:52:38 +02:00
parent 844e22c082
commit 9256712dda
4 changed files with 1473 additions and 16 deletions

View File

@@ -394,7 +394,7 @@ innodb_log_file_size = 750M
## -
#innodb-log-buffer-size = 8M
#innodb-log-buffer-size = 32M
innodb_log_buffer_size = 64M
innodb_log_buffer_size = 256M
## - innodb_flush_log_at_trx_commit
## -
@@ -654,7 +654,9 @@ log-error = /var/log/mysql/mysql.err
## -
## - Removed since MySQL Version 8.0.3
## -
query_cache_type = 1
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query_cache_type = 1
## - query_cache_limit
@@ -667,9 +669,11 @@ query_cache_type = 1
## -
## - Removed since MySQL Version 8.0.3
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query-cache-limit = 4M
#query_cache_limit = 8M
query_cache_limit = 16M
#query_cache_limit = 128M
## - query_cache_min_res_unit
@@ -691,7 +695,9 @@ query_cache_limit = 16M
## -
## - Removed since MySQL Version 8.0.3
## -
query-cache-min-res-unit = 8K
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query-cache-min-res-unit = 8K
## - query_cache_size
@@ -708,9 +714,11 @@ query-cache-min-res-unit = 8K
## -
## - Removed since MySQL Version 8.0.3
## -
## - For MariaDB see section '[mariadb]' or '[mariadb-10.x]'
## -
#query_cache_size = 32M
#query-cache-size = 128M
query_cache_size = 1024M
#query_cache_size = 1024M
## - query cache
## -------------
@@ -828,6 +836,116 @@ tmp_table_size = 2048M
## ------------------------------------------
# This group is only read by MariaDB servers, not by MySQL.
# If you use the same .cnf file for MySQL and MariaDB,
# you can put MariaDB-only options here
[mariadb]
## - innodb_purge_threads
## -
## - Number of background threads dedicated to InnoDB purge operations. The range
## - is 1 to 32. At least one background thread is always used from MariaDB 10.0.
## -
## - The default has been increased from 1 to 4 in MariaDB 10.2.2. Setting to a
## - value greater than 1 creates that many separate purge threads. This can improve
## - efficiency in some cases, such as when performing DML operations on many tables.
## - In MariaDB 5.5, the options are 0 and 1. If set to 0, the default, purging is
## - done with the primary thread. If set to 1, purging is done on a separate thread,
## - which could reduce contention. See also innodb_purge_batch_size.
## -
## - Default Value:
## -
## - 4 (>= MariaDB 10.2.2)
## - 1 (>=MariaDB 10.0 to <= MariaDB 10.2.1)
#innodb_purge_threads = 4
## -------------
## - query cache
## - query_cache_type
## -
## - 0 : verhindert das Speichern von Abfragen im und
## - das Abrufen aus dem Cache
## - 1 : gestattet das Speichern von Abfragen im Cache.
## - Ausgenommen sind Anweisungen, die mit
## - SELECT SQL_NO_CACHE beginnen.
## - 2 : speichert nur diejenigen Anweisungen im Cache,
## - die mit SELECT SQL_CACHE beginnen.
## -
## - Removed since MySQL Version 8.0.3
## -
## - But present at MariaDB
## -
query_cache_type = 1
## - query_cache_limit
## -
## - Gibt die maximale Größe einzelner Abfrageergebnisse an, die im
## - Cache gespeichert werden können.
## -
## - Vorgeabewert ist 1Mbyte
## -
## -
## - Removed since MySQL Version 8.0.3
## -
#query-cache-limit = 4M
#query_cache_limit = 8M
query_cache_limit = 128M
## - query_cache_min_res_unit
## -
## - Die im Abfrage-Cache abgelegten Ergebnisse, werden nicht am Stück
## - verwaltet. Der Abfrage-Cache reserviert Blöcke zur Speicherung dieser
## - Daten nach Bedarf, d. h. wenn ein Block voll ist, wird der nächste
## - zugewiesen. Da der Speicherreservierungsvorgang (in zeitlicher Hinsicht)
## - aufwändig ist, reserviert der Abfrage-Cache die Blöcke mit einer
## - Mindestgröße, die durch die Systemvariable query_cache_min_res_unit
## - festgelegt wird. Wird eine Abfrage ausgeführt, dann wird der letzte
## - Ergebnisblock auf die tatsächliche Datengröße zugeschnitten, sodass
## - unbenutzter Speicher freigegeben wird.
## -
## - Siehe auch http://dev.mysql.com/doc/refman/5.1/de/query-cache-configuration.html
## -
## - Vorgabewert ist 4Kbyte
## -
## -
## - Removed since MySQL Version 8.0.3
## -
query-cache-min-res-unit = 8K
## - query_cache_size
## -
## - Die Größe des Abfrage-Caches.
## -
## - Wird query_cache_size auf einen Wert größer Null gesetzt, so ist zu beachten,
## - dass der Abfrage-Cache eine Mindestgröße von ca. 40 Kbyte benötigt, um seine
## - Strukturen zuzuweisen. (Der exakte Wert hängt von der Systemarchitektur ab.)
## - Wird der Wert zu niedrig angesetzt, wird eine Warnung ausgegeben.
## -
## - Vorgabewert ist 0, d. h. der Abfrage-Cache ist vorgabeseitig deaktiviert.
## -
## -
## - Removed since MySQL Version 8.0.3
## -
#query_cache_size = 32M
#query-cache-size = 128M
query_cache_size = 1024M
## - query cache
## -------------
# This group is only read by MariaDB-10.3 servers.
# If you use the same .cnf file for MariaDB of different versions,
# use this group for options that older servers don't understand
[mariadb-10.3]
[mysqldump]
quick
max-allowed-packet = 32M