From dba78d1a681743b89806e7c2358cdfd5747cb28e Mon Sep 17 00:00:00 2001 From: Chris Fulljames Date: Thu, 24 Jul 2025 06:44:36 -0400 Subject: [PATCH] Use threads to handle simultaneous requests --- service/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- 2.39.5