Last active
December 16, 2020 06:16
-
-
Save macropin/3a1f7edf2bec2cea0087 to your computer and use it in GitHub Desktop.
MariaDB my.cnf for 12GB InnoDB host (READ-COMMITTED)
This file contains hidden or 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
[mysqld] | |
port = 3306 | |
socket = /var/lib/mysql/mysql.sock | |
back_log = 50 | |
max_connections = 100 | |
max_connect_errors = 10 | |
table_open_cache = 2048 | |
max_allowed_packet = 16M | |
binlog_cache_size = 1M | |
max_heap_table_size = 2G | |
read_buffer_size = 2M | |
read_rnd_buffer_size = 16M | |
sort_buffer_size = 8M | |
join_buffer_size = 8M | |
thread_cache_size = 8 | |
thread_concurrency = 8 | |
query_cache_size = 256M | |
query_cache_limit = 2M | |
ft_min_word_len = 4 | |
memlock | |
default-storage-engine = INNODB | |
thread_stack = 240K | |
transaction_isolation = READ-COMMITTED | |
tmp_table_size = 2G | |
log-bin=mysql-bin | |
binlog_format=mixed | |
slow_query_log | |
long_query_time = 2 | |
server-id = 1 | |
key_buffer_size = 32M | |
bulk_insert_buffer_size = 64M | |
myisam_sort_buffer_size = 128M | |
myisam_max_sort_file_size = 1G | |
myisam_repair_threads = 1 | |
myisam_recover | |
innodb_file_per_table | |
innodb_flush_method=O_DIRECT | |
innodb_additional_mem_pool_size = 16M | |
innodb_buffer_pool_size = 5G | |
innodb_data_file_path = ibdata1:10M:autoextend | |
innodb_write_io_threads = 8 | |
innodb_read_io_threads = 8 | |
innodb_thread_concurrency = 16 | |
innodb_flush_log_at_trx_commit = 1 | |
innodb_log_buffer_size = 8M | |
innodb_log_file_size = 256M | |
innodb_log_files_in_group = 3 | |
innodb_max_dirty_pages_pct = 90 | |
innodb_lock_wait_timeout = 120 | |
expire_logs_days = 3 | |
[mysqldump] | |
quick | |
max_allowed_packet = 16M | |
[mysql] | |
no-auto-rehash | |
[myisamchk] | |
key_buffer_size = 512M | |
sort_buffer_size = 512M | |
read_buffer = 8M | |
write_buffer = 8M | |
[mysqlhotcopy] | |
interactive-timeout | |
[mysqld_safe] | |
open-files-limit = 8192 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment