General improvements.

This commit is contained in:
Scott Idem
2023-07-12 15:39:45 -04:00
parent 630bd1a61e
commit 7679a62cf1
3 changed files with 17 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ wsgi_app = "app.main:app"
# Setting a long timeout since some FastAPI API requests may take a while
timeout = 2100 # default 30; 1200 is NOT enough; worker process silent then kill and restart
graceful_timeout = 10 # default 30; timeout after restart signal
keepalive = 2 # default 2; setting higher because behind load balancer (nginx)
keepalive = 30 # default 2; setting higher because behind load balancer (nginx)
# Reload does not work correctly with UvicornWorker
# https://github.com/benoitc/gunicorn/issues/2339