mogan/etc/mogan-uwsgi.ini.sample
liusheng 80234fadce Support running api under uWSGI
This change add the support to run mogan-api server under uWSGI

Implements: bp support-uwsgi
Change-Id: I561028f39092b0b7aca5d5216dde36636be70b66
2017-07-18 08:38:15 +00:00

26 lines
515 B
Plaintext

[uwsgi]
wsgi-file = /usr/local/bin/mogan-api-wsgi
chmod-socket = 666
socket = /var/run/uwsgi/mogan-api-wsgi.socket
# Override the default size for headers from the 4k default.
buffer-size = 65535
# This is running standalone
master = true
enable-threads = true
# Tune this to your environment.
processes = 4
# uwsgi recommends this to prevent thundering herd on accept.
thunder-lock = true
plugins = python
# This ensures that file descriptors aren't shared between Searchlight processes.
lazy-apps = true