Skip to content

Instantly share code, notes, and snippets.

@mlowicki
Created November 27, 2015 14:17
Show Gist options
  • Save mlowicki/cbd18c689c3e2f838bf0 to your computer and use it in GitHub Desktop.
Save mlowicki/cbd18c689c3e2f838bf0 to your computer and use it in GitHub Desktop.
# uWSGI configuration for sync
#
# This uwsgi configuration is managed by Puppet.
# Do not edit this file. Your changes will be lost.
[uwsgi]
# Setuid to the specified user/uid
uid = uwsgi
# Setgid to the specified group/gid
gid = uwsgi
vhost =
# Load uWSGI plugins (comma-separated)
plugins = python
pidfile = /tmp/sync_uwsgi
socket = /run/uwsgi/app/sync/socket
chmod-socket = 666
master = true
enable-threads = true
lazy-apps = true
processes = 40
cpu-affinity = 1
wsgi-file = /var/www/sync/app/current/src/bin/django.wsgi
# Every request that will take longer than the seconds specified in the
# harakiri timeout will be dropped and the corresponding worker is thereafter
# recycled.
harakiri = 40
# Log only errors
disable-logging = true
listen = 4096
stats = /var/run/uwsgi/app/sync/statsocket
threads = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment