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
This commit is contained in:
parent
b1f787b541
commit
6772dd503d
@ -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
|
||||
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
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.
|
Loading…
x
Reference in New Issue
Block a user