Optimize Server Hard Disk for Performance to MySQL but not safe

Last updated on October 12th, 2013 at 07:39 am

sudo tune2fs -o journal_data_writeback /dev/sda1 (use the right partition)

vim /etc/fstab

ext4 errors=remount-ro,noatime,nodiratime,data=writeback,barrier=0,nobh,commit=100,nouser_xattr 0 1

vim /etc/my.cnf

innodb_flush_log_at_trx_commit = 2

Discover more from Juzhax Technology

Subscribe now to keep reading and get access to the full archive.

Continue reading