ผู้เขียน หัวข้อ: my.cnf percona 5.5.24 ram 16G  (อ่าน 5677 ครั้ง)

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

ออฟไลน์ KHEMSAK

  • Full Member
  • ***
  • กระทู้: 122
  • Respect: 0
    • ดูรายละเอียด
my.cnf percona 5.5.24 ram 16G
« เมื่อ: กรกฎาคม 25, 2012, 11:13:02 AM »
0
เรียนท่าน อาจารย์ทุกท่าน ผมได้ลง percona 5.5.24 และได้ config my.cnf ตามนี้ครับ
#BEGIN CONFIG INFO
#DESCR: 16GB RAM, InnoDB only, ACID, few connections, heavy queries
#TYPE: SYSTEM
#END CONFIG INFO

[client]
#password   = [your_password]
port      = 3306
socket      = /var/lib/mysql/mysql.sock
default-character-set=tis620

# *** Application-specific options follow here ***

#
# The MySQL server
#
[mysqld]

# generic configuration options
port      = 3306
socket      = /var/lib/mysql/mysql.sock

back_log = 50

#skip-networking

max_connections =200
max_connect_errors = 10
table_open_cache = 2048
#external-locking
max_allowed_packet = 1G
table_cache = 2k
binlog_cache_size = 1M
skip-character-set-client-handshake
skip-name-resolve
init_connect ='set NAMES tis620'
tmp_table_size = 256M
max_tmp_tables = 32
max_heap_table_size = 64M
read_buffer_size = 2M
read_rnd_buffer_size = 16M
sort_buffer_size = 8M
join_buffer_size = 8M
thread_cache_size = 8
thread_concurrency = 8
query_cache_size = 1G
query_cache_limit = 2M
query_cache_type = 1
ft_min_word_len = 4
#memlock
default-storage-engine = INNODB
thread_stack = 192K
transaction_isolation = REPEATABLE-READ
tmp_table_size = 64M
#log-bin=mysql-bin
binlog_format=mixed
log_slave_updates
#log
#log_warnings
slow_query_log
long_query_time = 2


# ***  Replication related settings

server-id = 2



#*** MyISAM Specific options


key_buffer_size = 512M
bulk_insert_buffer_size = 64M
myisam_sort_buffer_size = 512M
myisam_max_sort_file_size = 10G
myisam_repair_threads = 1
myisam_recover

# *** INNODB Specific options ***
#skip-innodb
innodb_additional_mem_pool_size = 20M
innodb_buffer_pool_size = 12G
innodb_data_file_path = ibdata1:10M:autoextend
innodb_data_home_dir = /var/lib/mysql/
innodb_write_io_threads = 8
innodb_read_io_threads = 8
#innodb_force_recovery=1
innodb_thread_concurrency = 16
innodb_flush_log_at_trx_commit = 1
#innodb_fast_shutdown
innodb_log_buffer_size = 8M
innodb_log_file_size = 256M
innodb_log_files_in_group = 3
innodb_log_group_home_dir = /var/lib/mysql/
innodb_max_dirty_pages_pct = 90
#innodb_flush_method=O_DSYNC
innodb_lock_wait_timeout = 120
innodb_file_per_table
innodb_open_files = 8K
innodb_locks_unsafe_for_binlog=1
join_buffer_size = 4M
concurrent_insert = 2

[mysqldump]
quick
max_allowed_packet = 1G
allow-keywords

[mysql]
no-auto-rehash

# Only allow UPDATEs and DELETEs that use keys.
#safe-updates

[myisamchk]
key_buffer_size = 512M
sort_buffer_size = 512M
read_buffer = 8M
write_buffer = 8M

[mysqlhotcopy]
interactive-timeout

[mysqld_safe]
open-files-limit = 9000

มีอะไรต้องเพิ่มเติมไหมครับพอดีจะขึ้น server จริง
แล้วเครื่อง master percona  แล้วเครื่อง slave ต้องup เป็น percona ด้วยไหมครับ
โรงพยาบาลนาจะหลวย อ.นาจะหลวย จ.อุบลราชธานี 34280
เริ่มขึ้นระบบวันที่ 12 กันยายน 2552 โดย BMS
SERVER MASTER HP ML350
              SLAVE HP ML110