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 <john.kung@windriver.com>
This commit is contained in:
John Kung 2021-01-21 09:41:41 -06:00
parent 0f7418e761
commit 389f37582a

View File

@ -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,