Merge "Allow ability to configure number of processes and threads" into stable/pike
This commit is contained in:
commit
f7ff4ea21c
@ -102,7 +102,8 @@ barbican_service_user_domain_id: default
|
||||
barbican_service_project_name: service
|
||||
|
||||
# Apache configuration vars
|
||||
barbican_wsgi_processes: "{{ ansible_processor_vcpus | default (1) * 2 }}"
|
||||
barbican_wsgi_processes_max: 16
|
||||
barbican_wsgi_processes: "{{ [[ansible_processor_vcpus|default(2) // 2, 1] | max, barbican_wsgi_processes_max] | min }}"
|
||||
barbican_wsgi_threads: 1
|
||||
barbican_apache_log_level: info
|
||||
barbican_apache_servertokens: "Prod"
|
||||
|
@ -1,7 +1,8 @@
|
||||
[uwsgi]
|
||||
socket = :9311
|
||||
protocol = http
|
||||
processes = 1
|
||||
processes = {{ barbican_wsgi_processes }}
|
||||
threads = {{ barbican_wsgi_threads }}
|
||||
lazy = true
|
||||
vacuum = true
|
||||
no-default-app = true
|
||||
|
Loading…
Reference in New Issue
Block a user