From 38607048ee2d0dfd4d2992ef4f1081c6bdfc1cac Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 24 Feb 2021 09:19:23 -0800 Subject: [PATCH] mysql: make binlog have 5 day expiry --- setup/start/mysql/5.7.cnf | 2 +- setup/start/mysql/8.0.cnf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/start/mysql/5.7.cnf b/setup/start/mysql/5.7.cnf index 7f3897eb5..99d25cd41 100644 --- a/setup/start/mysql/5.7.cnf +++ b/setup/start/mysql/5.7.cnf @@ -16,7 +16,7 @@ collation-server = utf8mb4_unicode_ci default_time_zone='+00:00' # keep mysql binlogs under check -expire_logs_days = 10 +expire_logs_days = 5 max_binlog_size = 100M [mysqldump] diff --git a/setup/start/mysql/8.0.cnf b/setup/start/mysql/8.0.cnf index 80e51c1e5..6eea9c9ba 100644 --- a/setup/start/mysql/8.0.cnf +++ b/setup/start/mysql/8.0.cnf @@ -16,7 +16,7 @@ collation-server = utf8mb4_unicode_ci default_time_zone='+00:00' # keep mysql binlogs under check -binlog_expire_logs_seconds = 864000 +binlog_expire_logs_seconds = 432000 max_binlog_size = 100M [mysqldump]