Skip to content

Instantly share code, notes, and snippets.

@co-dh
Created September 25, 2013 13:59
Show Gist options
  • Save co-dh/6700053 to your computer and use it in GitHub Desktop.
Save co-dh/6700053 to your computer and use it in GitHub Desktop.
[uwsgi]
wsgi-file = srv.py
master
processes = 8
#threads = 2 Using thread will breaks the server for now.
pidfile = /tmp/uwsgi.pid
cache2 = name=test,items=2,blocksize=10,keysize=5
cache2 = name=users,items=40000,blocksize=16384,keysize=64,bitmap=1
cache2 = name=general,items=65536,blocksize=16384,keysize=1024,bitmap=1
cache2 = name=volume,items=65536,blocksize=16384,keysize=1024,bitmap=1
cache2 = name=agents,items=60000,blocksize=80960,keysize=128,bitmap=1
cache2 = name=applications,items=20000,blocksize=51200,keysize=40,bitmap=1
cache2 = name=merchants,items=20000,blocksize=51200,keysize=40,bitmap=1
cache2 = name=tasks,items=20000,blocksize=51200,keysize=40,bitmap=1
add-header = Connection: Keep-Alive
reload-mercy = 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment