Skip to content

Commit 9f1dc31

Browse files
committed
Add gunicorn.conf.py
1 parent 3fdede8 commit 9f1dc31

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gunicorn.conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# If you are not having memory issues, just delete this.
2+
# This is primarily to prevent memory leaks
3+
# Based on https://devcenter.heroku.com/articles/python-gunicorn
4+
# Based on https://adamj.eu/tech/2019/09/19/working-around-memory-leaks-in-your-django-app/
5+
# https://docs.gunicorn.org/en/latest/settings.html#max-requests
6+
# https://docs.gunicorn.org/en/latest/settings.html#max-requests-jitter
7+
max_requests = 1200
8+
max_requests_jitter = 100

0 commit comments

Comments
 (0)