Skip to content

Commit f5cd065

Browse files
committed
update prod.yml, SOLR, Postgres
1 parent 2765216 commit f5cd065

File tree

6 files changed

+28
-11
lines changed

6 files changed

+28
-11
lines changed

docker-compose.prod.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '3.1'
33
services:
44
db:
55
container_name: ${NAME}-db
6-
image: postgres:12
6+
image: postgres:16
77
restart: unless-stopped
88
environment:
99
- POSTGRES_USER=${DB_USER}
@@ -15,15 +15,15 @@ services:
1515
- ${DB_PORT}:5432
1616
solr:
1717
container_name: ${NAME}-solr
18-
image: mycoreorg/mir-solr:2022.06.x
18+
image: mycoreorg/mir-solr:2023.06.x
1919
restart: unless-stopped
2020
volumes:
2121
- ${SOLR_DATA}:/var/solr/data
2222
ports:
2323
- ${SOLR_HTTP}:8983
2424
mir:
2525
container_name: ${NAME}-mir
26-
image: mycoreorg/mir:2022.06.x
26+
image: mycoreorg/mir:2023.06.x
2727
restart: unless-stopped
2828
environment:
2929
- APP_CONTEXT=${APP_CONTEXT}

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '3.1'
33
services:
44
db:
55
container_name: ${NAME}-db
6-
image: postgres:12
6+
image: postgres:16
77
restart: unless-stopped
88
environment:
99
- POSTGRES_USER=${DB_USER}

mir-webapp/src/main/solr/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM solr:8.11
1+
FROM solr:9.6
22
USER root
33
RUN apt-get update && \
44
apt-get -y install sudo

mir-webapp/src/main/solr/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,5 @@ echo " }" >> $secruity_json
104104
echo " }" >> $secruity_json
105105
echo "}" >> $secruity_json
106106

107-
(/opt/docker-solr/scripts/wait-for-solr.sh;/opt/solr/bin/solr zk cp $secruity_json zk:security.json -z localhost:9983)&
108-
/opt/docker-solr/scripts/solr-foreground -c;
107+
(/opt/solr/docker/scripts/wait-for-solr.sh;/opt/solr/bin/solr zk cp $secruity_json zk:security.json -z localhost:9983)&
108+
/opt/solr/docker/scripts/solr-foreground -c;

mir-webapp/src/main/solr/solr.xml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,22 @@
2323
2424
More information about options available in this configuration file,
2525
and Solr Core administration can be found online:
26-
https://lucene.apache.org/solr/guide/format-of-solr-xml.html
26+
https://solr.apache.org/guide/solr/latest/configuration-guide/configuring-solr-xml.html
2727
-->
2828

2929
<solr>
3030

3131
<int name="maxBooleanClauses">${solr.max.booleanClauses:1024}</int>
3232
<str name="sharedLib">${solr.sharedLib:}</str>
33+
<str name="modules">${solr.modules:}</str>
3334
<str name="allowPaths">${solr.allowPaths:}</str>
35+
<str name="allowUrls">${solr.allowUrls:}</str>
36+
<str name="hideStackTrace">${solr.hideStackTrace:false}</str>
3437

3538
<solrcloud>
3639

3740
<str name="host">${host:}</str>
3841
<int name="hostPort">${solr.port.advertise:0}</int>
39-
<str name="hostContext">${hostContext:solr}</str>
4042

4143
<bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
4244

@@ -45,16 +47,30 @@
4547
<int name="distribUpdateConnTimeout">${distribUpdateConnTimeout:60000}</int>
4648
<str name="zkCredentialsProvider">${zkCredentialsProvider:org.apache.solr.common.cloud.DefaultZkCredentialsProvider}</str>
4749
<str name="zkACLProvider">${zkACLProvider:org.apache.solr.common.cloud.DefaultZkACLProvider}</str>
50+
<str name="zkCredentialsInjector">${zkCredentialsInjector:org.apache.solr.common.cloud.DefaultZkCredentialsInjector}</str>
51+
<bool name="distributedClusterStateUpdates">${distributedClusterStateUpdates:false}</bool>
52+
<bool name="distributedCollectionConfigSetExecution">${distributedCollectionConfigSetExecution:false}</bool>
53+
<int name="minStateByteLenForCompression">${minStateByteLenForCompression:-1}</int>
54+
<str name="stateCompressor">${stateCompressor:org.apache.solr.common.util.ZLibCompressor}</str>
4855

4956
</solrcloud>
5057

5158
<shardHandlerFactory name="shardHandlerFactory"
5259
class="HttpShardHandlerFactory">
5360
<int name="socketTimeout">${socketTimeout:600000}</int>
5461
<int name="connTimeout">${connTimeout:60000}</int>
55-
<str name="shardsWhitelist">${solr.shardsWhitelist:}</str>
5662
</shardHandlerFactory>
5763

58-
<metrics enabled="${metricsEnabled:true}"/>
64+
<metrics enabled="${metricsEnabled:true}">
65+
<!-- Solr computes JVM metrics for threads. Computing these metrics, esp. computing deadlocks etc.,
66+
requires potentially expensive computations, and can be avoided for every metrics call by
67+
setting a high caching expiration interval (in seconds).
68+
<caching>
69+
<int name="threadsIntervalSeconds">5</int>
70+
</caching>
71+
-->
72+
<!--reporter name="jmx_metrics" group="core" class="org.apache.solr.metrics.reporters.SolrJmxReporter"/-->
73+
</metrics>
74+
5975

6076
</solr>

mir-webapp/src/main/solr/zoo.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ syncLimit=5
3131
#autopurge.purgeInterval=1
3232

3333
# Disable ZK AdminServer since we do not use it
34+
admin.enableServer=false

0 commit comments

Comments
 (0)