ผู้เขียน หัวข้อ: my.cnf 4G ช่วยปรับให้ด้วยครับช้ามากครับ  (อ่าน 2575 ครั้ง)

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

ออฟไลน์ (แอมป์) ทีร์ฆะ ติรัตนะ

  • Newbie
  • *
  • กระทู้: 37
  • Respect: -1
    • ดูรายละเอียด
    • www.dkthos.com
my.cnf 4G ช่วยปรับให้ด้วยครับช้ามากครับ
« เมื่อ: พฤศจิกายน 17, 2013, 21:23:06 PM »
0
รบกวนด้วยครับ ทั้งวันทั้งคืนแล้วครับ

[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 = 256M
max_allowed_packet = 1G
table_open_cache = 3200
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 2M
myisam_sort_buffer_size = 128M
thread_cache = 8
query_cache_size= 256M
query_cache_type=2
thread_concurrency = 8
character-set-server=tis620
skip-name-resolve
server-id=1
log-bin=mysql-bin
sync_binlog=0
log_bin_trust_function_creators=1
innodb_flush_log_at_trx_commit=2
innodb_file_per_table
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
max_heap_table_size = 256M
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 = 1G
innodb_additional_mem_pool_size = 20M
innodb_thread_concurrency = 0
innodb_log_file_size = 256M
innodb_log_buffer_size = 32M
#innodb_flush_log_at_trx_commit = 2
innodb_lock_wait_timeout = 50
innodb_doublewrite=0
innodb_support_xa = 0
innodb_open_files = 3200
innodb_locks_unsafe_for_binlog=1
myisam-recover=FORCE,BACKUP
innodb_file_format = Barracuda
innodb_flush_method=O_DIRECT
join_buffer_size = 2M
concurrent_insert = 2
max_connections = 300
event_scheduler = 0
[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

(แอมป์) ทีร์ฆะ ติรัตนะ
ตำแหน่ง นักวิชาการคอมพิวเตอร์ ศูนย์สารสนเทศ โรงพยาบาลด่านขุนทด
E-mail : takio1981@gmail.com
++++ยินดีที่ได้เข้ามาร่วมงานกับหน่วยงานที่ทำงานเพื่อส่วนรวม เพื่อสังคม ฝากเนื้อฝากตัว และขอคำชี้แนะด้วยครับ ++++
เริ่มงาน 3 ธ.ค. 2555
-----------------------------------------------------------------------------------------------------------------------------------------------------
ติดตั้งระบบเมื่อปี 2551 โดย บริษัท BMS

Master :  CentOS 6.5 64 bit MySQL Percona 5.6.15-56 IBM System X3650 M4 Xeon E5620 2.0 GHz HDD 300 GB x 2 Ram 16 GB
Slave1 :   CentOS 6.5 64 bit MySQL Percona 5.6.15-56 IBM System X3650 M4 Xeon E5620 2.0 GHz HDD 300 GB x 2 Ram 16 GB
Slave2 :   CentOS 6.5 64 bit MySQL Percona 5.6.15-56 IBM System X3650 M4 Xeon E5620 2.0 GHz HDD 300 GB x 2 Ram 16 GB
DataCenter :  CentOS 6.4 64 bit MySQL Percona 5.5.11-55 IBM System x3650 Pentium D CPU 2.40 GHz HDD 150 GB x 2 RAM 4 GB
Cluster Run Service :  CentOS 6.4 64 bit MySQL Percona 5.5.33-31.1  IBM System X3650 M3 Xeon E5620 2.4 GHz HDD 64 GB x 2 Ram 4 GB
Referlink Server : CentOS 6.4 64 bit MySQL Percona 5.5.33-31.1  IBM System X3650 M2 Xeon E5620 2.4 GHz HDD 120 GB Ram 4 GB

By BMSxTrabackupGUI 7.0
--------------------------------------------------------------------------------------------------------------------------------------------------------------

ออฟไลน์ Knott

  • Hero Member
  • *****
  • กระทู้: 882
  • Respect: 0
    • ดูรายละเอียด
Re: my.cnf 4G ช่วยปรับให้ด้วยครับช้ามากครับ
« ตอบกลับ #1 เมื่อ: พฤศจิกายน 18, 2013, 09:22:48 AM »
0
ถ้าเป็น MySQL 5.5.xx Percona แล้ว เอาไปใช้ได้เลยครับ
รพช.วัดโบสถ์ จ.พิษณุโลก
ขึ้นระบบ 1 เมษายน 2551 (ขึ้นระบบเอง)
Server : IBM x3250 M2, RAM 4 GB, FreeBSD 7.2, Mysql 5.1.30
HOSxP Version 3.56.1.15