File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments