009fff5471
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: I9dbdd75f4ac555378e6999243718d2b986071dde
21 lines
608 B
Django/Jinja
21 lines
608 B
Django/Jinja
[uwsgi]
|
|
uid = {{ cinder_system_user_name }}
|
|
gid = {{ cinder_system_group_name }}
|
|
|
|
virtualenv = /openstack/venvs/cinder-{{ cinder_venv_tag }}
|
|
wsgi-file = {{ cinder_bin }}/{{ item.wsgi_name }}
|
|
http = {{ item.uwsgi_bind_address }}:{{ item.uwsgi_port }}
|
|
|
|
master = true
|
|
enable-threads = true
|
|
processes = {{ cinder_wsgi_processes }}
|
|
threads = {{ cinder_wsgi_threads }}
|
|
exit-on-reload = false
|
|
die-on-term = true
|
|
lazy-apps = true
|
|
add-header = Connection: close
|
|
buffer-size = {{ cinder_wsgi_buffer_size }}
|
|
thunder-lock = true
|
|
logfile-chmod = 644
|
|
pidfile = /var/run/{{ item.service_name }}/{{ item.service_name }}.pid
|