Skip to content

Commit fd7fe91

Browse files
authored
Create ee-override.cnf
1 parent 377c2e8 commit fd7fe91

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[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
13+
14+
max_binlog_size = 100M # Max per-file size (avoids oversized files)
15+
binlog_space_limit = 2G # Total storage cap (self-cleaning mechanism)

0 commit comments

Comments
 (0)