Expire mysql binary logs out of the box

As reported in the bug, these can grow to 10s to 100s of GB
in a month. To reduce the chance of filling the disk and
bringing down the control plane this change defines
an expiry time.

Closes-Bug: 1720113
Change-Id: I508aad1f515d5108a3d08c90318b70d0a918908c
This commit is contained in:
Doug Szumski 2018-06-26 16:06:15 +01:00
parent 0844bf33f5
commit f450dd9779
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ log-error=/var/log/kolla/mariadb/mariadb.log
log-bin=mysql-bin log-bin=mysql-bin
binlog_format=ROW binlog_format=ROW
expire_logs_days=14
default-storage-engine=innodb default-storage-engine=innodb
innodb_autoinc_lock_mode=2 innodb_autoinc_lock_mode=2

View File

@ -0,0 +1,3 @@
---
features:
- Automatically expire MariaDB binary logs after 14 days.