run-uwsgi.sh 849 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env sh
  2. set -e
  3. UWSGI_LISTEN="${UWSGI_LISTEN:-128}"
  4. PORT="${PORT:-8000}"
  5. CHEAPER_OVERLOAD="${UWSGI_CHEAPER_OVERLOAD:-30}"
  6. exec uwsgi \
  7. --module=glitchtip.wsgi:application \
  8. --env DJANGO_SETTINGS_MODULE=glitchtip.settings \
  9. --master --pidfile=/tmp/project-master.pid \
  10. --log-x-forwarded-for \
  11. --log-format-strftime \
  12. --http-socket=:$PORT \
  13. --cheaper-algo=busyness \
  14. --cheaper-overload=$CHEAPER_OVERLOAD \
  15. --cheaper-step=1 \
  16. --cheaper-busyness-max=50 \
  17. --cheaper-busyness-min=25 \
  18. --cheaper-busyness-multiplier=20 \
  19. --harakiri=60 \
  20. --max-requests=10000 \
  21. --die-on-term \
  22. --enable-threads \
  23. --single-interpreter \
  24. --post-buffering \
  25. --buffer-size=83146 \
  26. --ignore-sigpipe \
  27. --ignore-write-errors \
  28. --disable-write-exception \
  29. --listen=$UWSGI_LISTEN