Skip to content

Commit

Permalink
Add mariadb config updates
Browse files Browse the repository at this point in the history
Signed-off-by: Riddhesh Sanghvi <riddhesh237@gmail.com>
  • Loading branch information
mrrobot47 committed Dec 9, 2022
1 parent 2a9b46e commit 6022a3a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions mariadb/my.cnf
Expand Up @@ -135,15 +135,16 @@ skip-external-locking
#
# * Fine Tuning
#
max_connections = 100
max_connections = 151
connect_timeout = 5
wait_timeout = 600
max_allowed_packet = 16M
thread_cache_size = 128
thread_cache_size = 128
# join_buffer_size = 1MB
sort_buffer_size = 4M
bulk_insert_buffer_size = 16M
tmp_table_size = 32M
max_heap_table_size = 32M
tmp_table_size = 128M
max_heap_table_size = 128M
#
# * MyISAM
#
Expand All @@ -162,7 +163,7 @@ read_rnd_buffer_size = 1M
#
# Cache only tiny result sets, so we can fit more in the query cache.
query_cache_limit = 128K
query_cache_size = 64M
query_cache_size = 128M
# for more write intensive setups, set to DEMAND or OFF
#query_cache_type = DEMAND

Expand Down Expand Up @@ -218,7 +219,7 @@ expire_logs_days = 10
default_storage_engine = InnoDB
# you can't just change log file size, requires special procedure
#innodb_log_file_size = 50M
innodb_buffer_pool_size = 256M
innodb_buffer_pool_size = 512M
innodb_log_buffer_size = 8M
innodb_file_per_table = 1
innodb_open_files = 400
Expand All @@ -242,7 +243,7 @@ innodb_flush_method = O_DIRECT
# MySQL/MariaDB default is Latin1, but in Debian we rather default to the full
# utf8 4-byte character set. See also client.cnf
character-set-server = utf8mb4
collation-server = utf8mb4_general_ci
collation-server = utf8mb4_unicode_ci

# this is only for embedded server
[embedded]
Expand All @@ -255,7 +256,7 @@ collation-server = utf8mb4_general_ci
# This group is only read by MariaDB-10.5 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.5]
[mariadb-10.10]
#
# * Galera-related settings
#
Expand Down

0 comments on commit 6022a3a

Please sign in to comment.