Allow the number of scheduler workers to be tuned

Similar to the other non-uwsgi services, the number of scheduler
workers can now be tuned [1]. We enable this to be used by adding
a tunable for it.

[1] https://review.openstack.org/159382

Change-Id: I523acc0e613d94278a1e3dbb403a08fe3b8549f5
This commit is contained in:
Jesse Pretorius
2018-08-09 14:31:46 +01:00
parent 363162da23
commit b2868f373a
2 changed files with 5 additions and 0 deletions

View File

@@ -416,6 +416,10 @@ nova_cinder_rbd_inuse: False
# compute the number of api workers to use.
# nova_metadata_workers: 16
# If ``nova_scheduler_workers`` is unset the system will use half the number of available VCPUS to
# compute the number of api workers to use.
# nova_scheduler_workers: 16
## Cap the maximun number of threads / workers when a user value is unspecified.
nova_api_threads_max: 16
nova_api_threads: "{{ [[ansible_processor_vcpus|default(2) // 2, 1] | max, nova_api_threads_max] | min }}"

View File

@@ -314,6 +314,7 @@ use_forwarded_for = {{ nova_network_services[nova_network_type]['use_forwarded_f
vendordata_jsonfile_path = /etc/nova/vendor_data.json
[scheduler]
workers = {{ nova_scheduler_workers | default(nova_api_threads) }}
max_attempts = {{ nova_scheduler_max_attempts }}
scheduler_driver = {{ nova_scheduler_driver }}
periodic_task_interval = {{ nova_scheduler_driver_task_period }}