Skip to content

Commit

Permalink
Merge pull request #441 from BoostryJP/feature/keepalive
Browse files Browse the repository at this point in the history
feat: keep-alive option
  • Loading branch information
YoshihitoAso authored Dec 15, 2022
2 parents 1af09fb + 5d30541 commit 1669dd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/run_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@ function start () {
WORKER_TIMEOUT=${WORKER_TIMEOUT:-30}
WORKER_MAX_REQUESTS=${WORKER_MAX_REQUESTS:-500}
WORKER_MAX_REQUESTS_JITTER=${WORKER_MAX_REQUESTS_JITTER:-200}
KEEP_ALIVE=${KEEP_ALIVE:-2}

gunicorn --worker-class server.AppUvicornWorker \
--workers ${WORKER_COUNT} \
--bind :5000 \
--timeout ${WORKER_TIMEOUT} \
--max-requests ${WORKER_MAX_REQUESTS} \
--max-requests-jitter ${WORKER_MAX_REQUESTS_JITTER} \
--keep-alive ${KEEP_ALIVE} \
--limit-request-line 0 \
app.main:app
}
Expand Down

0 comments on commit 1669dd7

Please sign in to comment.