Files
puppet-cloudkitty/manifests/orchestrator.pp
Takashi Kajinami c1d9151756 Add support for [orchestrator] max_workers_reprocessing
... to control the number of processes the orchestrator service may
spawn.

Change-Id: Ibcb3f2444d8fa203efc557eb8c75aece863d167e
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-09-08 12:15:07 +00:00

47 lines
1.5 KiB
Puppet

# == Class: cloudkitty::orchestrator
#
# Setup and configure Cloudkitty orchestrator settings.
#
# === Parameters
#
# [*coordination_url*]
# (Optional) Coordination backend URL.
# Defaults to $facts['os_service_default']
#
# [*max_workers*]
# (Optional) Maximum number of workers to execute the rating process.
# Defaults to $facts['os_service_default']
#
# [*max_workers_reprocessing*]
# (Optional) Maximum number of workers to execute the reprocessing.
# Defaults to $facts['os_service_default']
#
# [*max_threads*]
# (Optional) Maximal number of threads to use per worker.
# Defaults to $facts['os_service_default']
#
class cloudkitty::orchestrator (
$coordination_url = $facts['os_service_default'],
$max_workers = $facts['os_service_default'],
$max_workers_reprocessing = $facts['os_service_default'],
$max_threads = $facts['os_service_default']
) {
include cloudkitty::deps
oslo::coordination { 'cloudkitty_config':
backend_url => $coordination_url,
manage_config => false,
}
# all coordination settings should be applied and all packages should be
# installed before service startup
Oslo::Coordination['cloudkitty_config'] -> Anchor['cloudkitty::service::begin']
cloudkitty_config {
'orchestrator/coordination_url': value => $coordination_url, secret => true;
'orchestrator/max_workers': value => $max_workers;
'orchestrator/max_workers_reprocessing': value => $max_workers_reprocessing;
'orchestrator/max_threads': value => $max_threads;
}
}