reduce idle connect timeout both on haproxy and services 45/3945/1
authorcarey.xu <carey.xuhan@huawei.com>
Fri, 4 Dec 2015 01:07:20 +0000 (09:07 +0800)
committercarey.xu <carey.xuhan@huawei.com>
Fri, 4 Dec 2015 01:07:20 +0000 (09:07 +0800)
JIRA: COMPASS-175

Change-Id: I3f992f245f3de832864458d1444d388c1685a171
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
deploy/adapters/ansible/openstack/templates/neutron.conf
deploy/adapters/ansible/openstack/templates/nova.conf
deploy/adapters/ansible/roles/cinder-controller/templates/cinder.conf
deploy/adapters/ansible/roles/cinder-volume/templates/cinder.conf
deploy/adapters/ansible/roles/glance/templates/glance-api.conf
deploy/adapters/ansible/roles/glance/templates/glance-registry.conf
deploy/adapters/ansible/roles/ha/templates/haproxy.cfg
deploy/adapters/ansible/roles/keystone/templates/keystone.conf

index 02a2cfa..ebc46f9 100644 (file)
@@ -428,7 +428,8 @@ min_pool_size = 1
 max_pool_size = 100
 
 # Timeout in seconds before idle sql connections are reaped
-idle_timeout = 3600
+idle_timeout = 30
+use_db_reconnect = True
 
 # If set, use this value for max_overflow with sqlalchemy
 max_overflow = 100
index b15032f..2364132 100644 (file)
@@ -54,6 +54,9 @@ memcached_servers = {{ internal_vip.ip }}:11211
 [database]
 # The SQLAlchemy connection string used to connect to the database
 connection = mysql://nova:{{ NOVA_DBPASS }}@{{ db_host }}/nova
+idle_timeout = 30
+use_db_reconnect = True
+pool_timeout = 10
 
 [keystone_authtoken]
 auth_uri = http://{{ internal_vip.ip }}:5000/2.0
index cf41817..b61e656 100644 (file)
@@ -61,3 +61,4 @@ admin_password = {{ CINDER_PASS }}
 
 [database]
 connection = mysql://cinder:{{ CINDER_DBPASS }}@{{ db_host }}/cinder
+idle_timeout = 30
index 0b855da..fdcac69 100644 (file)
@@ -60,3 +60,4 @@ admin_password = {{ CINDER_PASS }}
 
 [database]
 connection = mysql://cinder:{{ CINDER_DBPASS }}@{{ db_host }}/cinder
+idle_timeout = 30
index 737b9a3..ab63e05 100644 (file)
@@ -586,7 +586,7 @@ connection = mysql://glance:{{ GLANCE_DBPASS }}@{{ db_host }}/glance
 # Deprecated group/name - [DEFAULT]/sql_idle_timeout
 # Deprecated group/name - [DATABASE]/sql_idle_timeout
 # Deprecated group/name - [sql]/idle_timeout
-#idle_timeout = 3600
+idle_timeout = 30
 
 # Minimum number of SQL connections to keep open in a pool
 # (integer value)
index 1fedb0b..06c403f 100644 (file)
@@ -106,7 +106,7 @@ connection = mysql://glance:{{ GLANCE_DBPASS }}@{{ db_host }}/glance
 # Deprecated group/name - [DEFAULT]/sql_idle_timeout
 # Deprecated group/name - [DATABASE]/sql_idle_timeout
 # Deprecated group/name - [sql]/idle_timeout
-#idle_timeout = 3600
+idle_timeout = 30
 
 # Minimum number of SQL connections to keep open in a pool
 # (integer value)
index c8065f0..6b91a24 100644 (file)
@@ -20,10 +20,10 @@ defaults
     timeout http-request 10s
     timeout queue 1m
     timeout connect 10s
-    timeout client 6m
-    timeout server 6m
+    timeout client 50s
+    timeout server 50s
     timeout check 10s
-    retries 5
+    retries 3
 
 listen  proxy-glance_registry_cluster
     bind {{ internal_vip.ip }}:9191
index fc8bf1f..b022a08 100644 (file)
@@ -614,7 +614,7 @@ connection = mysql://keystone:{{ KEYSTONE_DBPASS }}@{{ db_host }}/keystone
 # Deprecated group/name - [DEFAULT]/sql_idle_timeout
 # Deprecated group/name - [DATABASE]/sql_idle_timeout
 # Deprecated group/name - [sql]/idle_timeout
-#idle_timeout=3600
+idle_timeout=30
 
 # Minimum number of SQL connections to keep open in a pool
 # (integer value)