Skip to content

Commit 06449de

Browse files
authored
Merge pull request #11460 from internetarchive/fastapi-update-workers-2
set fastapi workers to 2
2 parents 9d34bc8 + 5ffbdc1 commit 06449de

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compose.production.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ services:
2727
restart: unless-stopped
2828
hostname: "$HOSTNAME"
2929
environment:
30-
- GUNICORN_OPTS= --workers 1 --timeout 300 --max-requests 500
30+
- GUNICORN_OPTS= --workers 2 --timeout 300 --max-requests 500
3131
- OL_CONFIG=/olsystem/etc/openlibrary.yml
3232
volumes:
3333
- ../booklending_utils:/booklending_utils

compose.staging.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ services:
3838
restart: unless-stopped
3939
hostname: "$HOSTNAME"
4040
environment:
41-
- GUNICORN_OPTS= --workers 1 --timeout 180 --max-requests 500
41+
- GUNICORN_OPTS= --workers 2 --timeout 180 --max-requests 500
4242
- OL_CONFIG=/olsystem/etc/openlibrary.yml
4343
volumes:
4444
- ../olsystem:/olsystem

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ services:
2020
image: "${OLIMAGE:-oldev:latest}"
2121
environment:
2222
- OL_CONFIG=${OL_CONFIG:-/openlibrary/conf/openlibrary.yml}
23-
- GUNICORN_OPTS=${GUNICORN_OPTS:- --reload --workers 1 --timeout 180 --max-requests 500}
23+
- GUNICORN_OPTS=${GUNICORN_OPTS:- --reload --workers 2 --timeout 180 --max-requests 500}
2424
command: docker/ol-web-fastapi-start.sh
2525
ports:
2626
- ${FAST_WEB_PORT:-18080}:8080

0 commit comments

Comments
 (0)