2011-02-09 15:45:41 -05:00
|
|
|
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"
|
2011-03-19 19:24:14 -04:00
|
|
|
pidfile = "/home/sclay/newsblur/logs/gunicorn.pid"
|
2011-10-19 08:58:51 -07:00
|
|
|
logfile = "/home/sclay/newsblur/logs/production.log"
|
2011-11-22 12:08:18 -05:00
|
|
|
accesslog = "/home/sclay/newsblur/logs/production.log"
|
|
|
|
errorlog = "/home/sclay/newsblur/logs/errors.log"
|
2011-02-09 15:45:41 -05:00
|
|
|
loglevel = "debug"
|
|
|
|
name = "newsblur"
|
2012-01-08 20:47:34 -08:00
|
|
|
timeout = 120
|
2011-10-05 10:10:30 -07:00
|
|
|
max_requests = 1000
|
2011-08-26 23:43:15 -07:00
|
|
|
workers = numCPUs()
|