Skip to content

Commit 5835a13

Browse files
authored
Merge pull request #12341 from internetarchive/perf/prod-worker-counts
Adjust Gunicorn worker settings in production config
2 parents c46d346 + 3f9eb66 commit 5835a13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compose.production.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
restart: unless-stopped
1313
hostname: "$HOSTNAME"
1414
environment:
15-
- GUNICORN_OPTS= --workers 30 --timeout 300 --max-requests 1500
15+
- GUNICORN_OPTS= --workers 28 --timeout 300 --max-requests 1500
1616
- OL_CONFIG=/olsystem/etc/openlibrary.yml
1717
# Note this won't work with uv pip, because uv makes a network request
1818
- BEFORE_START=pip install -e /booklending_utils
@@ -27,7 +27,7 @@ services:
2727
restart: unless-stopped
2828
hostname: "$HOSTNAME"
2929
environment:
30-
- GUNICORN_OPTS= --workers 2 --timeout 300 --max-requests 1500
30+
- GUNICORN_OPTS= --workers 4 --timeout 300 --max-requests 1500
3131
- OL_CONFIG=/olsystem/etc/openlibrary.yml
3232
volumes:
3333
- ../booklending_utils:/booklending_utils

0 commit comments

Comments
 (0)