summaryrefslogtreecommitdiff
path: root/ironic/conf
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-02-02 11:57:17 +0000
committerGerrit Code Review <review@openstack.org>2019-02-02 11:57:17 +0000
commitc9aa36b78c378e08b466c5e7323058edf21e45d8 (patch)
treef8ffe923acb7a2ec19c37637391f66ba637450fd /ironic/conf
parent69baaca23d63ba5df959aa8337f30643ad807573 (diff)
parent7448603ab832294899bb8aba77dc4a8953dbe699 (diff)
downloadironic-c9aa36b78c378e08b466c5e7323058edf21e45d8.tar.gz
Merge "Parallelize periodic power sync calls"
Diffstat (limited to 'ironic/conf')
-rw-r--r--ironic/conf/conductor.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/ironic/conf/conductor.py b/ironic/conf/conductor.py
index 6495e805d..45024ad4f 100644
--- a/ironic/conf/conductor.py
+++ b/ironic/conf/conductor.py
@@ -24,7 +24,9 @@ opts = [
default=100, min=3,
help=_('The size of the workers greenthread pool. '
'Note that 2 threads will be reserved by the conductor '
- 'itself for handling heart beats and periodic tasks.')),
+ 'itself for handling heart beats and periodic tasks. '
+ 'On top of that, `sync_power_state_workers` will take '
+ 'up to 7 green threads with the default value of 8.')),
cfg.IntOpt('heartbeat_interval',
default=10,
help=_('Seconds between conductor heart beats.')),
@@ -77,6 +79,11 @@ opts = [
'number of times Ironic should try syncing the '
'hardware node power state with the node power state '
'in DB')),
+ cfg.IntOpt('sync_power_state_workers',
+ default=8, min=1,
+ help=_('The maximum number of workers that can be started '
+ 'simultaneously to sync nodes power state from the '
+ 'periodic task.')),
cfg.IntOpt('periodic_max_workers',
default=8,
help=_('Maximum number of worker threads that can be started '