summaryrefslogtreecommitdiff
path: root/uwsgi/apps-available/local-django-app.ini
blob: 9779aee9fa0a7542922cbb3af604c2b6f891c766 (plain)
  1. [uwsgi]
  2. single-interpreter True
  3. plugins = python
  4. uid = www-django-app
  5. #gid = www-data
  6. #umask = 007
  7. #chdir = /home/www-django-app/foo
  8. #module = django.core.handlers.wsgi:WSGIHandler()
  9. #module = myapp.wsgi:application
  10. wsgi-file = /home/www-django-app/foo/myapp.wsgi
  11. master = True
  12. workers = 8
  13. cheaper = 4
  14. threads = 2
  15. #static-map = /media/=/home/www-sjango-app/foo/static/media/
  16. #static-map = /robots.txt=/home/www-django-app/foo/static/robots.txt
  17. #static-map = /favicon.ico=/home/www-django-app/foo/static/favicon.ico
  18. #memory-report = True
  19. # set workers/threads, enable memory-report for a little while, consult
  20. # logfile for sensible threshold for reload-on-rss, and only then enable
  21. #reload-on-rss = 40
  22. # merge identical memory pages after every 5th request
  23. # more info at <http://uwsgi-docs.readthedocs.org/en/latest/KSM.html>
  24. ksm = 5