Several times now my Google Cloud MySQL read replica just stopped replication of the master. Visible symptoms are:
- Replication lags rises on the slave.
- The
Relay_Log_Pos
value ofshow slave status
is stuck while theRead_Master_Log_Pos
rises in line with the master. - On the slave there is an entry for
Reading event from the relay log
that has run very long
So far I had to recreate the read replica to get it working again, but I would like to avoid that.
What can I do to restore proper replication when the slave is stuck like this, without rebuilding the replica?
STOP SLAVE; START SLAVE;
on the Replica.