Skip to content

Commit

Permalink
Merge pull request #512 from EBISPOT/#498
Browse files Browse the repository at this point in the history
Set Solr mem env
  • Loading branch information
henrietteharmse authored Sep 19, 2023
2 parents ea9f723 + 3e1b02e commit 2fdc6ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ services:
image: solr:9.0.0
environment:
- SOLR_HOME=/mnt/ols4-solr-data
- SOLR_JAVA_MEM="-Xms2g -Xmx8g"
ports:
- 8983:8983
volumes:
Expand Down
6 changes: 4 additions & 2 deletions k8chart-dev/ols4/templates/ols4-solr-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,18 @@ spec:
args: ["echo Downloading data && rm -rf /data/solr && mkdir /data/solr && wget -qO- $SOLR_TARBALL_URL | tar -xz -C /data/ && echo Starting solr && solr-foreground -a -XX:CompileCommand=exclude,com.github.benmanes.caffeine.cache.BoundedLocalCache::put"]
resources:
requests:
memory: 20Gi
memory: 8Gi
cpu: 2
limits:
memory: 20Gi
memory: 8Gi
cpu: 2
env:
- name: SOLR_TARBALL_URL
value: {{.Values.solrTarballUrl}}
- name: SOLR_HOME
value: /data
- name: SOLR_JAVA_MEM
value: -Xms2g -Xmx4g
ports:
- containerPort: 8983

0 comments on commit 2fdc6ae

Please sign in to comment.