chore: make default worker count as 2

This commit is contained in:
Abhishek Kumar 2026-06-18 14:48:23 +05:30
parent bec8a23dfb
commit 867856d108
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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