BMS-HOSxP Community

HOSxP => MySQL => ข้อความที่เริ่มโดย: snhos ที่ กุมภาพันธ์ 28, 2018, 13:15:33 PM

หัวข้อ: ขอความช่วยเหลือ config my.cnf mariadb 10.1.14 engine tokudb
เริ่มหัวข้อโดย: snhos ที่ กุมภาพันธ์ 28, 2018, 13:15:33 PM

ขึ้น server ใหม่ โดย tool ของ BMS นะครับ ใช้ mariadb 10.1.14 engines tokudb
ใช้ my.cnf ที่ให้มากับ ตัว app นะครับ
[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=MyISAM
key_buffer = 1506M
max_allowed_packet = 512M
table_open_cache = 3000
thread_concurrency = 8
thread_cache_size = 32
tmp_table_size = 64M
max_heap_table_size = 964M
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_log_files_in_group=2
innodb_log_group_home_dir = /var/lib/mysql/
innodb_buffer_pool_size = 753M
query_cache_size = 0
query_cache_type = 0
innodb_thread_concurrency = 0
innodb_log_file_size = 256M
innodb_log_buffer_size = 32M
innodb_flush_log_at_trx_commit = 2
innodb_doublewrite=0
innodb_support_xa = 0
innodb_open_files = 3000
innodb_locks_unsafe_for_binlog=1
innodb_lock_wait_timeout=150
innodb_stats_on_metadata=0
event_scheduler=1
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 = 4M
read_buffer_size = 4M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 128M
join_buffer_size = 8M
concurrent_insert = 2
max_connections=1000
table-open-cache-instances = 32
metadata_locks_hash_instances = 256
plugin-load=ha_tokudb
tokudb_commit_sync = 0
tokudb_fsync_log_period = 1000
tokudb_support_xa = 0
tokudb_fanout = 128
open_files_limit=100000
[mysqldump]
quick
max_allowed_packet = 512M
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
[mysqld_safe]
malloc-lib = /usr/lib64/libjemalloc.so.1
thp-setting=never
*------------------------------------------------*
server lenovo x3550 m5 8869
ram 16gb
cpu intal(5) xeon(R) E5-2620 V4
ขอรบกวนอาจารย์ทุกท่านด้วยนะครับ ขอบพระคุณมากครับ
หัวข้อ: Re: ขอความช่วยเหลือ config my.cnf mariadb 10.1.14 engine tokudb
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ พฤษภาคม 19, 2018, 15:06:42 PM

ขึ้น server ใหม่ โดย tool ของ BMS นะครับ ใช้ mariadb 10.1.14 engines tokudb

engines tokudb
ใช้ ดีอัพ 1 ปี ใช้เวลา 5นาที ขนาดฐาน backup zip 20G
หัวข้อ: Re: ขอความช่วยเหลือ config my.cnf mariadb 10.1.14 engine tokudb
เริ่มหัวข้อโดย: snhos ที่ มิถุนายน 02, 2018, 06:56:23 AM
อาจารย์ บอย ครับ รบกวนขอ my.cnf mariadb 10.1.14 engine tokudb centos 7 แรม 16 gb
server lenovo x3550 m5 8869
ram 16gb
cpu intal(5) xeon(R) E5-2620 V4

ได้ไหมครับ
เพราะว่า มี table lock นะครับ และ บางครั้ง user ก็จะแจ้งว่า ระบบค้าง หรือ ช้า นะครับ
ขอบพระคุณมากครับ