6b5a267065
uWSGI won't reload properly unless we use one of the built in options for uWSGI reloads: touch-reload pidfile reload using uwsgi binary This opts to use the pid file option, which uses the built in uWSGI --reload option along with the "pidfile" option specified in the conf file to reload the service. Change-Id: I720011f3486fa5c1cf8cf8f5d826ca726930f751
22 lines
594 B
Django/Jinja
22 lines
594 B
Django/Jinja
# {{ ansible_managed }}
|
|
[uwsgi]
|
|
uid = {{ nova_system_user_name }}
|
|
gid = {{ nova_system_group_name }}
|
|
|
|
virtualenv = /openstack/venvs/nova-{{ nova_venv_tag }}
|
|
wsgi-file = {{ nova_bin }}/{{ item.wsgi_name }}
|
|
http = 0.0.0.0:{{ item.uwsgi_port }}
|
|
|
|
master = true
|
|
enable-threads = true
|
|
processes = {{ nova_wsgi_processes }}
|
|
threads = {{ nova_wsgi_threads }}
|
|
exit-on-reload = false
|
|
die-on-term = true
|
|
lazy-apps = true
|
|
add-header = Connection: close
|
|
buffer-size = {{ nova_wsgi_buffer_size }}
|
|
thunder-lock = true
|
|
logfile-chmod = 644
|
|
pidfile = /var/run/{{ item.service_name }}/{{ item.service_name }}.pid
|