From 71cf6337bc6b74906bbbff4ec1b20120e7835488 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Thu, 3 Jul 2014 08:25:12 -0500 Subject: [PATCH] Add extra variables wait_timeout and max_allowed_packet. --- defaults/main.yml | 4 ++++ templates/my.cnf.j2 | 4 ++++ 2 files changed, 8 insertions(+) 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 }}