From f7c304f1922439fd8034bc41911874c9c3a23dfd Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sun, 20 Aug 2023 10:26:44 +1000 Subject: [PATCH] increase prod to 8 threads --- contrib/systemd/bookwyrm.service | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/systemd/bookwyrm.service b/contrib/systemd/bookwyrm.service index ce11377d5..0e7bd96e5 100644 --- a/contrib/systemd/bookwyrm.service +++ b/contrib/systemd/bookwyrm.service @@ -6,7 +6,7 @@ After=network.target postgresql.service redis.service User=bookwyrm Group=bookwyrm WorkingDirectory=/opt/bookwyrm/ -ExecStart=/opt/bookwyrm/venv/bin/gunicorn bookwyrm.wsgi:application --threads=2 --bind 0.0.0.0:8000 +ExecStart=/opt/bookwyrm/venv/bin/gunicorn bookwyrm.wsgi:application --threads=8 --bind 0.0.0.0:8000 StandardOutput=journal StandardError=inherit diff --git a/docker-compose.yml b/docker-compose.yml index 39081acbf..f16287ccb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -47,7 +47,7 @@ services: web: build: . env_file: .env - command: gunicorn bookwyrm.wsgi:application --threads=2 --bind 0.0.0.0:8000 + command: gunicorn bookwyrm.wsgi:application --threads=8 --bind 0.0.0.0:8000 logging: *default-logging volumes: - .:/app