Skip to content

Commit

Permalink
Reduce threads from 1_000 to 100. more sensible
Browse files Browse the repository at this point in the history
  • Loading branch information
KastanDay committed Mar 8, 2024
1 parent 5951fe4 commit ae00694
Showing 1 changed file with 1 addition and 1 deletion.
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=3 --threads=20000 --worker-class=gthread ai_ta_backend.main:app --timeout 1800
exec gunicorn --workers=3 --threads=100 --worker-class=gthread ai_ta_backend.main:app --timeout 1800

0 comments on commit ae00694

Please sign in to comment.