From 91213d66b5b2d04aede940542ae6e8bd5663b0e7 Mon Sep 17 00:00:00 2001 From: zPlus Date: Tue, 12 Nov 2024 08:39:02 +0100 Subject: [PATCH] Add Gunicorn --workers and -threads arguments to SystemD service file, for handling parallel requests. --- website.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website.service b/website.service index 5c52480..fe7eb26 100644 --- a/website.service +++ b/website.service @@ -14,7 +14,7 @@ After=network.target # URI to Fuseki endpoint for querying Environment=FUSEKI_ENDPOINT=https://example.org:3030/dokk -ExecStart=/home/fuseki/dokk.org/venv/bin/gunicorn --bind localhost:8080 app:application +ExecStart=/home/fuseki/dokk.org/venv/bin/gunicorn --workers 2 --threads 4 --bind localhost:8080 app:application User=fuseki Group=fuseki