From 8143bfe61f0f6739818fa92c2646859faea813ec Mon Sep 17 00:00:00 2001 From: "carey.xu" Date: Fri, 18 Dec 2015 11:48:25 +0800 Subject: reduce idle connect timeout both on haproxy and services JIRA: COMPASS-175 Change-Id: I2b500a6814f39a675d5b7f277bc19688ef33a957 Signed-off-by: carey.xu --- deploy/adapters/ansible/roles/heat/templates/heat.j2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'deploy/adapters/ansible/roles/heat') diff --git a/deploy/adapters/ansible/roles/heat/templates/heat.j2 b/deploy/adapters/ansible/roles/heat/templates/heat.j2 index 67beb1ca..aec6b2eb 100644 --- a/deploy/adapters/ansible/roles/heat/templates/heat.j2 +++ b/deploy/adapters/ansible/roles/heat/templates/heat.j2 @@ -9,6 +9,9 @@ log_dir = /var/log/heat [database] connection = mysql://heat:{{ HEAT_DBPASS }}@{{ db_host }}/heat +idle_timeout = 30 +use_db_reconnect = True +pool_timeout = 10 [ec2authtoken] auth_uri = http://{{ internal_vip.ip }}:5000/v2.0 -- cgit 1.2.3-korg