Setting a Local Retention Period for RDS for MariaDB Binlogs
RDS for MariaDB deletes local binlogs after they are backed up to OBS. You can set the local retention period for binlogs as required.
Binary logging is enabled for RDS by default and uses row-based logging.
Read replicas do not provide binlogs.
Binlogs can be retained from 0 to 168 (7x24) hours locally.
If the retention period is set to 0, the binlogs of your DB instance will be deleted once they are synchronized to the standby instance and read replicas and successfully backed up to OBS. If the retention period is set to a value greater than 0, for example, 1 day, the binlogs will be retained for one day after they are synchronized to the standby instance and read replicas from the primary instance and successfully backed up to OBS. After the retention period expires, the binlogs will be automatically deleted. For details about how to view binlogs, see Downloading a Binlog Backup File.
Precautions
The binlog retention period is displayed in hour on the console. However, the value of expire_logs_days is displayed in day when you query the binlog retention period by running a command, which cannot be used as a reference. To check how long the binlogs can be retained, view the binlog retention period on the console.
Procedure
- Log in to the management console.
- Click in the upper left corner of the page and choose Databases > Relational Database Service.
- On the Instances page, click the instance name.
- In the navigation pane on the left, choose Backups & Restorations. On the Binlog Backups page, click Set Binlog Retention Period.
- In the displayed dialog box, set the local retention period and click OK.
Figure 1 Setting the binlog retention period
When binlogs are deleted depends on the local retention period you configure on the console.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot