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.
This commit is contained in:
2016-08-24 11:17:50 +02:00
parent 5864654244
commit ba9d3e708d

View File

@@ -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 \