Нагрузка постоянна уже 10 часов, выросла сразу после переноса двух больших сайтов и не падает совсем.
http://s020.radikal.ru/i707/1506/d0/a165f3f7545c.jpg...
Полные тексты Id User Host db Command Time State Info
Завершить Завершить 7764 root localhost mysql Sleep 704 NULL
Завершить Завершить 59550 detsad localhost detsad Query 0 Sending data SELECT COUNT(id) as total FROM jos_jcomments WHERE...
Завершить Завершить 59551 med2 localhost med2 Query 1 Sending data SELECT COUNT(id) as total FROM jos_jcomments WHERE...
Завершить Завершить 59552 med2 localhost med2 Query 1 Sending data SELECT COUNT(id) as total FROM jos_jcomments WHERE...
Завершить Завершить 59553 med2 localhost med2 Query 0 Sending data SELECT COUNT(id) as total FROM jos_jcomments WHERE...
Завершить Завершить 59556 med2 localhost med2 Query 1 Sending data SELECT COUNT(id) as total FROM jos_jcomments WHERE...
Завершить Завершить 59558 med2 localhost med2 Query 1 Sending data SELECT COUNT(id) as total FROM jos_jcomments WHERE...
Завершить Завершить 59560 med2 localhost med2 Query 1 Sending data SELECT COUNT(id) as total FROM jos_jcomments WHERE...
Завершить Завершить 59564 med2 localhost med2 Sleep 9 NULL
Завершить Завершить 59565 med2 localhost med2 Query 1 Sending data SELECT COUNT(id) as total FROM jos_jcomments WHERE...
Завершить Завершить 59568 med2 localhost med2 Sleep 9 NULL
Завершить Завершить 59574 med2 localhost med2 Sleep 7 NULL
Завершить Завершить 59576 med2 localhost med2 Sleep 6 NULL
Завершить Завершить 59580 detsad localhost detsad Sleep 5 NULL
Завершить Завершить 59582 med2 localhost med2 Sleep 4 NULL
Завершить Завершить 59586 school localhost school Sleep 0 NULL
Завершить Завершить 59587 detsad localhost detsad Sleep 2 NULL
Завершить Завершить 59591 med2 localhost med2 Query 0 Sending data SELECT COUNT(id) as total FROM jos_jcomments WHERE...
Завершить Завершить 59592 med2 localhost med2 Query 1 Sending data SELECT COUNT(id) as total FROM jos_jcomments WHERE...
Завершить Завершить 59593 detsad localhost detsad Sleep 0 NULL
Завершить Завершить 59594 school localhost school Sleep 1 NULL
Завершить Завершить 59598 school localhost school Sleep 1 NULL
Завершить Завершить 59600 school localhost school Sleep 1 NULL
Завершить Завершить 59601 detsad localhost detsad Sleep 1 NULL
Завершить Завершить 59603 detsad localhost detsad Sleep 1 NULL
Завершить Завершить 59604 school localhost school Sleep 0 NULL
Завершить Завершить 59606 school localhost school Query 0 Copying to tmp table SELECT * FROM top_schools WHERE country='rus' AND ...
Я так понял кеш включен по умолчанию, query_cache_type=1 не обязательна
Не понятно главное - как два в принципе одинаковых сервера - могут так по разному переносить нагрузку.
Значит дело в настройках
Вот конфиг со старого сервера
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld_safe]
nice = 0
[mysqld]
#
# * Basic Settings
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
low-priority-updates
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
skip-networking
# * Fine Tuning
key_buffer = 1024M
max_allowed_packet = 16M
tmp_table_size = 64M
max_heap_table_size = 64M
sort_buffer_size = 32M
join_buffer_size = 32M
thread_stack = 192K
thread_cache_size = 32
thread_concurrency = 32
read_buffer_size = 256K
read_rnd_buffer_size = 32M
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
max_connections = 256
table_open_cache = 4096
table_definition_cache = 4096
# * Query Cache Configuration
#query_cache_limit = 1M
query_cache_size = 256M
# * Logging and Replication
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file = /var/log/mysql/mysql.log
#general_log = 1
# Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
# Here you can see queries with especially long duration
log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 1
#log-queries-not-using-indexes
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
# other settings you may need to change.
#server-id = 1
#log_bin = /var/log/mysql/mysql-bin.log
#expire_logs_days = 10
#max_binlog_size = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
# * InnoDB
#skip-innodb
#=== Отключение InnoDB ===
#default-storage-engine = MyISAM
#innodb=OFF
#=========================
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
# * Security Features
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
[mysqldump]
quick
quote-names
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
[isamchk]
key_buffer = 16M
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
!includedir /etc/mysql/conf.d/
все MyISAM
#skip-networking
key_buffer_size = 256M
thread_cache_size = 8
thread_concurrency = 8
myisam-recover-options = BACKUP
table_open_cache = 2048
table_definition_cache = 1024
#query_cache_size = 256M
query_cache_size = 64M
log-error=/var/log/mysqld.log
slow-query-log = 1
slow-query-log-file = /var/log/mysql-slow.log
long_query_time = 3
!includedir /etc/mysql/conf.d/ ---------- Добавлено 12.06.2015 в 10:53 ---------- Самый посещаемый сайт, после переноса которого и выросла нагрузка - имеет базу размером 734.814 МБ
поиск ГРЕПОМ по старому IP уже делал - в скриптах нет ничего, направленного на старый
Вот немного мунина. Обычно в будни запросов у меня до 500 в сек. Но щас выходные - траф на минимуме
Смарт дисков Админ смотрел 1 делом, сказал все ок. Да они были чуть медленее чем старых, но не критично
http://s011.radikal.ru/i317/1506/b9/1ce3550efda6.jpg