# kodo_uwsgi.ini file
[uwsgi]

# Django-related settings
# the base directory (full path)
chdir           = /home/paiai/work/kodo
# Django's wsgi file
module          = kodo.wsgi
# the virtualenv (full path)
# home            = /path/to/virtualenv

# process-related settings
# master
master          = true
# maximum number of worker processes
processes       = 10
# the socket (use the full path to be safe
socket          = /home/paiai/work/kodo/kodo/deploy/kodo.sock
# ... with appropriate permissions - may be needed
chmod-socket    = 777
# clear environment on exit
vacuum          = true

# connect() to unix:///home/xxx/xxx.sock failed (11: Resource temporarily unavailable) while connecting to upstream
# Exec sysctl.sh first
# #!/bin/bash
# sudo sysctl -w net.core.somaxconn=65535
# sudo sysctl -w net.core.netdev_max_backlog=65535
reload-mercy    = 64
max-requests    = 8192
listen          = 8192

# recv() failed (104: Connection reset by peer) while reading response header from upstream
buffer-size     = 65535
