From 867856d1084ac37749b01992d6b789eb09861a32 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 18 Jun 2026 14:48:23 +0530 Subject: [PATCH] chore: make default worker count as 2 --- scripts/setup_remote.sh | 6 +++--- scripts/update_remote.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/setup_remote.sh b/scripts/setup_remote.sh index 919c881d..f1a0d149 100755 --- a/scripts/setup_remote.sh +++ b/scripts/setup_remote.sh @@ -135,10 +135,10 @@ if [[ -z "$FASTAPI_WORKERS" ]]; then if [[ -t 0 ]]; then echo "" echo -e "${YELLOW}Number of FastAPI workers (uvicorn processes nginx will load-balance):${NC}" - read -p "[4]: " FASTAPI_WORKERS - FASTAPI_WORKERS="${FASTAPI_WORKERS:-4}" + read -p "[2]: " FASTAPI_WORKERS + FASTAPI_WORKERS="${FASTAPI_WORKERS:-2}" else - FASTAPI_WORKERS="4" + FASTAPI_WORKERS="2" fi fi diff --git a/scripts/update_remote.sh b/scripts/update_remote.sh index 119439b7..1dc75e71 100755 --- a/scripts/update_remote.sh +++ b/scripts/update_remote.sh @@ -71,10 +71,10 @@ if [[ -z "${FASTAPI_WORKERS:-}" ]]; then if [[ -t 0 ]]; then echo "" echo -e "${YELLOW}FASTAPI_WORKERS not set in .env. Number of uvicorn workers nginx will load-balance:${NC}" - read -p "[4]: " FASTAPI_WORKERS - FASTAPI_WORKERS="${FASTAPI_WORKERS:-4}" + read -p "[2]: " FASTAPI_WORKERS + FASTAPI_WORKERS="${FASTAPI_WORKERS:-2}" else - FASTAPI_WORKERS="4" + FASTAPI_WORKERS="2" fi fi