add gunicorn keepalive setting (#19537)

Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: Bowen Liang <liang.bowen.123@qq.com>
This commit is contained in:
kelvintsim
2025-05-13 10:28:13 +08:00
committed by GitHub
parent 16a4f77fb4
commit 88cd9aedb7
3 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,7 @@ else
--worker-class ${SERVER_WORKER_CLASS:-gevent} \
--worker-connections ${SERVER_WORKER_CONNECTIONS:-10} \
--timeout ${GUNICORN_TIMEOUT:-200} \
--keep-alive ${GUNICORN_KEEP_ALIVE:-2} \
app:app
fi
fi