Hi all,
trying mysql replication i just realized one aspect that i would like it to be confirmed.
Suppose to have a master and two slaves.
The master executes just writes and the slaves are involved just for reads. But actually the writes are performed also on the slaves by the IO thread (replication).
Checking the log of master, i see only writes. Checking slaves log i see:
- reads (select) coming from my application
- writes (update/insert/delete) coming from the master (for replication of course).
At this point i'm just thinking that the load on the slave is always higher than the one on the master since in any case any slave has to perform all writes performed on the master and the reads performed by the application.
Is it correct ? Am I missing anything ?
Thanks in advance
ste
trying mysql replication i just realized one aspect that i would like it to be confirmed.
Suppose to have a master and two slaves.
The master executes just writes and the slaves are involved just for reads. But actually the writes are performed also on the slaves by the IO thread (replication).
Checking the log of master, i see only writes. Checking slaves log i see:
- reads (select) coming from my application
- writes (update/insert/delete) coming from the master (for replication of course).
At this point i'm just thinking that the load on the slave is always higher than the one on the master since in any case any slave has to perform all writes performed on the master and the reads performed by the application.
Is it correct ? Am I missing anything ?
Thanks in advance
ste