Updates to make Docker Compose better

This commit is contained in:
Scott Idem
2023-09-08 13:13:01 -04:00
parent 7679a62cf1
commit cccf9fd24f
6 changed files with 14 additions and 27 deletions

View File

@@ -23,8 +23,8 @@ 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 = 30 # default 2; setting higher because behind load balancer (nginx)
graceful_timeout = 20 # default 30; timeout after restart signal; tried 10 2023-07-11
keepalive = 30 # default 2; setting higher because behind load balancer (nginx); tried 10 2023-07-11
# Reload does not work correctly with UvicornWorker
# https://github.com/benoitc/gunicorn/issues/2339