P
P
Puma Thailand2012-04-25 11:25:57
MySQL
Puma Thailand, 2012-04-25 11:25:57

What optimizations do you use for mysql with a lot of databases?

For example mysql with 5-10 thousand databases.
Now mysql version 5.1 does it make sense to migrate to 5.5, will it add performance?
The databases are quite small, but there are a lot of them and there are about 20 tables inside each.
There is a tint when restarting and sometimes when executing the show databases command;
Do not suggest changing the data storage method, there is no point in doing sharding yet, since the load is not large.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alex Bunin, 2012-04-25
@azxc

If the databases are not related to each other, then I would just split them into several independent mysql processes. They can also be restarted one by one independently.
The only possible problem is that the software that connects to mysql must know about it (different socket files, ports, IP).

@
@mgyk, 2012-04-25
_

Try to increase
table_cache a lot
More here
dev.mysql.com/doc/refman/5.0/en/table-cache.html

S
shagguboy, 2012-04-26
@shagguboy

>whether migration on 5.5
has sense. they did a lot of stuff there. still it makes sense to look at Percona server.

P
Puma Thailand, 2012-04-26
@opium

Partially helped to mount the system with the options
noatime,nodiratime,async,commit=1,data=journal
No other effective optimizations yet found

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question