GTIDbased
GTIDbased refers to a method of database replication that uses Global Transaction Identifiers (GTIDs) to track and coordinate the execution of transactions across multiple servers. In GTID-based replication, every committed transaction is assigned a unique GTID, which is recorded in the server’s GTID set. This approach allows replicas to know precisely which transactions they have already applied and which are still needed, facilitating automated synchronization and promotion in failover scenarios.
How it works: When a transaction commits on a server, it receives a GTID that is added
Benefits: GTID-based replication simplifies maintenance of large or complex replication topologies, enables easier automatic failover and
Limitations and considerations: GTID gaps can occur and may require corrective actions. Enabling GTIDs requires careful
Implementation notes: In MySQL and MariaDB, enabling GTID-based replication typically involves setting options such as gtid_mode