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

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 }}
Reference in New Issue
openstack/openstack-ansible-os_nova
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.