From a6b6265bc6ce980fab92fc20cc8362c251d06064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Maldonado?= <amaldona@etu.utc.fr> Date: Mon, 6 Apr 2020 17:53:15 +0200 Subject: [PATCH] [pica-etherpad-db] Update binlog config file --- pica-etherpad-db/config/binary_log.cnf | 27 ++++++++++++++++++++ pica-etherpad-db/config/limit_binary_log.cnf | 2 -- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 pica-etherpad-db/config/binary_log.cnf delete mode 100644 pica-etherpad-db/config/limit_binary_log.cnf diff --git a/pica-etherpad-db/config/binary_log.cnf b/pica-etherpad-db/config/binary_log.cnf new file mode 100644 index 00000000..91eef3fb --- /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 522abe93..00000000 --- a/pica-etherpad-db/config/limit_binary_log.cnf +++ /dev/null @@ -1,2 +0,0 @@ -[mysqld] -binlog_expire_logs_seconds = 108000 -- GitLab