ผู้เขียน หัวข้อ: รบกวนช่วยปรับ my.cnf หน่อยครับ  (อ่าน 2442 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ tigton

  • Jr. Member
  • **
  • กระทู้: 68
  • Respect: 0
    • ดูรายละเอียด
    • www.nongsaeng.com
รบกวนช่วยปรับ my.cnf หน่อยครับ
« เมื่อ: ตุลาคม 16, 2014, 12:32:50 PM »
0
ผมพึ่ง  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/
Mr.samart onsri  Nongsaeng Hospital  Saraburi <br>เริ่มใช้ HOSxP 16 กุมภาพันธ์ 2552  HOSxP V.3.53.5.14 <br>Server OS Linux CentOS 6.3 (64 bit)  Percona 5.5.33<br>IBM X3100 M4 Intel Xeon  HDD 500 GB RAM 16 GB <br>http://www.Nongsaeng.com

ออฟไลน์ tigton

  • Jr. Member
  • **
  • กระทู้: 68
  • Respect: 0
    • ดูรายละเอียด
    • www.nongsaeng.com
Re: รบกวนช่วยปรับ my.cnf หน่อยครับ
« ตอบกลับ #1 เมื่อ: ตุลาคม 17, 2014, 23:57:10 PM »
0
รบกวนหน่อยคับ
Mr.samart onsri  Nongsaeng Hospital  Saraburi <br>เริ่มใช้ HOSxP 16 กุมภาพันธ์ 2552  HOSxP V.3.53.5.14 <br>Server OS Linux CentOS 6.3 (64 bit)  Percona 5.5.33<br>IBM X3100 M4 Intel Xeon  HDD 500 GB RAM 16 GB <br>http://www.Nongsaeng.com

ออฟไลน์ golf_win

  • Hero Member
  • *****
  • กระทู้: 3,481
  • Respect: +112
    • ดูรายละเอียด
Re: รบกวนช่วยปรับ my.cnf หน่อยครับ
« ตอบกลับ #2 เมื่อ: ตุลาคม 18, 2014, 09:46:31 AM »
0
table_open_cache = 8000
table_open_cache = 3200

ตั้งไว้ 2 ค่าเลย
โรงพยาบาลเจ็ดเสมียน จังหวัดราชบุรี
Start 19-1-51    35 station
HOSxP  3.59.5.18 Activate License
Tel. 032-305096-7 ต่อ 118
Web. http://csmhos.thaiddns.com:8080
         http://csmhos.thaieasydns.com:8080

ออฟไลน์ มนตรี บอยรักยุ้ยคนเดียว

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: รบกวนช่วยปรับ my.cnf หน่อยครับ
« ตอบกลับ #3 เมื่อ: ตุลาคม 19, 2014, 18:35:14 PM »
0
เหมือน จะเป็น my.cnf ของผม แต่ ดูแปลกๆๆ ไปจากเดิม
ระบบถึงช้า
******************************
[mysqldump]
quick
max_allowed_packet = 2G
allow-keywords

สูงสุดของ
max_allowed_packet = 1G
******************************
ค่า
innodb_lock_wait_timeout = 120
มากเกินไป

ของผมใช้แค่
innodb_lock_wait_timeout = 50
ก้อมากพอแล้ว
******************************
table_open_cache = 8000

ใช้แค่

table_open_cache = 5000
ก้อพอกับระบบ

ส่วน table_open_cache = 3200
ก้อลบทิ้ง
« แก้ไขครั้งสุดท้าย: ตุลาคม 19, 2014, 18:40:05 PM โดย มนตรี บอยรักยุ้ยคนเดียว »
เริ่ม11พย.2548OPD-Paperlessพร้อมHOSxPลดโลกร้อน
FF-Paperless(รพ.สค.)เริ่ม1ตค2555=100%
IPD-Lesspaper1ตค2560ระบบDmsByNeoNetwork
IPD-Paperless1พ.ค2562ระบบHOSxPXE4
ServerMTOL8.5+MDB-10.4.20,SlaveOL8.5+MDB-10.7.3
LOG=PostgreSQL11,INV=PostgreSQL11

ออฟไลน์ tigton

  • Jr. Member
  • **
  • กระทู้: 68
  • Respect: 0
    • ดูรายละเอียด
    • www.nongsaeng.com
Re: รบกวนช่วยปรับ my.cnf หน่อยครับ
« ตอบกลับ #4 เมื่อ: ตุลาคม 20, 2014, 15:18:36 PM »
0
ขอบคุณมากคับเดี่ยวจะลองปรับดูครับ
Mr.samart onsri  Nongsaeng Hospital  Saraburi <br>เริ่มใช้ HOSxP 16 กุมภาพันธ์ 2552  HOSxP V.3.53.5.14 <br>Server OS Linux CentOS 6.3 (64 bit)  Percona 5.5.33<br>IBM X3100 M4 Intel Xeon  HDD 500 GB RAM 16 GB <br>http://www.Nongsaeng.com

ออฟไลน์ tigton

  • Jr. Member
  • **
  • กระทู้: 68
  • Respect: 0
    • ดูรายละเอียด
    • www.nongsaeng.com
Re: รบกวนช่วยปรับ my.cnf หน่อยครับ
« ตอบกลับ #5 เมื่อ: พฤศจิกายน 04, 2014, 23:50:03 PM »
0
ขอบคุณอ.บอยมากคับหลัก ปรับตามคำแนะนำ โอเคขึ้นคับ
Mr.samart onsri  Nongsaeng Hospital  Saraburi <br>เริ่มใช้ HOSxP 16 กุมภาพันธ์ 2552  HOSxP V.3.53.5.14 <br>Server OS Linux CentOS 6.3 (64 bit)  Percona 5.5.33<br>IBM X3100 M4 Intel Xeon  HDD 500 GB RAM 16 GB <br>http://www.Nongsaeng.com