Add parameters to configure number of processes and threads of horizon

Change-Id: Ib5490d504a5b7c9a37dda7babf1257aa661c11de
This commit is contained in:
Christian Berendt 2019-07-04 16:29:04 +02:00
parent 470108a1c0
commit dc3489df18
3 changed files with 13 additions and 1 deletions

View File

@ -97,6 +97,13 @@ horizon_logging_debug: "{{ openstack_logging_debug }}"
horizon_keystone_url: "{{ keystone_internal_url }}/v3"
####################
# Apache
####################
horizon_wsgi_processes: "{{ openstack_service_workers }}"
horizon_wsgi_threads: 1
####################
# Kolla
####################

View File

@ -12,7 +12,7 @@ TraceEnable off
CustomLog /var/log/kolla/horizon/horizon-access.log logformat
WSGIScriptReloading On
WSGIDaemonProcess horizon-http processes={{ openstack_service_workers }} threads=1 user=horizon group=horizon display-name=%{GROUP} python-path={{ python_path }}
WSGIDaemonProcess horizon-http processes={{ horizon_wsgi_processes }} threads={{ horizon_wsgi_threads }} user=horizon group=horizon display-name=%{GROUP} python-path={{ python_path }}
WSGIProcessGroup horizon-http
WSGIScriptAlias / {{ python_path }}/openstack_dashboard/wsgi/django.wsgi
WSGIPassAuthorization On

View File

@ -0,0 +1,5 @@
---
features:
- |
Added parameters ``horizon_wsgi_processes`` and ``horizon_wsgi_threads`` to configure
the number of processes and threads of WSGI in the Horizon container.