From 8a5e77bd7155ae016969e8c175425809180da864 Mon Sep 17 00:00:00 2001 From: wklken Date: Tue, 16 Apr 2024 20:30:51 +0800 Subject: [PATCH] fix(esb/bin/start.sh): make max-requests smaller (#610) --- src/esb/bin/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/esb/bin/start.sh b/src/esb/bin/start.sh index 6df5a5b05..01523bd00 100755 --- a/src/esb/bin/start.sh +++ b/src/esb/bin/start.sh @@ -8,5 +8,5 @@ if [ -f "${envfile}" ]; then set +a fi -command="gunicorn wsgi --env prometheus_multiproc_dir=/tmp/ -k gevent -w ${GUNICORN_WORKERS:-16} -b [::]:${PORT:-6010} --max-requests ${GUNICORN_MAX_REQUESTS:-10000} --max-requests-jitter ${GUNICORN_MAX_REQUESTS_JITTER:-2000} --timeout 600 --graceful-timeout ${GUNICORN_GRACEFUL_TIMEOUT:-30} --keep-alive ${GUNICORN_KEEP_ALIVE:-0} --access-logfile - --error-logfile - --access-logformat '[%(h)s] %({request_id}i)s %(u)s %(t)s \"%(r)s\" %(s)s %(D)s %(b)s \"%(f)s\" \"%(a)s\"'" +command="gunicorn wsgi --env prometheus_multiproc_dir=/tmp/ -k gevent -w ${GUNICORN_WORKERS:-16} -b [::]:${PORT:-6010} --max-requests ${GUNICORN_MAX_REQUESTS:-5000} --max-requests-jitter ${GUNICORN_MAX_REQUESTS_JITTER:-200} --timeout 600 --graceful-timeout ${GUNICORN_GRACEFUL_TIMEOUT:-30} --keep-alive ${GUNICORN_KEEP_ALIVE:-0} --access-logfile - --error-logfile - --access-logformat '[%(h)s] %({request_id}i)s %(u)s %(t)s \"%(r)s\" %(s)s %(D)s %(b)s \"%(f)s\" \"%(a)s\"'" exec bash -c "$command"