Skip to content

Commit 0c6a1b9

Browse files
jr-rkclaude
andauthored
Make Solr heap tunable via SOLR_HEAP (default 4g, no behavior change) (#1332)
Backport of #1309 to customer/vsb-tuo. Translate (not cherry-pick) the single Solr heap line against this branch's actual compose file: it launches Solr with -p ${SOLR_PORT}, so only the -m 4g argument is changed to -m "${SOLR_HEAP:-4g}". With SOLR_HEAP unset the 4g default is preserved; AlwaysPreTouch no longer forces the full 4g commit when a smaller heap is set. Refs dataquest-dev/dspace-customers#746 Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 468a58a commit 0c6a1b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docker/docker-compose-rest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ services:
146146
cp -r /opt/solr/server/solr/configsets/search/* search
147147
precreate-core statistics /opt/solr/server/solr/configsets/statistics
148148
cp -r /opt/solr/server/solr/configsets/statistics/* statistics
149-
exec solr -p ${SOLR_PORT} -f -m 4g
149+
exec solr -p ${SOLR_PORT} -f -m "${SOLR_HEAP:-4g}"
150150
volumes:
151151
# Commented out because there are a lot of files in the assetstore
152152
assetstore:

0 commit comments

Comments
 (0)