Skip to content

Commit 71cf633

Browse files
committed
Add extra variables wait_timeout and max_allowed_packet.
1 parent e9f332d commit 71cf633

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

defaults/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ mysql_myisam_sort_buffer_size: "64M"
2222
mysql_thread_cache_size: "8"
2323
mysql_query_cache_size: "16M"
2424

25+
# Other settings.
26+
mysql_wait_timeout: 28800
27+
mysql_max_allowed_packet: "64M"
28+
2529
# Try number of CPU's * 2 for thread_concurrency.
2630
mysql_thread_concurrency: 2
2731

templates/my.cnf.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ myisam_sort_buffer_size = {{ mysql_myisam_sort_buffer_size }}
3131
thread_cache_size = {{ mysql_thread_cache_size }}
3232
query_cache_size = {{ mysql_query_cache_size }}
3333

34+
# Other settings.
35+
wait_timeout = {{ mysql_wait_timeout }}
36+
max_allowed_packet = {{ mysql_max_allowed_packet }}
37+
3438
# Try number of CPU's * 2 for thread_concurrency.
3539
thread_concurrency = {{ mysql_thread_concurrency }}
3640

0 commit comments

Comments
 (0)