From 371f456b3d441c97a83344fa12e160abdd7d1578 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Fri, 13 Aug 2010 12:14:48 -0400 Subject: [PATCH] Upgrading gunicorn, using restart (instead of that infernal stop;sleep;start cycle), and upping workers to handle onslaught. --- gunicorn.py | 1 - utils/restart | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gunicorn.py b/gunicorn.py index 858e8beba..050c71c0c 100644 --- a/gunicorn.py +++ b/gunicorn.py @@ -8,4 +8,3 @@ def numCPUs(): bind = "127.0.0.1:8000" pidfile = "/tmp/gunicorn_newsblur.pid" workers = numCPUs() # * 2 + 1 -workers = 1 diff --git a/utils/restart b/utils/restart index 6e39fece5..7bacd0caa 100755 --- a/utils/restart +++ b/utils/restart @@ -1,3 +1,3 @@ #!/bin/sh #ps aux | grep 8080 | egrep -v 'grep' | awk '{print $2}' | xargs kill; ./manage.py runfcgi method=threaded host=127.0.0.1 port=8080 -sudo /etc/init.d/gunicorn stop && sleep 1 && sudo /etc/init.d/gunicorn start & +sudo /etc/init.d/gunicorn restart