From 5f5eb80b2bbaed9a2eb38570bb8136299fc6abaa Mon Sep 17 00:00:00 2001 From: Mohamed Abdel Wedoud Date: Wed, 9 Oct 2024 11:28:39 +0200 Subject: [PATCH] feat(scripts): set default number of workers to `(2*nproc + 1)` --- scripts/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start.sh b/scripts/start.sh index 9e7bb63d95..398a855ced 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -9,7 +9,7 @@ min() { echo $(( $1 < $2 ? $1 : $2 )) } -workers=$(min 30 ${NB_WORKERS_ANTARES:-17}) # default to 17 and max is 30 +workers=$(min 30 ${ANTARES_NB_WORKERS:-$((2*$(nproc) + 1))}) # default (2*nproc + 1) and max is 30 # Check for --no-gunicorn or --multiple-ports argument use_gunicorn=true