[elasticsearch] only configure ES_JAVA_OPTS when value is set#1089
[elasticsearch] only configure ES_JAVA_OPTS when value is set#1089jmlrt merged 2 commits intoelastic:masterfrom
Conversation
This commit update Elasticsearch Statefulset template to set `ES_JAVA_OPTS` variable only when `esJavaOpts` value is defined. This allow to benefit of JVM heap automatic sizing in Elasticsearch 7.11. Fix elastic#1083
| value: "{{ .Values.clusterName }}" | ||
| - name: network.host | ||
| value: "{{ .Values.networkHost }}" | ||
| {{- if .Values.esJavaOpts }} |
There was a problem hiding this comment.
It looks like there is a test asserting the default ES_JAVA_OPTS option that will need updated https://devops-ci.elastic.co/job/elastic+helm-charts+pull-request+template-testing/1218/CHART=elasticsearch,label=docker&&virtual/console
|
This broke my upgrade from |
|
Hi @viceice, the upgrade from 6.8.16 to 6.8.17 with this feature was tested successfully in our CI. |
|
@jmlrt I'm using |
|
Hi @viceice, without much investigation I think this may be related to the old Elasticsearch version. |
This commit update Elasticsearch Statefulset template to set
ES_JAVA_OPTSvariable only whenesJavaOptsvalue is defined.This allow to benefit of JVM heap automatic sizing in Elasticsearch
7.11.
Fix #1083