increase prod to 8 threads

This commit is contained in:
Hugh Rundle 2023-08-20 10:26:44 +10:00
parent 157648f23d
commit f7c304f192
No known key found for this signature in database
GPG key ID: A7E35779918253F9
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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