- Newest
- Most votes
- Most comments
A quick update, removing the read replicas and setting retention period to null didn't cause the logs to purge.
Do snapshots utilize the binary logs or are snapshots self contained once finished?
Update 2 On this issue.
I tried removing some old snapshots and also doing a reboot of the master database without a failover. Neither of those cleaned up the binlogs.
What I ended up having to do was take my read replica, making sure there was no lag in replication, then promoting it to master, switching the host of the master database to a new name, then renaming the newly promoted read replica as the origin master's hostname. That allowed operations to resume and I didn't have the binlogs on the new database, freeing up about 500GB of space.
I'm setting back up a read replica now to see if the binlogs rotate like they should.
It would still be nice to learn why those logs didn't rotate though. If it's a matter of a stuck job or something, having an interface into that insight or a way to force the job to run would be a good addition to the RDS interface.
Hi Pete,
executing stored procedure below reduces binlog to min as soon as replica is in sync:
CALL mysql.rds_set_configuration('binlog retention hours', NULL)
Reference:
"The default value of binlog retention hours is NULL. For RDS for MySQL, NULL means binary logs aren't retained (0 hours)." https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/mysql-stored-proc-configuring.html
Relevant content
- Accepted Answer
- asked a year ago
- asked 3 years ago
- AWS OFFICIALUpdated a month ago
- How do I resolve the storage full issue on my RDS for MySQL instance or my RDS for MariaDB instance?AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago