Permalink
Browse files

Update my.cnf/my.cnf

  • Loading branch information...
magenx
magenx committed Jan 27, 2013
1 parent e2efcc0 commit 2b94ffaf120ae8888123e0a188b093f50a2c1158
Showing with 8 additions and 7 deletions.
  1. +8 −7 my.cnf/my.cnf
View
@@ -3,6 +3,7 @@
## http://dev.mysql.com/doc/refman/5.5/en/innodb-parameters.html ##
## https://raw.github.com/rackerhacker/MySQLTuner-perl/master/mysqltuner.pl ##
## https://launchpadlibrarian.net/78745738/tuning-primer.sh ##
+## http://hackmysql.com/scripts/mysqlreport ##
## yum install mytop / apt-get install mytop ##
##############################################################################################
@@ -20,14 +21,14 @@ bind-address = 127.0.0.1
### CACHES AND LIMITS #
back_log = 2000
-interactive_timeout = 100
+interactive_timeout = 300
wait_timeout = 300
sort_buffer_size = 1M
read_buffer_size = 1M
#read_rnd_buffer_size = 12M
join_buffer_size = 8M
-tmp_table_size = 32M
-max_heap_table_size = 32M
+tmp_table_size = 128M
+max_heap_table_size = 128M
query_cache_size = 256M
query_cache_limit = 4M
max_connections = 150
@@ -37,16 +38,16 @@ table_definition_cache = 4000
table_open_cache = 4000
### INNODB_ #
-#innodb_thread_concurrency = 4 # read manual 2*(NumCPUs+NumDisks)
+innodb_thread_concurrency = 0
innodb_lock_wait_timeout = 300
innodb_flush_method = O_DIRECT
innodb_log_files_in_group = 2
-innodb_log_file_size = 32M # if changing, stop database, remove old log files, then start!
+innodb_log_file_size = 64M # if changing, stop database, remove old log files, then start!
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 2
innodb_file_per_table = 1
innodb_buffer_pool_size = 4G
-innodb_additional_mem_pool_size = 8M
+innodb_additional_mem_pool_size = 24M
### LOGGING #
#log_error = /var/log/mysql/mysql-error.log
@@ -56,4 +57,4 @@ innodb_additional_mem_pool_size = 8M
### BINARY LOGGING #
#log_bin = /var/lib/mysql/mysql-bin
#expire_logs_days = 14
-#sync_binlog = 1
+#sync_binlog = 1

0 comments on commit 2b94ffa

Please sign in to comment.