]> littlesong.place Git - littlesongplace.git/commitdiff
Use threads to handle simultaneous requests
authorChris Fulljames <christianfulljames@gmail.com>
Thu, 24 Jul 2025 10:44:36 +0000 (06:44 -0400)
committerChris Fulljames <christianfulljames@gmail.com>
Thu, 24 Jul 2025 10:44:36 +0000 (06:44 -0400)
service/run.sh

index ed646d1dfc156c6e64e1cf66490089d2b3b65824..18dd0704954387fe033e7ca9d5697d20c7d60b59 100755 (executable)
@@ -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'