@joocelyn Here is the my.cfg file
@justin I will check that post. Thanks
[mysqld]
# -------------------------------------------------------------------------------
# ++++ General
# -------------------------------------------------------------------------------
datadir = /var/lib/mysql/data
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/lib/mysql/mysql.sock
tmpdir = /var/lib/mysql/tmp
port = 3306
# -------------------------------------------------------------------------------
# ++++ Logging
# -------------------------------------------------------------------------------
log-error = /var/lib/mysql/log/mysqld-error.log
long_query_time = 10
slow-query-log-file = /var/lib/mysql/log/mysqld-queries_slow.log
log-slave-updates
log-bin = /var/lib/mysql/log/bin/slave-bin
log-warnings = 1
max_relay_log_size = 200M
relay_log_space_limit = 25000M
# -------------------------------------------------------------------------------
# ++++ Network
# -------------------------------------------------------------------------------
max_connections = 3000
max_connect_errors = 1000
wait_timeout = 120
connect_timeout = 30
interactive_timeout = 3600
slave_net_timeout = 120
back_log = 50
max_allowed_packet = 128M
# -------------------------------------------------------------------------------
# ++++ Misc
# -------------------------------------------------------------------------------
# Text Searchs
ft_min_word_len = 2
plugin-load = ha_tokudb
# -------------------------------------------------------------------------------
# ++++ Threads
# -------------------------------------------------------------------------------
thread_concurrency = 8
thread_cache = 64
# -------------------------------------------------------------------------------
# ++++ Memory
# -------------------------------------------------------------------------------
# Tables
table_cache = 4096
tmp_table_size = 256M
# Memory per Thread
sort_buffer_size = 8M
read_buffer_size = 4M
read_rnd_buffer_size = 16M
# Query Cache
query_cache_type = 1
query_cache_limit = 2M
query_cache_size = 64M
# -------------------------------------------------------------------------------
# ++++ MyISAM Parameters
# -------------------------------------------------------------------------------
key_buffer_size = 1024M
myisam_sort_buffer_size = 64M
myisam_recover = FORCE,BACKUP
# -------------------------------------------------------------------------------
# ++++ InnoDB Parameters
# -------------------------------------------------------------------------------
# General
innodb_data_home_dir = /var/lib/mysql/innodb
innodb_log_group_home_dir = /var/lib/mysql/innodblogs
innodb_file_per_table
innodb_data_file_path = ibdata1:100M:autoextend
innodb_status_file = ib_status
innodb_autoextend_increment = 10M
innodb_support_xa = 0
innodb_thread_concurrency = 8
innodb_flush_method = O_DIRECT
innodb_flush_log_at_trx_commit = 2
# Memory
innodb_buffer_pool_size = 6G
innodb_additional_mem_pool_size = 8M
innodb_open_files = 512
# Logging
innodb_log_buffer_size = 8M
innodb_log_file_size = 256M
innodb_log_files_in_group = 2
# -------------------------------------------------------------------------------
# ++++ Replication : SLAVE Profile
# -------------------------------------------------------------------------------
#skip-slave-start
server-id = 124388
relay-log = /var/lib/mysql/log/replication/slave-bin
max_binlog_size = 20971520
read-only = 1
[mysqldump]
quick
max_allowed_packet = 128M
[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout