diff options
author | Zuul <zuul@review.openstack.org> | 2019-02-02 11:57:17 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2019-02-02 11:57:17 +0000 |
commit | c9aa36b78c378e08b466c5e7323058edf21e45d8 (patch) | |
tree | f8ffe923acb7a2ec19c37637391f66ba637450fd /ironic/conf | |
parent | 69baaca23d63ba5df959aa8337f30643ad807573 (diff) | |
parent | 7448603ab832294899bb8aba77dc4a8953dbe699 (diff) | |
download | ironic-c9aa36b78c378e08b466c5e7323058edf21e45d8.tar.gz |
Merge "Parallelize periodic power sync calls"
Diffstat (limited to 'ironic/conf')
-rw-r--r-- | ironic/conf/conductor.py | 9 |
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 ' |