Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

MySQL Delayed Replication - Reading events

$
0
0

Given MySQL is setup for master-slave replication, when delayed replication is set on the slave, does the slave still read the binlog while it is waiting for the delay period to pass?

From MySQL documentation:

An event received from the master is not executed until at least N seconds later than its execution on the master. The exceptions are that there is no delay for format description events or log file rotation events, which affect only the internal state of the SQL thread.

My understanding from reading it is that the binlog from master is still read, but it is not applied to the slave until the delay timer expires. Is this correct, or does the slave wait until the delay timer finishes and then read from the master binlog file.

If it does continue to read while waiting, where are the events stored? (in memory or a tmp file?)


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>