Skip to content

Instantly share code, notes, and snippets.

@micahhausler
Created November 16, 2015 23:13
Show Gist options
  • Save micahhausler/417b19b9f1dd51f0ed5f to your computer and use it in GitHub Desktop.
Save micahhausler/417b19b9f1dd51f0ed5f to your computer and use it in GitHub Desktop.
uwsgi command parameters
newrelic-admin run-program /usr/local/bin/uwsgi \
--stats=/path/to/socket/socket.sock \
--close-on-exec \
--enable-threads \
--master \
--max-requests=100 \
--module=project.wsgi \
--harakiri=60 \
--env=DJANGO_SETTINGS_MODULE=project.settings \
--py-tracebacker=/path/to/traceback/socket \
--post-buffering=1 \
--chdir=/path/to/project/home \
--workers=8 \
--home=/path/to/virtual/env \
--harakiri-verbose \
--single-interpreter \
--pythonpath=/path/to/project \
--socket-timeout=60 \
--socket=/path/to/socket.sock\
--buffer-size=65535
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment