[MDEV-31404] Implement binlog_space_limit Created: 2023-06-05 Updated: 2024-01-31 |
|
| Status: | In Testing |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | 11.4 |
| Type: | New Feature | Priority: | Critical |
| Reporter: | COUNOTTE CEDRIC | Assignee: | Elena Stepanova |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | Preview_11.4 | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Original request: Implementation guidelines:
|
| Comments |
| Comment by Daniel Black [ 2023-06-06 ] |
|
binlog_expire_logs_seconds has been there since 10.6.1 as the expire_logs_days did lack granularity less than 1. Are you using binlog_row_image= NOBLOB or MINIMAL to reduce size? Also see: |
| Comment by COUNOTTE CEDRIC [ 2023-06-06 ] |
|
Thanks for your quick reply. I was not aware of the new binlog_expire_logs_seconds when we upgraded to 10.6.x a while back! I suppose we should first start using MINIMAL, will it cause any issues on the replication slave when changing it dynamically? EDIT: I did a DROP TABLE xxx on primary cluster, for a table being child of foreign keys and obviously it failed, but for some reason the statement is being replicated and makes the slave constantly exit !? Could it be a side-effect of minimal and how to workaround this? |
| Comment by Daniel Black [ 2023-06-06 ] |
|
> I suppose we should first start using MINIMAL, will it cause any issues on the replication slave when changing it dynamically? Not that I'm aware of. Please do a search here around binlog_row_image=MINIMAL. |
| Comment by Daniel Black [ 2023-06-06 ] |
|
> I did a DROP TABLE xxx on primary cluster, for a table being child of foreign keys and obviously it failed, but for some reason the statement is being replicated and makes the slave constantly exit !? Could it be a side-effect of minimal and how to workaround this? Unsure. Please do new bug report, with MariaDB versions, and examples of your table structures. |
| Comment by Michael Widenius [ 2023-12-05 ] |
|
MDEV-31404 Implement binlog_space_limit binlog_space_limit is a variable in Percona server used to limit the total This implementation is based on code from Percona server 5.7. In MariaDB we decided to call the variable max-binlog-total-size to be Some internal notes to explain implementation notes:
Some implementation notes:
|
| Comment by Elena Stepanova [ 2023-12-06 ] |
|
ccounotte,
In this context, what is the primary cluster and what is the slave? Do you mean that the statement was replicated within a Galera cluster, between nodes? Or is it about traditional replication? Do you have an example of a binary log? |
| Comment by Kristian Nielsen [ 2023-12-11 ] |
|
Review done: https://lists.mariadb.org/hyperkitty/list/developers@lists.mariadb.org/thread/EXIBNZ6PY4FQNBIUWJXS7SHKBMJWFPQU/ |