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