Skip to content

Commit

Permalink
Replicas = 2, workers = 5, threads = 1
Browse files Browse the repository at this point in the history
  • Loading branch information
KastanDay committed Jan 25, 2024
1 parent a960618 commit dffc85e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion railway.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
},
"deploy": {
"numReplicas": 3,
"numReplicas": 2,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 1
}
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# 200 MB object store memory.. necessary to statically allocate or will crash in Railway env restrictions.
ray start --head --num-cpus 6 --object-store-memory 300000000
export PYTHONPATH=${PYTHONPATH}:$(pwd)/ai_ta_backend
exec gunicorn --workers=4 --threads=1 --worker-class=gthread ai_ta_backend.main:app --timeout 1800
exec gunicorn --workers=5 --threads=1 --worker-class=gthread ai_ta_backend.main:app --timeout 1800

0 comments on commit dffc85e

Please sign in to comment.