BMS-HOSxP Community

HOSxP => MySQL => ข้อความที่เริ่มโดย: yutbit ที่ พฤศจิกายน 08, 2011, 14:51:05 PM

หัวข้อ: ช่วยดู my.cnf ให้หน่อยครับแบบนี้พอไหวมั้ยครับ
เริ่มหัวข้อโดย: yutbit ที่ พฤศจิกายน 08, 2011, 14:51:05 PM
-RAM :16G  MySQL-client-percona-5.1.37-6.rhel5.x86_64
-CPU(server)  Dell PowerEdge R310 4CPUs X 2.526 GHz Intel(R) Xeon(R) X3440 @2.53GHz
-จำนวน hub  100/1000 6ตัว
-จำนวนเครื่องที่ใช้  50-60 เครื่อง
-OS เป็น text
คนไข้เฉลี่ยนวันละประมาณ 300-400 คน

ตอนนี้ใช้ตามนี้ครับ ไม่รู้จะต้องปรับอะไรอีกบ้างครับ



[client]
port                = 3306
socket                = /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
port                = 3306
socket                = /var/lib/mysql/mysql.sock
skip-locking
# SET Master
#server-id=1
#log-bin
#sync_binlog=1
#innodb_safe_binlog
#-------------
key_buffer = 256M
max_allowed_packet = 16M
table_cache = 1000
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 128M
thread_cache = 8
query_cache_size= 32M
thread_concurrency = 8
default-character-set=tis620
skip-name-resolve
#innodb_file_per_table
innodb-file-per-table=1
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
innodb_buffer_pool_size = 256M
innodb_additional_mem_pool_size = 20M
innodb_log_file_size = 64M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
[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
[mysqld_safe]
open-files-limit = 50000



ขอบพระคุณครับ
หัวข้อ: Re: ช่วยดู my.cnf ให้หน่อยครับแบบนี้พอไหวมั้ยครับ
เริ่มหัวข้อโดย: nph2006 ที่ พฤศจิกายน 08, 2011, 15:49:18 PM
 ;D รพ. อะไรครับ ปรับเยอะ เหมือนกัน
หัวข้อ: Re: ช่วยดู my.cnf ให้หน่อยครับแบบนี้พอไหวมั้ยครับ
เริ่มหัวข้อโดย: yutbit ที่ พฤศจิกายน 08, 2011, 15:58:46 PM
โรงพยาบาลดอยสะเก็ดครับ จังหวัดเชียงใหม่ครับ