mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Upgrading gunicorn, using restart (instead of that infernal stop;sleep;start cycle), and upping workers to handle onslaught.
This commit is contained in:
parent
8bde22d1bd
commit
371f456b3d
2 changed files with 1 additions and 2 deletions
|
@ -8,4 +8,3 @@ def numCPUs():
|
|||
bind = "127.0.0.1:8000"
|
||||
pidfile = "/tmp/gunicorn_newsblur.pid"
|
||||
workers = numCPUs() # * 2 + 1
|
||||
workers = 1
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue