You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2022/08/30 12:41:45 UTC

[superset] 07/13: fix(docker): Make Gunicorn Keepalive Adjustable (#20348)

This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch 1.5
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 991a453ff29c915e825872e2b70b93795352b48e
Author: Multazim Deshmukh <57...@users.noreply.github.com>
AuthorDate: Sat Jun 11 01:34:39 2022 +0530

    fix(docker): Make Gunicorn Keepalive Adjustable (#20348)
    
    Co-authored-by: Multazim Deshmukh <mu...@morningstar.com>
    (cherry picked from commit 86368dd406b9e828f31186a4b6179d24758a7d87)
---
 docker/run-server.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docker/run-server.sh b/docker/run-server.sh
index 5519ff5d5c..064f47b9c2 100644
--- a/docker/run-server.sh
+++ b/docker/run-server.sh
@@ -27,6 +27,7 @@ gunicorn \
     --worker-class ${SERVER_WORKER_CLASS:-gthread} \
     --threads ${SERVER_THREADS_AMOUNT:-20} \
     --timeout ${GUNICORN_TIMEOUT:-60} \
+    --keep-alive ${GUNICORN_KEEPALIVE:-2} \
     --limit-request-line ${SERVER_LIMIT_REQUEST_LINE:-0} \
     --limit-request-field_size ${SERVER_LIMIT_REQUEST_FIELD_SIZE:-0} \
     "${FLASK_APP}"