From 389f37582a1568bc34089956dc52b6fe5c274b83 Mon Sep 17 00:00:00 2001 From: John Kung Date: Thu, 21 Jan 2021 09:41:41 -0600 Subject: [PATCH] Adjust dcorch database pool size for dcorch scaling The dcorch database pool sizes are updated based upon the delivery of feature with multiple dcorch engine workers. As the workload is allocated amongst 5 multiple workers, the values for the dcorch database pools can be lowered from the defaults previously set for the single process case. The max theoretical database connections allowable per worker is based on 100 audit and 100 sync threads. Furthermore, the dcorch scaling feature audits based on audit timestamp so the peak loads are also likely more balanced. Testcases: In multiple subclouds environment, monitor each dcorch engine each workers database connections usage: subcloud add subcloud initial manage subcloud resource sync subcloud manage and unmanage Change-Id: Id3386df6289d42080a90b9d97cc0834054160805 Story: 2007267 Task: 41650 Signed-off-by: John Kung --- modules/puppet-dcorch/src/dcorch/manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/puppet-dcorch/src/dcorch/manifests/init.pp b/modules/puppet-dcorch/src/dcorch/manifests/init.pp index 8ca67a3d8..ed67c928e 100644 --- a/modules/puppet-dcorch/src/dcorch/manifests/init.pp +++ b/modules/puppet-dcorch/src/dcorch/manifests/init.pp @@ -22,8 +22,8 @@ class dcorch ( $database_connection = '', $database_idle_timeout = 3600, - $database_max_pool_size = 405, - $database_max_overflow = 100, + $database_max_pool_size = 125, + $database_max_overflow = 75, $control_exchange = 'openstack', $rabbit_host = '127.0.0.1', $rabbit_port = 5672,