From 23ba17debe84f9564b8c660fb3576a0d33336f7f Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 22 Sep 2012 21:42:05 +0200 Subject: [PATCH] Set procpool debug status to False by default. --- contrib/procpools/python_procpool_plugin.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/contrib/procpools/python_procpool_plugin.py b/contrib/procpools/python_procpool_plugin.py index 1c7068bd48..337b47b5f0 100644 --- a/contrib/procpools/python_procpool_plugin.py +++ b/contrib/procpools/python_procpool_plugin.py @@ -18,9 +18,9 @@ settings.SERVER_SERVICES_PLUGINS_MODULES to that file instead. This is to avoid clashes with eventual upstream modifications to this file. It is not recommended to use this with an SQLite3 database, at least -if you plan to do many out-of-process database write - SQLite3 does +if you plan to do many out-of-process database writes. SQLite3 does not work very well with a high frequency of off-process writes due to -file locking clashes. +file locking clashes. Test what works with your mileage. """ import os @@ -32,17 +32,18 @@ from django.conf import settings # convenient flag to turn off process pool without changing settings PROCPOOL_ENABLED = True # relay process stdout to log (debug mode, very spammy) -PROCPOOL_DEBUG = True +PROCPOOL_DEBUG = False # max/min size of the process pool. Will expand up to max limit on demand. PROCPOOL_MIN_NPROC = 5 PROCPOOL_MAX_NPROC = 20 +# maximum time (seconds) a process may idle before being pruned from +# pool (if pool bigger than minsize) +PROCPOOL_IDLETIME = 20 # after sending a command, this is the maximum time in seconds the process # may run without returning. After this time the process will be killed. This # can be seen as a fallback; the run_async method takes a keyword proc_timeout # that will override this value on a per-case basis. PROCPOOL_TIMEOUT = 10 -# maximum time (seconds) a process may idle before being pruned from pool (if pool bigger than minsize) -PROCPOOL_IDLETIME = 20 # only change if the port clashes with something else on the system PROCPOOL_PORT = 5001 # 0.0.0.0 means listening to all interfaces