Skip to content

Commit de5d15d

Browse files
committed
Improved deployment.
1 parent 4377ffa commit de5d15d

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
services:
2-
solr:
2+
nameres_solr:
33
container_name: nameres_solr
44
image: solr:9.1
5+
mem_limit: 18G
56
environment:
67
# Change this setting to control how much memory you would like your Solr setup to have.
78
# Note that your Docker will need to be configured to allow this amount of memory.
8-
SOLR_JAVA_MEM: '-Xms25G -Xmx25G'
9+
SOLR_JAVA_MEM: '-Xmx16G'
910
ports:
1011
- '8983:8983'
1112
command: ['-DzkRun']

documentation/Deployment.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ instance or from Translator.
3131
* By default, the Docker Compose file will use the latest released version of NameRes
3232
as the frontend. To use the source code in this repository, you will need to change
3333
the build instructions for the `nameres` service in the Docker Compose file.
34+
* By default, Solr will be given 16G of memory, which seems sufficient for testing.
35+
If you want to run many Solr queries, you might want to increase this. To do this,
36+
you will need to change BOTH the `mem_limit` setting in the `nameres_solr` service in
37+
`docker-compose.yml` and the `SOLR_JAVA_MEM` setting.
3438
6. Start the Solr and NameRes pods by running `docker compose up`. By default, Docker Compose
3539
will download and start the relevant pods and show you logs from both sources. You may
3640
press `Ctrl+C` to stop the pods.

0 commit comments

Comments
 (0)