diff --git a/defaults/main.yml b/defaults/main.yml index 93f7bb5..29c09b9 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -22,6 +22,10 @@ mysql_myisam_sort_buffer_size: "64M" mysql_thread_cache_size: "8" mysql_query_cache_size: "16M" +# Other settings. +mysql_wait_timeout: 28800 +mysql_max_allowed_packet: "64M" + # Try number of CPU's * 2 for thread_concurrency. mysql_thread_concurrency: 2 diff --git a/templates/my.cnf.j2 b/templates/my.cnf.j2 index cf13846..13c387d 100644 --- a/templates/my.cnf.j2 +++ b/templates/my.cnf.j2 @@ -31,6 +31,10 @@ myisam_sort_buffer_size = {{ mysql_myisam_sort_buffer_size }} thread_cache_size = {{ mysql_thread_cache_size }} query_cache_size = {{ mysql_query_cache_size }} +# Other settings. +wait_timeout = {{ mysql_wait_timeout }} +max_allowed_packet = {{ mysql_max_allowed_packet }} + # Try number of CPU's * 2 for thread_concurrency. thread_concurrency = {{ mysql_thread_concurrency }}