From da89510eee24fbf9a994143bd83a8122fae9ec50 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 30 Aug 2022 21:38:12 +0100 Subject: [PATCH] Restart workers after a given number of requests --- etc/gunicorn.conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/gunicorn.conf.py b/etc/gunicorn.conf.py index ed7cc64..aacca75 100644 --- a/etc/gunicorn.conf.py +++ b/etc/gunicorn.conf.py @@ -5,6 +5,8 @@ accesslog = "-" disable_redirect_access_to_syslog = True preload_app = True bind = "0.0.0.0" +max_requests = 1200 +max_requests_jitter = 100 # Replace gunicorn's 'Server' HTTP header gunicorn.SERVER_SOFTWARE = gunicorn.SERVER = "Wouldn't you like to know"