“a hero. not the one we 
deserved, but the one we
needed - the unsung hero”	


	


	


	

	

vishnu rao - flipkart.com
The scenario : 
Multi source replication
The scenario : 
Multi source replication
Failure scenario!
Failure scenario!
Failover ?	

§  Can’t simply failover to other slave.	

§  For Txn-1 Binlog Positions are
different across the slaves ( p2 p3 )	

§  Xid’s of Txn-1 are different across the
slaves ( xid 2 xid 3 )	

§  i.e. absence of GTID.
What now ?
Signal the relay log !
The Relay log	

§  The relay log on each slave is a copy
of the master’s binlog.	

§  Position  Xid of Transaction Txn-1
in the relay log are SAME on both
slaves.	

§  i.e. we now have Global Transaction
ids
The solution: 
‘replicate via relay log’
The solution: 
‘replicate via relay log’...
The solution: 
‘replicate via relay log’...
The solution: 
‘replicate via relay log’...
The solution: 
‘replicate via relay log’...
code/	

§  Modified ‘Tungsten’ client which sends
‘com_relaylog_dump’	

§  MySQL server – com_relaylog_dump
for relay log dump functionality	

@	

github.com/jaihind213/mash213
§  5.6 – GTID -The hero we deserved	

§  5.5 – Relay log – The hero we needed
Relay log - the unsung hero. 	

	

Thank you.	

	

jaihind213@gmail.com / vishnuhr@flipkart.com	

mash213.wordpress.com	

doodle-vishnu.blogspot.in	

in.linkedin.com/in/213vishnu	

sweetweet213@twitter

Mysql Relay log - the unsung hero