Помощь Поделитесь опытом настройки my.cnf для Престы?

Служба поддержи - подкорректировала файл конфигурации и он запустился - выглядит теперь он так:
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# Для просмотра ссылки Войди или Зарегистрируйся

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0

[mysqld]
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /var/tmpfs
lc-messages-dir = /usr/share/mysql
skip-external-locking
bind-address = 127.0.0.1
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#
# * Fine Tuning
#
key_buffer_size = 16M
#key_buffer = 1024M
max_join_size = 1000000
max_allowed_packet = 256M
thread_stack = 512K
thread_cache_size = 50
#table_open_cache = 6000
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
#max_connections = 100
table_cache = 60000
thread_concurrency = 5
#
# * Query Cache Configuration
#

query_cache_limit = 64M
query_cache_size = 64M

table_cache = 512
sort_buffer = 8M
myisam_sort_buffer_size = 256M
tmp_table_size = 256M
max_heap_table_size = 128M

read_buffer_size = 16M
read_rnd_buffer_size = 4M

sort_buffer_size = 2M
join_buffer_size = 18M
open_files_limit = 4096
table_open_cache = 4096
max_sort_length = 512

#
# * 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.
log_error = /var/log/mysql/mysql.err
#
# Here you can see queries with especially long duration
log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 3
#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
#
# 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
innodb_flush_method = O_DIRECT
innodb_log_buffer_size = 8M
#innodb-log-file-size = 256M
innodb_log_files_in_group = 2
innodb_flush_log_at_trx_commit = 2
innodb_file_per_table = 1
innodb_buffer_pool_size = 2G
innodb_additional_mem_pool_size = 20M



[mysqldump]
quick
quote-names
max_allowed_packet = 256M

[mysql]
#no-auto-rehash # faster start of mysql but no tab completition

[isamchk]
key_buffer = 32M

#
# * 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/
 
Что является результатом в Mysqltuner для этой конфигурации?
 
Да блин, как Вы не понимаете что для каждого сервера нужны свои настройки...

Я просто спросил, как сервер работает с этой новой конфигурации, и новые результаты из Mysqltuner...
 
Что является результатом в Mysqltuner для этой конфигурации?
а смысл его сейчас запускать? неделя наверное должна пройти не меньше прежде чем отработается нормально кеш - а сейчас то какие результаты можно увидеть?
Вот то что выдает сейчас:

2016-02-20 14:02:24 (1.17 MB/s) - `mysqltuner.pl' saved [111155/111155]

[OK] Logged in using credentials from debian maintenance account.
>> MySQLTuner 1.6.4 - Major Hayden <major@mhtx.net>
>> Bug reports, feature requests, and downloads at Для просмотра ссылки Войди или Зарегистрируйся
>> Run with '--help' for additional options and output filtering
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.46-0+deb7u1-log
[OK] Operating on 64-bit architecture

-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 184M (Tables: 183)
[--] Data in InnoDB tables: 368M (Tables: 509)
[!!] Total fragmented tables: 509

-------- Security Recommendations -------------------------------------------
[OK] There are no anonymous accounts for any database users
[OK] All database users have passwords assigned

-------- CVE Security Recommendations ---------------------------------------
[--] Skipped due to --cvefile option undefined

-------- Performance Metrics -------------------------------------------------
[--] Up for: 1d 5h 22m 41s (4M q [37.967 qps], 41K conn, TX: 4B, RX: 895M)
[--] Reads / Writes: 99% / 1%
[--] Binary logging is disabled
[--] Total buffers: 2.2G global + 40.5M per thread (151 max threads)
[OK] Maximum reached memory usage: 3.0G (37.27% of installed RAM)
[!!] Maximum possible memory usage: 8.2G (102.53% of installed RAM)
[OK] Slow queries: 0% (210/4M)
[OK] Highest usage of available connections: 12% (19/151)
[OK] Aborted connections: 0.00% (0/41862)
[OK] Query cache efficiency: 57.0% (2M cached / 3M selects)
[!!] Query cache prunes per day: 725195
[OK] Sorts requiring temporary tables: 0% (126 temp sorts / 719K sorts)
[OK] Temporary tables created on disk: 5% (6K on disk / 111K total)
[OK] Thread cache hit rate: 99% (19 created / 41K connections)
[OK] Table cache hit rate: 99% (899 open / 906 opened)
[OK] Open file limit used: 4% (415/8K)
[OK] Table locks acquired immediately: 100% (2M immediate / 2M locks)

-------- MyISAM Metrics ------------------------------------------------------
[!!] Key buffer used: 18.2% (3M used / 16M cache)
[OK] Key buffer size / total MyISAM indexes: 16.0M/78.3M
[OK] Read Key buffer hit rate: 100.0% (17M cached / 0 reads)
[OK] Write Key buffer hit rate: 100.0% (4M cached / 0 writes)

-------- InnoDB Metrics ------------------------------------------------------
[--] InnoDB is enabled.
[OK] InnoDB buffer pool / data size: 2.0G/368.7M
[!!] InnoDB buffer pool instances: 1
[!!] InnoDB Used buffer: 16.07% (21059 used/ 131071 total)
[OK] InnoDB Read buffer efficiency: 100.00% (2587101161 hits/ 2587117295 total)
[!!] InnoDB Write buffer efficiency: 0.00% (0 hits/ 1 total)
[OK] InnoDB log waits: 0.00% (0 waits / 8115 writes)

-------- ThreadPool Metrics --------------------------------------------------
[--] ThreadPool stat is disabled.

-------- AriaDB Metrics ------------------------------------------------------
[--] AriaDB is disabled.

-------- TokuDB Metrics ------------------------------------------------------
[--] TokuDB is disabled.

-------- Galera Metrics ------------------------------------------------------
[--] Galera is disabled.

-------- Replication Metrics -------------------------------------------------
[--] No replication slave(s) for this server.
[--] This is a standalone server..

-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Restrict Host for user@% to user@SpecificDNSorIp
Reduce your overall MySQL memory footprint for system stability
Variables to adjust:
*** MySQL's maximum memory usage is dangerously high ***
*** Add RAM before increasing MySQL buffer variables ***
query_cache_size (> 64M)
innodb_buffer_pool_instances(=2)
 
А теперь что касается визуальных наблюдений!
после перевода части таблиц из MyISAM в InnoDB - тоесть теперь везде стоит InnoDB
стало заметно "тормознее" притом не вооруженным глазом (зря это сделал - работало и не фиг было туда лезть - притом работало довольно шустро кроме каких то непонятных затыков (возможно из-за чего то другого) периодически возникавших по непонятным причинам)
и теперь видна ОГРОМНАЯ разница при включенном мемкешед или выключенным!
Если раньше разница была практически не видна то теперь если выключить мемкеш - начинаются такие тормоза - пипец просто
Вывод: база была хорошо закеширована и без самого мемкешед поэтому и не особо была видна разница
 
подкорректировал файл - теперь выдает вот так:
[--] Data in MyISAM tables: 184M (Tables: 183)
[--] Data in InnoDB tables: 380M (Tables: 509)
[!!] Total fragmented tables: 509

-------- Security Recommendations -------------------------------------------
[OK] There are no anonymous accounts for any database users
[OK] All database users have passwords assigned

-------- CVE Security Recommendations ---------------------------------------
[--] Skipped due to --cvefile option undefined

-------- Performance Metrics -------------------------------------------------
[--] Up for: 4h 30m 48s (587K q [36.137 qps], 5K conn, TX: 683M, RX: 142M)
[--] Reads / Writes: 95% / 5%
[--] Binary logging is disabled
[--] Total buffers: 2.3G global + 40.5M per thread (151 max threads)
[OK] Maximum reached memory usage: 3.5G (43.99% of installed RAM)
[!!] Maximum possible memory usage: 8.3G (103.31% of installed RAM)
[OK] Slow queries: 0% (50/587K)
[OK] Highest usage of available connections: 20% (31/151)
[OK] Aborted connections: 0.00% (0/5988)
[OK] Query cache efficiency: 58.4% (317K cached / 543K selects)
[!!] Query cache prunes per day: 181228
[OK] Sorts requiring temporary tables: 0% (61 temp sorts / 100K sorts)
[OK] Temporary tables created on disk: 3% (830 on disk / 22K total)
[OK] Thread cache hit rate: 99% (31 created / 5K connections)
[OK] Table cache hit rate: 99% (913 open / 920 opened)
[OK] Open file limit used: 4% (415/8K)
[OK] Table locks acquired immediately: 100% (351K immediate / 351K locks)

-------- MyISAM Metrics ------------------------------------------------------
[!!] Key buffer used: 18.2% (3M used / 16M cache)
[OK] Key buffer size / total MyISAM indexes: 16.0M/78.3M
[OK] Read Key buffer hit rate: 100.0% (4M cached / 0 reads)
[OK] Write Key buffer hit rate: 100.0% (1M cached / 0 writes)

-------- InnoDB Metrics ------------------------------------------------------
[--] InnoDB is enabled.
[OK] InnoDB buffer pool / data size: 2.0G/380.7M
[OK] InnoDB buffer pool instances: 2
[!!] InnoDB Used buffer: 13.36% (17512 used/ 131070 total)
[OK] InnoDB Read buffer efficiency: 100.00% (715475473 hits/ 715487712 total)
[!!] InnoDB Write buffer efficiency: 0.00% (0 hits/ 1 total)
[OK] InnoDB log waits: 0.00% (0 waits / 11531 writes)

-------- ThreadPool Metrics --------------------------------------------------
[--] ThreadPool stat is disabled.

-------- AriaDB Metrics ------------------------------------------------------
[--] AriaDB is disabled.

-------- TokuDB Metrics ------------------------------------------------------
[--] TokuDB is disabled.

-------- Galera Metrics ------------------------------------------------------
[--] Galera is disabled.

-------- Replication Metrics -------------------------------------------------
[--] No replication slave(s) for this server.
[--] This is a standalone server..

-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Restrict Host for user@% to user@SpecificDNSorIp
MySQL started within last 24 hours - recommendations may be inaccurate
Reduce your overall MySQL memory footprint for system stability
Increasing the query_cache size over 128M may reduce performance
Variables to adjust:
*** MySQL's maximum memory usage is dangerously high ***
*** Add RAM before increasing MySQL buffer variables ***
query_cache_size (> 128M) [see warning above]
 
Последнее редактирование:
меня больше всего в этом вопросе настораживает вот этот параметр - получается кеш не работает?:
[!!] InnoDB Write buffer efficiency: 0.00% (0 hits/ 1 total)
 
меня больше всего в этом вопросе настораживает вот этот параметр - получается кеш не работает?:
[!!] InnoDB Write buffer efficiency: 0.00% (0 hits/ 1 total)
Не беспокойтесь о том, что это просто фальшивка
 
Назад
Сверху