From 3f0d6ecede79cfdca7ef4bec340611ff4a4a8b44 Mon Sep 17 00:00:00 2001 From: Peter Razumovsky Date: Tue, 24 Jan 2017 13:13:02 +0400 Subject: [PATCH] Add config options for database section Add max_pool_size and max_overflow for database section of config file. This helps to customize database limits for ccp and further for each node. Change-Id: Ibfe7ac44e73b8540d7cfe73eaae041c70bbc9a73 Closes-bug: #1653077 --- service/files/defaults.yaml | 2 ++ service/files/neutron.conf.j2 | 2 ++ 2 files changed, 4 insertions(+) diff --git a/service/files/defaults.yaml b/service/files/defaults.yaml index ba42f6d..bffc198 100644 --- a/service/files/defaults.yaml +++ b/service/files/defaults.yaml @@ -4,6 +4,8 @@ configs: password: password name: neutron username: neutron + max_pool_size: 10 + max_overflow: 50 server_port: cont: 9696 ingress: network diff --git a/service/files/neutron.conf.j2 b/service/files/neutron.conf.j2 index 6b9770c..70f6b60 100644 --- a/service/files/neutron.conf.j2 +++ b/service/files/neutron.conf.j2 @@ -57,6 +57,8 @@ root_helper_daemon = sudo neutron-rootwrap-daemon /etc/neutron/rootwrap.conf [database] connection = mysql+pymysql://{{ neutron.db.username }}:{{ neutron.db.password }}@{{ address(service.database) }}/{{ neutron.db.name }} max_retries = -1 +max_pool_size = {{ neutron.db.max_pool_size }} +max_overflow = {{ neutron.db.max_overflow }} [keystone_authtoken] auth_uri = {{ address('keystone', keystone.public_port, with_scheme=True) }}