You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by el...@apache.org on 2022/09/20 20:50:12 UTC
[superset] 02/29: fix: make max-requests and max-requests-jitter adjustable (#20733)
This is an automated email from the ASF dual-hosted git repository.
elizabeth pushed a commit to branch 2.0-test
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 5efee17defc387eac2ea49b2a492e58953783aec
Author: Multazim Deshmukh <57...@users.noreply.github.com>
AuthorDate: Sun Jul 17 18:29:16 2022 +0530
fix: make max-requests and max-requests-jitter adjustable (#20733)
Co-authored-by: Multazim Deshmukh <mu...@morningstar.com>
(cherry picked from commit 883241070f5dd717d188b69dd681af127656283b)
---
docker/run-server.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/docker/run-server.sh b/docker/run-server.sh
index 064f47b9c2..1136852d02 100644
--- a/docker/run-server.sh
+++ b/docker/run-server.sh
@@ -28,6 +28,8 @@ gunicorn \
--threads ${SERVER_THREADS_AMOUNT:-20} \
--timeout ${GUNICORN_TIMEOUT:-60} \
--keep-alive ${GUNICORN_KEEPALIVE:-2} \
+ --max-requests ${WORKER_MAX_REQUESTS:0} \
+ --max-requests-jitter ${WORKER_MAX_REQUESTS_JITTER:0} \
--limit-request-line ${SERVER_LIMIT_REQUEST_LINE:-0} \
--limit-request-field_size ${SERVER_LIMIT_REQUEST_FIELD_SIZE:-0} \
"${FLASK_APP}"