From fb453a327787232c6548fae9f1242e9ee120f26f Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 6 Sep 2022 08:36:55 +0100 Subject: [PATCH] Run an additional thread so the GIL isn't sitting completely idle --- etc/gunicorn.conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/gunicorn.conf.py b/etc/gunicorn.conf.py index aacca75..27493f1 100644 --- a/etc/gunicorn.conf.py +++ b/etc/gunicorn.conf.py @@ -8,5 +8,8 @@ bind = "0.0.0.0" max_requests = 1200 max_requests_jitter = 100 +# Run an additional thread so the GIL isn't sitting completely idle +threads = 2 + # Replace gunicorn's 'Server' HTTP header gunicorn.SERVER_SOFTWARE = gunicorn.SERVER = "Wouldn't you like to know"