I
I
Igor Balyas2015-10-20 13:48:54
MySQL
Igor Balyas, 2015-10-20 13:48:54

How to reduce load on mysql?

How to reduce load on mysql?
1. show full processlist - 10-12 requests maximum ( Sorting result , Waiting for table level lock )
2. slog is empty, there are no such requests
3. 150-200 people work in the system
4. records in the database - 600k

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
Fixid, 2015-10-20
@ihorbalias

Upgrade to MariaDB 10, it's a fully compatible fork. I have been working in production for 2 years. On the default config, LA fell from 7 to 0.4.
The most important thing is to switch from InnoDB to Xtradb, from MyISAM to ARIA. All are fully compatible

M
Melkij, 2015-10-20
@melkij

Waiting for table level lock

table level? Is there myisam instead of storage engine?
Why is there an empty slow query log:
dev.mysql.com/doc/refman/5.6/en/slow-query-log.html
The time to acquire the initial locks is not counted as execution time.

R
Ruslan Fedoseev, 2015-10-20
@martin74ua

optimize settings - mysqltuner.pl, for example, run
if there are constantly requests in the queue - it means that it does not have time for something;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question