From ba9d3e708d52b85a7641a0d2059bd0b5b3af6303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 24 Aug 2016 11:17:50 +0200 Subject: [PATCH] Docker image WSGI: use multi-processing rather than multi-threading. Also set a max number of requests a process is allowed to handle before it is restarted. This limits the scope of possible memory leaks, etc. --- docker/3_run/000-default.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/3_run/000-default.conf b/docker/3_run/000-default.conf index facfd1c..c369c5c 100644 --- a/docker/3_run/000-default.conf +++ b/docker/3_run/000-default.conf @@ -17,7 +17,7 @@ ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined - WSGIDaemonProcess cloud + WSGIDaemonProcess cloud processes=4 threads=1 maximum-requests=10000 WSGIPassAuthorization On WSGIScriptAlias / /data/git/blender-cloud/runserver.wsgi \