I have big problem. Finally i traced our next bottleneck which is HDD. First the prove, then problem:
Prove
not from peak load iostat -x 1 10avg-cpu: %user %nice %system %iowait %steal %idle 2.53 0.00 1.26 48.74 0.00 47.47Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %utilsda 0.00 40.00 70.00 263.00 784.00 2504.00 9.87 35.64 114.39 3.00 100.00sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00avg-cpu: %user %nice %system %iowait %steal %idle 3.29 0.00 2.03 32.91 0.00 61.77Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %utilsda 0.99 3.96 119.80 0.00 1275.25 0.00 10.64 3.82 25.17 8.19 98.12sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00avg-cpu: %user %nice %system %iowait %steal %idle 4.05 0.00 2.28 36.71 0.00 56.96Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %utilsda 0.00 0.00 95.00 2.00 1136.00 48.00 12.21 3.34 42.62 10.23 99.20sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00avg-cpu: %user %nice %system %iowait %steal %idle 4.58 0.00 1.53 41.73 0.00 52.16
CPU waiting ~40% of its time on waiting for disc, disk utilization is 100%
am i right its hdd saturation?
Cpu0 : 7.1%us, 2.4%sy, 0.0%ni, 38.3%id, 50.5%wa, 0.0%hi, 1.7%si, 0.0%stCpu1 : 2.4%us, 1.0%sy, 0.0%ni, 3.1%id, 93.2%wa, 0.0%hi, 0.3%si, 0.0%stCpu2 : 0.7%us, 1.0%sy, 0.0%ni, 76.1%id, 22.2%wa, 0.0%hi, 0.0%si, 0.0%stCpu3 : 1.0%us, 0.3%sy, 0.0%ni, 84.7%id, 13.9%wa, 0.0%hi, 0.0%si, 0.0%st
Solution
With solution we have problem, our DC not allow third HDD on server (then we would made from non used one (sdb) and new one RAID 0 (low budget)).
But we cannot, as our DC is not elastic with hardware changes.
So what can we do, i mean, we have non used sdb, maybe there is some good techniques to split mysql data to two hdd’s without raid?
My idea: move some tables from mysql data folder to sdb and made symbolic links to where they was before (problem is if mysql treat symbolic links like files).
We could also move binlog from mysql sda to sdb.
Any other ideas?