Managed Service for MySQL clusters use semi-sync replication: by default, the master waits for a transaction to complete in at least one replica. The difference between Managed Service for MySQL semi-sync replication and standard replication is that if all semi-sync replicas are down, the cluster doesn't switch to asynchronous replication. Instead, it disables replication altogether until at least one replica is available.
Replication in Managed Service for MySQL uses global transaction identifiers (GTID), too. They help maintain the data consistency across cluster hosts.
Due to limited resources, the b1.nano, b1.micro, b2.nano, and b2.micro class hosts are not replicated.
Replication specifics in Managed Service for MySQL
If a cluster is single-host or if all replicas, except for the master, are completely unavailable (the status of the hosts is
DEAD), replication doesn't work. As soon as a replica appears or becomes available in the cluster, semi-sync replication is performed in stages:
- When a replica becomes available, asynchronous replication is immediately enabled from the master. The master remains fully available for reads and writes and replica lag is gradually reduced.
- As soon as the lag is less than 100 MB, synchronous replication is enabled. The master becomes unavailable for writes until the data is fully synced with the replica: this process can take from one to tens of seconds depending on network performance.
- Once data on the master and replica is fully synced, the hosts are made fully available again and replicated synchronously.