1 {% set work_threads = (ansible_processor_vcpus + 1) // 2 %}
2 {% if work_threads > 10 %}
3 {% set work_threads = 10 %}
6 <VirtualHost {{ internal_ip }}:80>
7 WSGIScriptAlias /horizon {{ horizon_dir }}/wsgi/django.wsgi
8 WSGIDaemonProcess horizon user=horizon group=horizon processes=4 threads={{ work_threads }}
9 WSGIProcessGroup horizon
10 Alias /static {{ horizon_dir }}/static/
11 Alias /horizon/static {{ horizon_dir }}/static/
12 <Directory {{ horizon_dir }}/wsgi>