Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 324 Bytes
import os
def numCPUs():
if not hasattr(os, "sysconf"):
raise RuntimeError("No sysconf detected.")
return os.sysconf("SC_NPROCESSORS_ONLN")
bind = "127.0.0.1:8000"
pidfile = "/tmp/gunicorn_newsblur.pid"
logfile = "/home/conesus/newsblur/logs/production.log"
loglevel = "debug"
workers = numCPUs() #* 2 + 1