aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Dake <stdake@cisco.com>2016-04-06 15:24:12 -0400
committerSteven Dake <stdake@cisco.com>2016-04-08 03:21:41 -0400
commit316eee3680d0f934b8491367c6007ea16ec41906 (patch)
tree671075d5e3bf1b643b9521dc062f7045a6fb6218
parent445666a5003a766c71abc664bd7bf36605e3684b (diff)
downloadkolla-316eee3680d0f934b8491367c6007ea16ec41906.tar.gz
kolla-316eee3680d0f934b8491367c6007ea16ec41906.zip
Increase max pool size so conductor doesn't implode
When horizon is used to launch 2000 VMs, nova-conductor is very busy making database connections. All 55 database connections are in use, resulting in an inability to garbage collect database connections. Instead raise the max pool to 50 which will allow 50 concurrent database connections and the max overflow to 1000 which permits the database connections to finish the job at large nodecount scales. Closes-Bug: #1565105 Change-Id: I26dc2f7fda8760197888a1d61fbc45dfada2dd06
-rw-r--r--ansible/roles/nova/templates/nova.conf.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/ansible/roles/nova/templates/nova.conf.j2 b/ansible/roles/nova/templates/nova.conf.j2
index 20c3c29c9..08ef21e9e 100644
--- a/ansible/roles/nova/templates/nova.conf.j2
+++ b/ansible/roles/nova/templates/nova.conf.j2
@@ -120,6 +120,8 @@ password = {{ neutron_keystone_password }}
[database]
connection = mysql+pymysql://{{ nova_database_user }}:{{ nova_database_password }}@{{ nova_database_address }}/{{ nova_database_name }}
+max_pool_size = 50
+max_overflow = 1000
[api_database]
connection = mysql+pymysql://{{ nova_api_database_user }}:{{ nova_api_database_password }}@{{ nova_api_database_address }}/{{ nova_api_database_name }}