Skip to content

Instantly share code, notes, and snippets.

@liwh
Created December 18, 2014 07:22
Show Gist options
  • Save liwh/c0c05e929aecc3e70abb to your computer and use it in GitHub Desktop.
Save liwh/c0c05e929aecc3e70abb to your computer and use it in GitHub Desktop.
[uwsgi]
socket = /data/app/run/%n.sock
pidfile2 = /data/app/run/%n.pid
logto2 = /data/app/logs/uwsgi.log
logdate = true
log-format = [%(addr)] [%(ctime)] [%(method)] [%(uri)] [%(proto)] [%(status)] [%(msecs)] [%(referer)] [%(uagent)]
memory-report = true
master = true
vacuum = true
virtualenv = /app/.heroku/python
chdir = /
module = django.core.handlers.wsgi:WSGIHandler()
env = DJANGO_CONF_MODULE=conf.testing
env = DJANGO_SETTINGS_MODULE=settings
cheaper = 1
cheaper-initial = 1
workers = 4
cheaper-algo = busyness
cheaper-overload = 5
cheaper-step = 2
cheaper-busyness-multiplier = 60
buffer-size = 8192
post-buffering = 8192
max-requests = 1024
reload-on-rss = 256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment