-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[elasticsearch] only configure ES_JAVA_OPTS when value is set #1089
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
@@ -315,8 +315,10 @@ spec: | |||
value: "{{ .Values.clusterName }}" | |||
- name: network.host | |||
value: "{{ .Values.networkHost }}" | |||
{{- if .Values.esJavaOpts }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…1157) see #1089 Co-authored-by: AndreasChristianson <[email protected]>
…#1158) see #1089 Co-authored-by: AndreasChristianson <[email protected]>
…1159) see #1089 Co-authored-by: AndreasChristianson <[email protected]>
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_OPTS
variable only whenesJavaOpts
value is defined.This allow to benefit of JVM heap automatic sizing in Elasticsearch
7.11.
Fix #1083