Skip to content

Commit

Permalink
All options that aren't innodb, log_slow_query, or replication based …
Browse files Browse the repository at this point in the history
…are either default or potentially harmful (like query_cache_size).
  • Loading branch information
RazvanLiviuVarzaru committed Dec 2, 2024
1 parent 41e21fd commit 6db3b51
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions docker-compose/mariadb-config/prod/mariadb.cnf
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
[mariadb]

port = 3306
bind-address = 0.0.0.0

# Fine tuning
max_connections = 300
connect_timeout = 5
wait_timeout = 600
max_allowed_packet = 32M
thread_cache_size = 128
sort_buffer_size = 128M
bulk_insert_buffer_size = 128M
tmp_table_size = 32M
max_heap_table_size = 32M
skip-name-resolve = 1
innodb_log_file_size = 2G

# Logging
Expand All @@ -26,9 +21,6 @@ log_slow_query_file = mariadb-slow.log
long_query_time = 2
log_slow_verbosity = full

# Query cache
query_cache_size = 16M

# Character sets
character-set-server = utf8mb4
collation-server = utf8mb4_general_ci
Expand All @@ -50,7 +42,3 @@ binlog_format = MIXED
# the following permits to simplify the process of moving a replica to a
# primary node role by ensuring that replication is not started on primary node

[mysqldump]
quick
quote-names
max_allowed_packet = 16M

0 comments on commit 6db3b51

Please sign in to comment.