Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
[mysqld]
# GENERAL #
user = mysql
default-storage-engine = MyISAM
socket = /var/lib/mysql/mysql.sock
pid-file = /var/lib/mysql/mysql.pid
# MyISAM #
;key-buffer-size = 8G
myisam-recover = FORCE,BACKUP
# SAFETY #
;max-allowed-packet = 16M
max-connect-errors = 1000000
# DATA STORAGE #
datadir = /var/lib/mysql/
# BINARY LOGGING #
log-bin = /var/lib/mysql/mysql-bin
expire-logs-days = 14
sync-binlog = 1
# CACHES AND LIMITS #
tmp-table-size = 32M
max-heap-table-size = 32M
query-cache-type = 0
query-cache-size = 0
max-connections = 500
thread-cache-size = 50
open-files-limit = 65535
table-definition-cache = 1024
table-open-cache = 4096
# INNODB #
innodb-flush-method = O_DIRECT
innodb-log-files-in-group = 2
innodb-log-file-size = 32M
innodb-flush-log-at-trx-commit = 2
innodb-file-per-table = 1
innodb-buffer-pool-size = 8M
# LOGGING #
log-error = /var/lib/mysql/mysql-error.log
log-queries-not-using-indexes = 1
slow-query-log = 1
slow-query-log-file = /var/lib/mysql/mysql-slow.log
sync-binlog = 1
okli wrote:Without going through the rest of the ny.conf settings, this one should be changed:to 0.
- Code: Select all
sync-binlog = 1
Otherwise each write to binlog MySQL will be synced to the disk which night have great impact on performance.
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.
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.
iostat -c -d -h -z -t -x 1 5
williamconley wrote:iostat -c -d -h -z -t -x 1 5
we've found that the "await" value suddenly jumping to triple digits (and staying there for a few seconds) tends to precede "HD death" and can also indicate a simple overload of the HD.
Users browsing this forum: No registered users and 68 guests