forked from MariaDB/buildbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDBF-829 - Update MariaDB Server cnf
Separate configs for PROD and DEV. Updated docker-compose to choose the right one based on environment. TODO: maybe a templating engine in the future to de-deduplicate configuration settings. Took all the configuration settings from current PROD MariaDB Server installation.
- Loading branch information
1 parent
ceecd9c
commit 7950a2e
Showing
4 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
[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 | ||
# warning log-basename is defined later for replication | ||
# some log option may be ignored. | ||
# see: https://mariadb.com/kb/en/mysqld-options/#-log-basename | ||
# log_error = /var/log/mysql/error.log | ||
slow_query_log | ||
slow_query_log_file = /var/log/mysql/mariadb-slow.log | ||
long_query_time = 2 | ||
log_slow_verbosity = query_plan,explain | ||
log_error = /var/log/mysql/mariadb.err.log | ||
|
||
# Query cache | ||
query_cache_size = 16M | ||
|
||
# Character sets | ||
character-set-server = utf8mb4 | ||
collation-server = utf8mb4_general_ci | ||
|
||
# InnoDB | ||
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. | ||
# Read the manual for more InnoDB related options. There are many! | ||
innodb_buffer_pool_size = 40G | ||
|
||
# Replication | ||
server-id = 1 | ||
log-basename = mariadb | ||
|
||
log_bin | ||
expire_logs_days = 5 | ||
max_binlog_size = 100M | ||
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 | ||
skip-slave-start | ||
|
||
|
||
[mysqldump] | ||
quick | ||
quote-names | ||
max_allowed_packet = 16M |