From 028d3adabffd21bcb806b2fd12b003c14b454741 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Fri, 10 May 2013 14:57:40 -0400 Subject: [PATCH] [manual] Lower the max number of child processes that runfcgi can spawn The default is 50, which we believe was causing too much CPU contention in prod during restarts. This commit lowers the max to 20. The django-command-line script needs to be restarted manually to pick up this change. (imported from commit c2d097d2141be50b6222efb4a34142108c241cce) --- tools/django-command-line | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/django-command-line b/tools/django-command-line index 8fe931b11c..78b0994177 100755 --- a/tools/django-command-line +++ b/tools/django-command-line @@ -1,2 +1,2 @@ #!/bin/sh -x -while true; do python /home/humbug/humbug-deployments/current/manage.py runfcgi socket=/home/humbug/humbug-deployments/current/fastcgi-socket outlog=/home/humbug/logs/app.out errlog=/humbug/humbug/logs/app.err daemonize=False; sleep 0.2; done +while true; do python /home/humbug/humbug-deployments/current/manage.py runfcgi socket=/home/humbug/humbug-deployments/current/fastcgi-socket outlog=/home/humbug/logs/app.out errlog=/humbug/humbug/logs/app.err daemonize=False maxchildren=20; sleep 0.2; done