diff --git a/pica-etherpad-db/config/binary_log.cnf b/pica-etherpad-db/config/binary_log.cnf new file mode 100644 index 0000000000000000000000000000000000000000..91eef3fbe51ce43c4a9198fe44d36e8696a7894e --- /dev/null +++ b/pica-etherpad-db/config/binary_log.cnf @@ -0,0 +1,27 @@ +# Official documentation: https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html +# +# The main purpose of this config file is to retain binary logs (enabled +# by default) «just in case», for a short period of time. We dont do +# replication, so anyway we shouldn't need the binary logs. +# +# Some settings also try to improve performance (experimental) + + +[mysqld] +# Limit the binlog retention to 30 hours +binlog_expire_logs_seconds = 108000 + + +# Cache limits +# Increase binlog_cache_size and binlog_stmt_cache_size +# (default: 32 KiB) to 128 KiB +binlog_cache_size = 131072 +binlog_stmt_cache_size = 131072 +# Decrease max_binlog_cache_size and max_binlog_stmt_cache_size +# (default: 16 EiB) to 10 MiB. +# (If we have transactions greater than 10 MiB there's a big problem) +max_binlog_cache_size = 10485760 +max_binlog_stmt_cache_size = 10485760 + +# Ignore errors +binlog_error_action = IGNORE_ERROR diff --git a/pica-etherpad-db/config/limit_binary_log.cnf b/pica-etherpad-db/config/limit_binary_log.cnf deleted file mode 100644 index 522abe9317483ccffc03740b111d9c2977da140f..0000000000000000000000000000000000000000 --- a/pica-etherpad-db/config/limit_binary_log.cnf +++ /dev/null @@ -1,2 +0,0 @@ -[mysqld] -binlog_expire_logs_seconds = 108000