MariaDB Replications - Fantastically Flexible and Fragile
summary
MariaDB replication trades extreme flexibility for fragility: statement-based replication lets a 50‑char UPDATE replace sending billions of row events, but ordering and locking lead to subtle bugs (example: four transactions on one PK that trigger a rare delete/insert race). The engine uses optimistic parallel replication with strict commit order to keep slaves caught up. A prototype puts the binlog inside an InnoDB-stored binlog tablespace to avoid double fsyncs and shows roughly 2–3× throughput improvement in sysbench durable workloads.
AI-written summary · about
chapters (8)
- 0:00Introduction and speaker background
- 1:07Why MariaDB replication is great
- 4:59Statement-based replication explained
- 7:04Performance and parallel replication
- 10:55Technical example of replication complexity
- 16:11Binlog inside InnoDB engine
- 22:30Benchmarking the new binlog approach
- 28:44Conclusion and future challenges
