รบกวนดู config my.cnf ช่วยผมหน่อยครับ
server dell r320
ติดตั้ง mysql ผ่าน BMSxTraBackupGUI
Centos 7
Server version: 5.5.62-38.14-log Percona Server (GPL), Release 38.14, Revision 7e0e1cc
Brand : DELL
Model : PowerEdge R320 E5-2407v2
Processor : Intel Xeon E5-2407 2.20GHz, 4-Core, 10MB Cache, 80W
Main Memory : 8*6 = 48 GB
Storage : 1TB 7.2K RPM Near Line, 6Gbps SAS 3.5" Hot Plug
Optical Disk Drive : 8X DVD+/-RW Combo Drive
Network : Lan port 1Gb LOM
Power Supply : Dual Hot Plug Power Supplies 350W
RAID : PERC H310 Integrated RAID Controller, Mini-Type
การ query ต่างๆช้ามากๆครับ
[xtrabackup]
datadir=/var/lib/mysql
[client]
port= 3306
socket= /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
large-pages
table_open_cache=4000
table_definition_cache=4000
port= 3306
datadir=/var/lib/mysql
tmpdir=/tmp
socket= /var/lib/mysql/mysql.sock
skip-external-locking
default_storage_engine=InnoDB
key_buffer_size = 4809M
max_allowed_packet = 128M
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 1M
myisam_sort_buffer_size = 128M
thread_cache_size = 8
query_cache_size = 64M
query_cache_type = 2
character-set-server=tis620
skip-name-resolve
innodb_file_per_table
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
max_heap_table_size = 2404M
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:100M:autoextend
innodb_log_files_in_group=2
innodb_log_group_home_dir = /var/lib/mysql/
innodb_buffer_pool_size = 24044M
innodb_read_io_threads=8
innodb_write_io_threads=8
innodb_io_capacity=500
innodb_stats_on_metadata=0
innodb_thread_concurrency = 0
innodb_log_file_size = 4G
innodb_log_buffer_size = 32M
innodb_flush_log_at_trx_commit = 2
innodb_lock_wait_timeout = 50
innodb_doublewrite=0
innodb_open_files = 30000
slave_compressed_protocol=1
innodb_flush_method=O_DIRECT
join_buffer_size = 2M
concurrent_insert = 2
max_connections=200
open_files_limit=100000
server_id = 1
binlog_format=ROW
log-bin=bin.log
log-bin-index=bin-log.index
max_binlog_size=100M
sync_binlog=1
log_error = /var/log/mysqld.log
bind-address = 0.0.0.0
slave-skip-errors=all
log_bin_trust_function_creators=1
expire_logs_days = 14
innodb_file_format = Barracuda
innodb_file_format_max = Barracuda
lower_case_table_names=1
[mysqldump]
quick
max_allowed_packet = 16M
allow-keywords
[mysql]
no-auto-rehash
default-character-set=tis620
[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
https://uppic.club/images/2022/03/07/Screenshot_585a7cdb0428613f7.png