After a very long time distracted with other projects, I finally
added the third component of the MyCAT project: binlog_mon, a binary log manager
for MySQL.
The main feature of this tool is that it has two disk usage
thresholds which determine when it purges your binary logs:
- a lower, "nominal", threshold above which binary logs will be
purged if-and-only-if none of the replication slaves are still
reading it,
- and a higher, "critical", threshold at which the behavior is
configurable.
It can simply send you an alert if disk usage is above critical
and the oldest file is still needed - or it can purge 1 file, all
files until usage below critical, or all files until usage below
nominal levels. (Other options could be added fairly easily.) The
"critical" option is so configurable because purging any binary …
[Read more]