Skip to content

Commit dad0bc0

Browse files
authored
Klass-solr prod: More memory and more heap (#359)
1 parent 6878fff commit dad0bc0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.nais/prod/klass-solr.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,24 @@ spec:
1616
filesFrom:
1717
- persistentVolumeClaim: klass-solr-pvc
1818
mountPath: /opt/solr/server/solr/mycores/Klass/data
19+
env:
20+
# Solr crashed with JAVA_TOOL_OPTIONS ref: https://github.com/apache/lucene-solr/pull/405
21+
# so we use this variable ref: https://solr.apache.org/guide/6_6/taking-solr-to-production.html#TakingSolrtoProduction-MemoryandGCSettings
22+
# Solr sets -Xmx512m by default so we MUST override this setting, otherwise the heap allocation will remain constrained
23+
# Value should be 50% of memory request
24+
- name: SOLR_JAVA_MEM
25+
value: "-Xms1g -Xmx1g"
1926

2027
replicas:
2128
min: 1
2229
max: 1
2330
resources:
2431
requests:
2532
cpu: 400m
26-
memory: 1024Mi
33+
# Update SOLR_JAVA_MEM when changing this
34+
memory: 2Gi
2735
limits:
28-
memory: 2048Mi
36+
memory: 2Gi
2937

3038
accessPolicy:
3139
inbound:

0 commit comments

Comments
 (0)