From 8c71647c13cd7c2b8d180d1167712877d88900d9 Mon Sep 17 00:00:00 2001 From: Deimos Date: Sat, 15 Feb 2014 06:33:17 +0100 Subject: [PATCH] Adding purposed optimizations #246 --- templates/database/mysql.conf.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/database/mysql.conf.erb b/templates/database/mysql.conf.erb index c224504a..0b0b6aa2 100644 --- a/templates/database/mysql.conf.erb +++ b/templates/database/mysql.conf.erb @@ -3,20 +3,20 @@ # [mysqld] max_connections = 1000 +skip_name_resolve = 1 connect_timeout = 5 wait_timeout = 600 max_allowed_packet = 64M thread_cache_size = 128 sort_buffer_size = 4M bulk_insert_buffer_size = 16M -tmp_table_size = 128M +tmp_table_size = 512M max_heap_table_size = 128M -query_cache_limit = 1M -query_cache_size = 16M +query_cache_type = 0 myisam_recover = BACKUP key_buffer_size = 16M open-files-limit = 65535 -table_open_cache = 500 +table_open_cache = 1024 table_definition_cache = 500 myisam_sort_buffer_size = 512M concurrent_insert = 2 @@ -27,7 +27,7 @@ slow_query_log_file = /var/log/mysql/slow.log log_error = /var/log/mysql/error.log long_query_time = 1 log_slow_verbosity = query_plan -innodb_buffer_pool_size = 64M +innodb_buffer_pool_size = 512M innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 50 innodb_thread_concurrency = 48 @@ -56,7 +56,7 @@ wsrep_node_incoming_address = "<%= @api_eth %>" # and wsrep_sst_xtrabackup take only one configuration file and use the last one # (/etc/mysql/my.cnf is not used) datadir = /var/lib/mysql -tmpdir = /tmp +tmpdir = /dev/shm innodb_flush_method = O_DIRECT innodb_log_buffer_size = 32M innodb_log_file_size = 256M