Commit 6772dd50 authored by Ravi Gummadi's avatar Ravi Gummadi
Browse files

Cap the number of worker processes

Users can configure the number of worker processes. However when
it's not specified the calculated number of workers can get too
large on hosts with a large number of CPUs.

Change-Id: Ieb1afbd5c872cc4a991b51287b57404b8932fafa
parent b1f787b5
......@@ -223,8 +223,8 @@ ironic_service_user_name: "ironic"
# Apache settings
ironic_wsgi_threads: 1
_ironic_wsgi_processes: "{{ ansible_processor_vcpus | default(1) // 4 }}"
ironic_wsgi_processes: "{{ (_ironic_wsgi_processes | int > 1) | ternary(_ironic_wsgi_processes, 1) }}"
ironic_wsgi_processes_max: 16
ironic_wsgi_processes: "{{ [[ansible_processor_vcpus|default(4) // 4, 1] | max, ironic_wsgi_processes_max] | min }}"
### OpenStack Services to integrate with
......
---
features:
- Capping the default value for the variable ``ironic_wsgi_processes``
to 16 when the user doesn't configure this variable. Default value
is one fourth the number of vCPUs available on the machine with a
capping value of 16.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment