Details
-
Type:
Task
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Fix Version/s: None
-
Component/s: Replication
-
Labels:None
Description
Please, could it be possible to implement "START SLAVE UNTIL <timestamp>"? It could be useful for backup purposes when a few slaves (of different masters) have to be in sync. Currently it is possible by searching binlogs for the given timestamp and setting "UNTIL MASTER_LOG_FILE = 'log_name', MASTER_LOG_POS = log_pos".
"START SLAVE UNTIL <timestamp>" would greatly simplify this and also allow stopping in the future when a binlog entry with a greater timestamp arrives.
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
using https://mariadb.com/kb/en/mariadb/global-transaction-id/ in mariadb-10+ I'd be looking at recording the gtid as part of the backup. Then recovery is set global gtid_slave_pos=...; CHANGE MASTER TO master_use_gtid = slave_pos; start slave; regardless of server.
Timestamp is quite ambiguous when multiple transactions can happen in a millisecond.
I totally agree that log file/pos between servers is a pain, which I suspect was one of the great motivators for gtid implementation.