I want to figure it out a bit. I have a master + slaves setting. I have one master and 3 slaves. All entries ( INSERT|UPDATE|DELETE) go to the main. All readings ( SELECT) go to one of the slaves, which is randomly selected. All my tables use the InnoDB storage engine.
I'm curious how MySQL / InnoDB handles transactions in this setup. If MySQL writes every change inside a transaction to binlog, everything should be fine. However, I see that big problems arise if the bitlog is not written until the transaction is completed.
Can someone explain what happens inside MySQL during a replication transaction?
source
share