mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-19 08:28:10 +02:00
chore: make default worker count as 2
This commit is contained in:
parent
bec8a23dfb
commit
867856d108
2 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue