Files
openstack-ansible-os_cloudk…/templates/cloudkitty-uwsgi.ini.j2
Christian Zunker cdfa3b13c9 Configure cloudkitty-api to use uwsgi
Accoring to the cloudkitty docs it is strongly recommended to
install the API server in a WSGI host such as mod_wsgi.

The tasks are a combination of os_cinder steps and the cloudkitty
docs for wsgi:
https://docs.openstack.org/cloudkitty/latest/install/mod_wsgi.html#mod-wsgi

Change-Id: I4173a32f4989f7e23205083738ccd81f7ea6f9f6
Closes-Bug: 1769632
2018-11-20 11:31:48 +01:00

24 lines
698 B
Django/Jinja

# {{ ansible_managed }}
[uwsgi]
uid = {{ cloudkitty_system_user_name }}
gid = {{ cloudkitty_system_group_name }}
virtualenv = /openstack/venvs/cloudkitty-{{ cloudkitty_venv_tag }}
wsgi-file = {{ cloudkitty_bin }}/cloudkitty-wsgi.py
http = :{{ cloudkitty_service_port }}
logto = {{ cloudkitty_log_dir }}/cloudkitty-api.log
master = true
enable-threads = true
processes = {{ cloudkitty_wsgi_processes }}
threads = {{ cloudkitty_wsgi_threads }}
exit-on-reload = true
die-on-term = true
lazy-apps = true
add-header = Connection: close
buffer-size = 65535
thunder-lock = true
# Avoid filling up the logs with health check requests from haproxy.
route-user-agent = ^osa-haproxy-healthcheck$ donotlog: