character-set-server=utf8 # collation-server=utf8_general_ci init-connect="SET NAMES utf8"
bind-address=localhost # Отключаем определение доменного имени для IP-адресов skip-name-resolve # Максимальное количество соединений max_connections = 250 # Отключаем использованием symbolic-links symbolic-links=0 # Таймауты interactive_timeout=60 wait_timeout=60
ulimit -n
* hard nofile 35000 * soft nofile 35000 root hard nofile 35000 root soft nofile 35000
ulimit -n 35000
ulimit -Sn
ulimit -Hn
innodb_open_files 2048 open_files_limit 35000
key_buffer_size = 64M sort_buffer_size = 32M
table_open_cache = 2048 query_cache_limit = 2M query_cache_size = 128M query_cache_type = 1 thread_cache_size = 16 max_heap_table_size = 128M tmp_table_size = 128M
df -h
none /dev/shm tmpfs defaults,size=1G 0 0
mount -o remount /dev/shm
tmpdir = /dev/shm
/run/mysql/* rw,
service apparmor restart
innodb_file_per_table = 1 table_open_cache = 4096 innodb_open_files = 4096
key_buffer_size = 32M max_allowed_packet = 1M sort_buffer_size = 32M # query_cache_limit = 1M # query_cache_size = 0 # query_cache_type = 1 thread_cache_size = 32 max_heap_table_size = 128M tmp_table_size = 128M
innodb_buffer_pool_size = 10G innodb_buffer_pool_instances = 4
innodb_log_file_size = 256M innodb_log_buffer_size = 32M
innodb_flush_log_at_trx_commit = 0
innodb_read_io_threads = 4 innodb_write_io_threads = 4 innodb_thread_concurrency = 32
innodb_stats_on_metadata = 0
performance_schema = OFF skip-log-bin sync_binlog = 0
service mysqld restart
SELECT @@innodb_buffer_pool_chunk_size/1024/1024
SET GLOBAL innodb_buffer_pool_size = (SELECT @@innodb_buffer_pool_chunk_size) * 125