From d35fa560f317284424baed6a24132056839e1977 Mon Sep 17 00:00:00 2001 From: Sergey Lukjanov Date: Mon, 29 Aug 2016 23:46:15 -0700 Subject: [PATCH] Bump horizon wsgi props and make configurable In MOS we're using formula, but it should be more or less always correct to have 6/15 for CCP: https://github.com/openstack/fuel-library/blob/master/deployment/puppet/openstack_tasks/manifests/horizon/horizon.pp#L138-L139 Change-Id: Ib3e11642e4db9c8c417718db284ef418b031669f --- service/files/defaults.yaml | 3 +++ service/files/openstack-dashboard.conf.j2 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/service/files/defaults.yaml b/service/files/defaults.yaml index 6f7569c..b971b14 100644 --- a/service/files/defaults.yaml +++ b/service/files/defaults.yaml @@ -2,6 +2,9 @@ configs: horizon_port: 80 horizon_secret_key: secret + horizon_wsgi_processes: 6 + horizon_wsgi_threads: 15 + sources: openstack/horizon: git_url: https://github.com/openstack/horizon.git diff --git a/service/files/openstack-dashboard.conf.j2 b/service/files/openstack-dashboard.conf.j2 index 8411603..017fbf1 100644 --- a/service/files/openstack-dashboard.conf.j2 +++ b/service/files/openstack-dashboard.conf.j2 @@ -3,7 +3,7 @@ WSGIScriptAlias / {{ venv_path }}/openstack_dashboard/wsgi/django.wsgi WSGIScriptAlias /horizon {{ venv_path }}/openstack_dashboard/wsgi/django.wsgi - WSGIDaemonProcess horizon user=horizon group=horizon processes=3 threads=10 python-path={{ venv_path }} + WSGIDaemonProcess horizon user=horizon group=horizon processes={{ horizon_wsgi_processes }} threads={{ horizon_wsgi_threads }} python-path={{ venv_path }} WSGIProcessGroup horizon Alias /static {{ venv_path }}/static