okli wrote:Without going through the rest of the ny.conf settings, this one should be changed:
- Code: Select all
sync-binlog = 1
to 0.
Otherwise each write to binlog MySQL will be synced to the disk which night have great impact on performance.
I set it up like that and it is behaving much better, no issues whatsover with calls, just once in a while an error in the slave server will show up about being unable to do certain transaction probably every 1 or 2 days. Thanks!
Kumba wrote:Binary logs are enabled by default on ViciBox installs since V3. There shouldn't be any issue with a slave sync'ing to the master. Only time it might be a problem is if your disks are marginally overloaded and the extra reads from the slave are making them completely overloaded. I would expect you to have a bunch of other issues before that happens though.
Run iostat and see what kind of load your disks are under when it happens. If it's above 90% then you need faster disks. Either go with a paid of SSD's in a RAID-1 or get a RAID-10.
I ran iostat and there is not much info in % rather than CPU usage it seems.
This is what I got:

williamconley wrote:If, however, you have a large system and you are using the slave to run reports, I could see where turning of the binary log sync is a good idea. In that case, though, I'd probably put the original binary logs on a 2nd HD (not the same drive as the mysql database) so you can recover from the backup and binary logs in case the HD for mysql dies horribly.
This is basically the main usage of the server, running reports and a lot of custom MySQL queries for statistics on the vicidial database tables, a lot of joins, etc.
I will do that, I'll setup another set of hard drives just for the binlogs, even though the issues seems to have been mitigated with sync-binlog = 0.... this would really help more I think. Thanks!