mysql replication lag problems
mysql replication lag problems
The other thread, known as the SQL thread, will continue processing the SQL
statements it downloaded from the master.
When you run SHOW SLAVE STATUS\G, keep your eye on Exec_Master_Log_Pos. Run SHOW
SLAVE STATUS\G again. If Exec_Master_Log_Pos does not move after a minute, you can
go ahead run START SLAVE IO_THREAD;. This may reduce the number of
Seconds_Behind_Master.
Other than that, there is really nothing you can do except to:
Trust Replication
Monitor Seconds_Behind_Master
Monitor Exec_Master_Log_Pos
Run SHOW PROCESSLIST;, take note of the SQL thread to see if it is processing long
running queries.
BTW Keep in mind that when you run SHOW PROCESSLIST; with replication running,
there should be two DB Connections whose user name is system user. One of those DB
Connections will have the current SQL statement being processed by replication. As
long as a different SQL statement is visible each time you run SHOW PROCESSLIST;,
you can trust mysql is still replicating properly.