From 316eee3680d0f934b8491367c6007ea16ec41906 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Wed, 6 Apr 2016 15:24:12 -0400 Subject: [PATCH] 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 --- ansible/roles/nova/templates/nova.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/nova/templates/nova.conf.j2 b/ansible/roles/nova/templates/nova.conf.j2 index 20c3c29c90..08ef21e9e0 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 }}