From 74965f67aef1383e8be4f1c54e28574b5a00cc92 Mon Sep 17 00:00:00 2001 From: Ilia Kondrashov Date: Thu, 12 Nov 2015 21:23:44 +0100 Subject: [PATCH] make connection count adjustable --- defaults/main.yml | 1 + templates/my.cnf.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index c905089..5f5742b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -43,6 +43,7 @@ mysql_read_rnd_buffer_size: "4M" mysql_myisam_sort_buffer_size: "64M" mysql_thread_cache_size: "8" mysql_query_cache_size: "16M" +mysql_max_connections: 151 # Other settings. mysql_wait_timeout: 28800 diff --git a/templates/my.cnf.j2 b/templates/my.cnf.j2 index 12c1564..99c4e8d 100644 --- a/templates/my.cnf.j2 +++ b/templates/my.cnf.j2 @@ -73,6 +73,7 @@ read_rnd_buffer_size = {{ mysql_read_rnd_buffer_size }} myisam_sort_buffer_size = {{ mysql_myisam_sort_buffer_size }} thread_cache_size = {{ mysql_thread_cache_size }} query_cache_size = {{ mysql_query_cache_size }} +max_connections = {{ mysql_max_connections }} # Other settings. wait_timeout = {{ mysql_wait_timeout }}