Run an additional thread so the GIL isn't sitting completely idle

This commit is contained in:
Jake Howard 2022-09-06 08:36:55 +01:00
parent b95506d711
commit fb453a3277
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -8,5 +8,8 @@ bind = "0.0.0.0"
max_requests = 1200 max_requests = 1200
max_requests_jitter = 100 max_requests_jitter = 100
# Run an additional thread so the GIL isn't sitting completely idle
threads = 2
# Replace gunicorn's 'Server' HTTP header # Replace gunicorn's 'Server' HTTP header
gunicorn.SERVER_SOFTWARE = gunicorn.SERVER = "Wouldn't you like to know" gunicorn.SERVER_SOFTWARE = gunicorn.SERVER = "Wouldn't you like to know"