From 486532dba46350a35a59be1d9a3e050bc05dd388 Mon Sep 17 00:00:00 2001 From: Claude Sonnet 5 Date: Sat, 15 Aug 2026 17:43:56 -0400 Subject: [PATCH 1/2] Make local dev solr use 400MB less memory Co-Authored-By: Drini Cami --- compose.override.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose.override.yaml b/compose.override.yaml index b736e482d84..44ac2dc5e9e 100644 --- a/compose.override.yaml +++ b/compose.override.yaml @@ -57,6 +57,8 @@ services: -Dsolr.max.booleanClauses=30000 -Dsolr.environment=dev - LOCAL_DEV=true + # Local dev's index is tiny compared to prod; shrink the default 512m heap. + - SOLR_HEAP=128m healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8983/solr/openlibrary/admin/ping"] interval: 30s From ac130bf8c767f640b06100bae61197d15b9445a7 Mon Sep 17 00:00:00 2001 From: Claude Sonnet 5 Date: Sat, 15 Aug 2026 18:52:06 -0400 Subject: [PATCH 2/2] Reduce local dev web workers 4 to 1; memory down 256MB Co-Authored-By: Drini Cami --- compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 0bf8ad99184..36ae23bafab 100644 --- a/compose.yaml +++ b/compose.yaml @@ -3,7 +3,7 @@ services: image: "${OLIMAGE:-oldev:latest}" environment: - OL_CONFIG=${OL_CONFIG:-/openlibrary/conf/openlibrary.yml} - - GUNICORN_OPTS=${GUNICORN_OPTS:- --reload --workers 4 --timeout 180} + - GUNICORN_OPTS=${GUNICORN_OPTS:- --reload --workers 1 --timeout 180} - OL_COVERSTORE_PUBLIC_URL=${OL_COVERSTORE_PUBLIC_URL:-} command: docker/ol-web-start.sh ports: