Skip to content

Commit abf75ad

Browse files
authored
Update ee-override.cnf
1 parent fd7fe91 commit abf75ad

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
[mysqld]
2-
# - Uncontrolled binlog growth can consume excessive disk space
3-
# - Traditional methods (expire_logs_days, max_binlog_size) only limit:
4-
# * Individual file size OR
5-
# * Retention period
6-
# → No total storage cap
7-
#
8-
# binlog_space_limit
9-
# - Mechanism:
10-
# 1. Sets hard limit for ALL binlogs combined (bytes)
11-
# 2. Auto-purges oldest files when limit reached
12-
# 3. Always retains newest logs for recovery/replication
132

14-
max_binlog_size = 100M # Max per-file size (avoids oversized files)
15-
binlog_space_limit = 2G # Total storage cap (self-cleaning mechanism)
3+
expire_logs_days = 2
4+
max_binlog_size = 100M

0 commit comments

Comments
 (0)