From: Chris Fulljames Date: Thu, 24 Jul 2025 10:44:36 +0000 (-0400) Subject: Use threads to handle simultaneous requests X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=dba78d1a681743b89806e7c2358cdfd5747cb28e;p=littlesongplace.git Use threads to handle simultaneous requests --- diff --git a/service/run.sh b/service/run.sh index ed646d1..18dd070 100755 --- a/service/run.sh +++ b/service/run.sh @@ -3,5 +3,5 @@ PORT=$1 export DATA_DIR=$2 export SECRET_KEY=$(< "$DATA_DIR/secret.key") . venv/bin/activate -gunicorn -w 4 -b 127.0.0.1:$PORT 'littlesongplace:app' +gunicorn --workers 8 --worker-class gthread --threads 16 -b 127.0.0.1:$PORT 'littlesongplace:app'