From 5524879dea375e2971e2685c04d73702387caa60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20MOHIER?= Date: Wed, 1 Feb 2017 06:15:18 +0100 Subject: [PATCH] Update uwsgi.ini file - lazy-apps --- etc/uwsgi.ini | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/etc/uwsgi.ini b/etc/uwsgi.ini index c682e99d..ecbfd1d9 100644 --- a/etc/uwsgi.ini +++ b/etc/uwsgi.ini @@ -1,5 +1,5 @@ [uwsgi] -http-socket = 0.0.0.0:5001 +http-socket = 0.0.0.0:5000 # Uncomment if you installed from distribution packaging # plugin = python @@ -12,16 +12,21 @@ module = alignak_backend.app:app enable-threads = true processes = 4 +# Each detached worker loads its own app instance +lazy-apps = true + # Log activity in those files req-logger = file:/usr/local/var/log/alignak-backend-access.log logger = file:/usr/local/var/log/alignak-backend-error.log +# Report memory activity to the stats memory-report = true -# Define specific uid/gid if needed -# uid = root -# guid = root +# Define specific uid/gid if uWSGI started as root +# uid = alignak +# guid = alignak +# Default buffer size for HTTP header is very low (4096) buffer-size = 32768 # uWSGI master process: use a master process and store its pid