ผมพึ่ง up hosxp เป็น 3.57.9.9 เมื่อวันที่ 14 ต.ค. 57 วันนี้ มี clinic Dm ระบบช้ามาก
mysql Percona 5.5.33 รบกวนช่วยดู My.cnf หน่อยคับว่าควรปรับอะไรเพ่ิม
Seerver IBM Xeon(R) E3-12200 V2 3.10 GHz
็HD 500 GB
Ram 16 GB
เครื่องใช้งานประมาณ 30 เครื่องคับ
**********my.cnf********************
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
#character-set-server=tis620
[mysqld]
default_storage_engine=INNODB
#default_table_type = INNODB
character-set-server=tis620
character-set-client=tis620
init_connect = 'SET collation_connection=tis620_thai_ci'
init_connect = 'SET NAMES tis620'
port = 3306
socket = /var/lib/mysql/mysql.sock
#skip-external-locking
skip-federated
big-tables
back_log = 50
key_buffer = 256M
max_allowed_packet = 1024M
binlog_cache_size = 1M
table_open_cache = 8000
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 1M
myisam_sort_buffer_size = 512M
myisam_max_sort_file_size = 10G
myisam_repair_threads = 1
myisam_recover
thread_cache_size = 16
query_cache_type = 2
query_cache_size = 1024M
thread_concurrency = 8
low_priority_updates=1
skip-name-resolve
skip-character-set-client-handshake
max_connections = 300
max_connect_errors = 10
##########
##query_cache_size (>= 8M)
##tmp_table_size (> 32M)
#max_heap_table_size (> 16M)
#thread_cache_size (start at 4)
#table_cache=1024
table_open_cache=3200
ft_min_word_len = 4
thread_stack = 256K
transaction_isolation = REPEATABLE-READ
tmp_table_size = 32M
log-bin = mysql-bin
log_bin_trust_function_creators = 1
binlog_format = mixed
slow_query_log
long_query_time = 2
concurrent_insert = 2
################## InnoDB #######################
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:192M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
#innodb_buffer_pool_size 80% for Ram
innodb_buffer_pool_size = 12G
innodb_buffer_pool_instances = 1
innodb_additional_mem_pool_size = 20M
innodb_log_file_size = 1G
#innodb_file_format=Barracuda
innodb_file_format=Antelope
innodb_file_per_table=1
innodb_log_buffer_size = 8M
innodb_log_files_in_group = 3
innodb_flush_log_at_trx_commit = 2
innodb_fast_shutdown = 0
innodb_lock_wait_timeout = 120
innodb_thread_concurrency = 0
innodb_flush_method=O_DIRECT
innodb_checksums=0
innodb_doublewrite=0
innodb_file_io_threads = 4
innodb_support_xa=0
innodb_max_dirty_pages_pct=90
innodb_open_files = 3500
innodb_locks_unsafe_for_binlog=1
join_buffer_size = 2M
concurrent_insert = 2
max_heap_table_size = 1024M
event_scheduler = 0
#***Percona5.1&5.5***
innodb_read_ahead = none
innodb_ibuf_active_contract = 1
innodb_adaptive_flushing = 0
#***Percona5.1&5.5***
############# Percona XtraDB ############
innodb_io_capacity = 10000
innodb_write_io_threads = 16
innodb_read_io_threads = 16
[mysqldump]
quick
max_allowed_packet = 2G
allow-keywords
[mysql]
no-auto-rehash
default-character-set=tis620
[isamchk]
key_buffer = 512M
sort_buffer_size = 512M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 600M
sort_buffer_size = 512M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
[mysqld_safe]
open-files-limit = 10000
################## End MySQL-Config i #####################
[xtrabackup]
datadir=/var/lib/mysql/