From d609e881c2b9e5e89b8ce593bb5f013cc97604fe Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 14 Dec 2020 09:43:07 +1100 Subject: [PATCH 1/2] Update default gunicorn conf file --- InvenTree/gunicorn.conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/InvenTree/gunicorn.conf.py b/InvenTree/gunicorn.conf.py index aeee2a366b..26dbc30aca 100644 --- a/InvenTree/gunicorn.conf.py +++ b/InvenTree/gunicorn.conf.py @@ -3,3 +3,7 @@ import multiprocessing bind = "0.0.0.0:8000" workers = multiprocessing.cpu_count() * 2 + 1 + +max_requests = 1000 +max_requests_jitter = 50 + From 55b7cd3d6a35ebf65c62022ce4fe04797d669b54 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 14 Dec 2020 10:44:38 +1100 Subject: [PATCH 2/2] PEP fix --- InvenTree/gunicorn.conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/InvenTree/gunicorn.conf.py b/InvenTree/gunicorn.conf.py index 26dbc30aca..0e5eee75f9 100644 --- a/InvenTree/gunicorn.conf.py +++ b/InvenTree/gunicorn.conf.py @@ -6,4 +6,3 @@ workers = multiprocessing.cpu_count() * 2 + 1 max_requests = 1000 max_requests_jitter = 50 -