Skip to content

Commit

Permalink
feat(scripts): set default number of workers to (2*nproc + 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mabw-rte committed Oct 9, 2024
1 parent 04aac54 commit 5f5eb80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f5eb80

Please sign in to comment.