BMS-HOSxP Community

HOSxP => MySQL => ข้อความที่เริ่มโดย: satid ที่ กรกฎาคม 17, 2019, 13:45:32 PM

หัวข้อ: ขอความช่วยเหลือ config my.cnf mariadb 10.1.19
เริ่มหัวข้อโดย: satid ที่ กรกฎาคม 17, 2019, 13:45:32 PM
รบกวนปรับแต่งค่าให้หน่อนยครับ
Ram 32G
Centos7
Maria 10.1.19

[client]
port= 3306
socket= /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
port= 3306
socket= /var/lib/mysql/mysql.sock
skip-external-locking
default_storage_engine=InnoDB
key_buffer = 1024M
max_allowed_packet = 1024M
table_open_cache = 3400
thread_concurrency = 8
thread_cache_size = 32
tmp_table_size = 32768M
max_heap_table_size = 1024M
character-set-server=tis620
skip-name-resolve
innodb_file_per_table
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:100M:autoextend
innodb_additional_mem_pool_size=20M
innodb_log_files_in_group=2
innodb_log_group_home_dir = /var/lib/mysql/
innodb_buffer_pool_size = 26624M
query_cache_size= 512M
query_cache_type=2
innodb_thread_concurrency = 0
innodb_log_file_size = 3584M
innodb_log_buffer_size = 448M
innodb_flush_log_at_trx_commit = 2
innodb_doublewrite=0
innodb_support_xa = 0
innodb_open_files = 3400
innodb_locks_unsafe_for_binlog=1
innodb_lock_wait_timeout=100
innodb_stats_on_metadata=0
event_scheduler=0
log_error=/var/lib/mysql/bms_mysql.err
net_write_timeout=600
net_read_timeout=600
connect_timeout=60
sql_mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
myisam-recover-options=FORCE,BACKUP
innodb_file_format = Barracuda
innodb_flush_method=O_DIRECT
innodb-defragment=1
innodb_defragment_n_pages = 32
innodb_defragment_fill_factor = 0.95
sort_buffer_size = 3M
read_buffer_size = 3M
read_rnd_buffer_size = 3M
myisam_sort_buffer_size = 128M
join_buffer_size = 2M
concurrent_insert = 2
max_connections=500
table-open-cache-instances = 32
metadata_locks_hash_instances = 256
open_files_limit=100000
lower_case_table_names=1
[mysqldump]
quick
max_allowed_packet = 1024M
allow-keywords
[mysql]
no-auto-rehash
default-character-set=tis620
[isamchk]
key_buffer = 512M
sort_buffer_size = 512M
read_buffer = 4M
write_buffer = 4M
[myisamchk]
key_buffer = 512M
sort_buffer_size = 512M
read_buffer = 4M
write_buffer = 4M
[mysqlhotcopy]
interactive-timeout
[mysqld_safe]
malloc-lib = /usr/lib64/libjemalloc.so.1

หัวข้อ: Re: ขอความช่วยเหลือ config my.cnf mariadb 10.1.19
เริ่มหัวข้อโดย: satid ที่ กรกฎาคม 18, 2019, 08:32:44 AM
มาอัพเดทครับ ตอนเปลี่ยนค่าล่าสุด เหมือนระบบยังไม่เปลี่ยนค่า หลังจาก service mysql restartครับ  มาทดสอบเช้านี้คนใช้งานเต็มที่ กรอฟของระบบดูดีขึ้นละครับ
หัวข้อ: Re: ขอความช่วยเหลือ config my.cnf mariadb 10.1.19
เริ่มหัวข้อโดย: pomtiger ที่ สิงหาคม 15, 2019, 09:16:55 AM
ปรับอะไรบ้างครับ