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:
@@ -17,7 +17,7 @@
|
|||||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
|
|
||||||
WSGIDaemonProcess cloud
|
WSGIDaemonProcess cloud processes=4 threads=1 maximum-requests=10000
|
||||||
WSGIPassAuthorization On
|
WSGIPassAuthorization On
|
||||||
|
|
||||||
WSGIScriptAlias / /data/git/blender-cloud/runserver.wsgi \
|
WSGIScriptAlias / /data/git/blender-cloud/runserver.wsgi \
|
||||||
|
Reference in New Issue
Block a user