I'm looking to clear up a bit of confusion. I have a master + slaves setup. I have one master, and 3 slaves. All writes (INSERT|UPDATE|DELETE
) go the master. All reads (SELECT
) go to one of the slaves, which is chosen at random. All of my tables are using the InnoDB storage engine.
I'm curious how MySQL/InnoDB handles transactions in this setup. If MySQL writes each change within the transaction to the binlog, then all should be fine. However I can see there being some big problems if the binlog isn't written to until the transaction is commited.
Can anyone explain what's going on within MySQL during transaction with replication in place?