Bug #40509 mysql-proxy object to see slave status
Submitted: 4 Nov 2008 17:40 Modified: 4 Jun 2009 12:19
Reporter: Sheeri Cabral (Candidate Quality Contributor) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Proxy: Core Severity:S4 (Feature request)
Version: OS:Any
Assigned to: Assigned Account CPU Architecture:Any
Tags: qc, replication, rw-splitting

[4 Nov 2008 17:40] Sheeri Cabral
Description:
It would be great if there could be a mysqlproxy object that can see into the SHOW SLAVE STATUS.  More specifically, that could see the difference in position between the master log file and the current exec position in the relay log file.  

Basically it would be great if proxy could send reads elsewhere if replication does not work or is "far behind" on a server.

"far behind" is complex (what with different log files, etc), so a good first approximation is whether or not both the SQL and IO threads are running.

(although this could be the start of a truly robust and accurate slave status check -- check the current exec position in the relay log file on the slave, check the current master position on the master (ie, not what the slave thinks!), and use that to extract how far behind the slave is).

How to repeat:
no repeat; feature request.