MySQL GTID Implementation, Maintenance, and Best Practices - The Short Version
summary
GTID adoption is practical and concrete: Percona Server 5.6 uses gtid_deployment_step to enable GTIDs online without full downtime while the conversion sequence is restart replicas, promote one replica, disable deployment step and run CHANGE MASTER to MASTER_AUTO_POSITION=1. Watch for auto.cnf server_uuid collisions when restoring files, gaps caused by multi‑threaded slaves, and use mysqlbinlog --include-gtids or GTID_NEXT plus a small BEGIN/COMMIT to “fake” a missing transaction. MySQL 5.7 adds an executed GTIDs table and fully dynamic GTID mode.
AI-written summary · about
chapters (34)
- 0:00Intro
- 0:53Traditional MySQL replication primer
- 1:03Standard topologies
- 1:20SHOW MASTER STATUS
- 2:21Defining GTID
- 3:24Binary Log Contents
- 4:04SHOW SLAVE STATUS NEW GTID Information
- 4:34GTID Sets & Related Variables
- 6:03GTID vs Binlog Position
- 6:50Enabling GTIDs in Oracle MySQL 5.6
- 8:16Potential Replication Conflicts
- 10:16Percona Server 5.6 implementation
- 10:38Starting topology
- 10:48MySQL instance: replication configuration
- 10:59Important 5.6 GTID variables
- 11:57Important GTID variables (cont.)
- 12:39General steps
- 14:43Important GTID status info variables
- 16:19GTID slave status
- 17:02GTID master status
- 19:01Maintenance
- 19:41Currently writing master
- 20:39GTID set gaps
- 21:38Finding transactions
- 22:46Fixing transactions with gtid_next
- 25:05Advanced Concepts
- 26:26binlog_gtid_simple_recovery
- 28:55Faking and skipping transactions
- 30:36GTID Set functions
- 31:55START SLAVE UNTIL ...
- 32:47SHOW SLAVE STATUS NONBLOCKING
- 34:43Enabling GTID online
- 35:55mysql.gtid_executed table
- 37:29SurveyMonkey
related talks
22mMySQL Replication: Latest Developments
53mMySQL replication setup, benefits, limitations
49mMySQL Replication — Advanced Features
23mMySQL Group Replication
52mMySQL replication deep dive, and ideas for PostgreSQL
20mMySQL Binary Logs From Replication Tool to Enterprise Event Platform
26mUnderstanding MySQL Concepts
35mMySQL HA, Recovery and Load Balancing
