We use a ssd disk for master database and SATA disk for slave.
On high write load (300 writes/s), slave delay is very serious. I have set:
innodb_flush_log_at_trx_commit = 0
- increased
innodb_log_file_size
on the slave, but the delay continues.
the slave is for backup only, no read or write request.
Seconds_Behind_Master: 92265, continue increasing.
some conf:
innodb_buffer_pool_size=15G innodb_log_file_size=1G innodb_log_buffer_size=32M
du -hs mysql
338G mysql
iostat
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sde 0.00 73.00 34.50 185.00 552.00 7086.00 69.59 5.63 25.63 19.19 26.83 3.65 80.20