I
I
Ivan Ivanov2017-05-27 21:21:40
MySQL
Ivan Ivanov, 2017-05-27 21:21:40

Will the load decrease if I move the table to another ssd?

There is a server that has an ssd disk with a website and mysql on the same server, the load on ssd during peak hours is close to 100% (looked at atop). If you add another ssd and put some tables (inndob) on it, this, in theory, should unload the first ssd? Are there any pitfalls of such a solution? This is still much cheaper than making a separate server for mysql.
Addition:
According to atop, I see that the load on ssd comes almost exclusively from mysql, that is, it turns out that if you take one additional server purely from mysql, then this entire load will simply go to the new server and will also load ssd there. Am I talking right?
Addendum 2:
Output of atop -r -D for the last 10 minutes is here
The database is constantly writing, deleting, updating data, a lot, so I think the disk is loaded, if you look at the show process list in mysql, then queries that take more than a second are very rare. There are several tables with tens/hundreds of millions of rows. Removed the superfluous indexes already.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xmoonlight, 2017-05-27
@xmoonlight

it is better to put Redis.

B
Boris Korobkov, 2017-05-27
@BorisKorobkov

This is still much cheaper than making a separate server for mysql.

Hm. How many visitors are on the site?
If 100 people a day and they create a 100% load on disk, then the application architecture and sql queries suck. Throw out all the shitty code and hire a normal programmer to write it right from scratch.
If there are 1000 people a day or more, and at the same time there is not even 300 rubles / month for VPS - hire a normal marketer and think about how you can monetize the site.

N
Nikolay, 2017-05-27
@iNickolay

Alternatively, if power permits, mysql can be moved to RAM.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question