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. - old_mode = '' to allow utf8mb4 on the connection. Emoji's can now be inserted into buildbot.changes.comments - cleaned PROD configuration where default/harmful options were present. - pinned MariaDB Server version to 10.11.10 to be in control of minor upgrades. - switched to standard healthcheck script for containers - moved datadir to /srv/mariadb
- Loading branch information
1 parent
050c1bb
commit 62483d0
Showing
6 changed files
with
70 additions
and
17 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
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,17 @@ | ||
[mariadb] | ||
|
||
# InnoDB | ||
innodb_buffer_pool_size = 4G | ||
innodb_log_file_size = 4G | ||
innodb_io_capacity = 2000 | ||
|
||
# Logging | ||
slow_query_log | ||
log_slow_query_file = mariadb-slow.log | ||
log_slow_verbosity = full | ||
log_slow_query_time = 2 | ||
|
||
# Character sets | ||
character-set-server = utf8mb4 | ||
collation-server = utf8mb4_uca1400_ai_ci | ||
old_mode = '' |
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,44 @@ | ||
[mariadb] | ||
|
||
# Fine tuning | ||
max_connections = 300 | ||
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 | ||
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 | ||
log_slow_query | ||
log_slow_query_file = mariadb-slow.log | ||
log_slow_query_time = 2 | ||
log_slow_verbosity = full | ||
|
||
# Character sets | ||
character-set-server = utf8mb4 | ||
collation-server = utf8mb4_uca1400_ai_ci | ||
old_mode = '' | ||
|
||
# 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 | ||
|
This file was deleted.
Oops, something went wrong.
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