Elasticsearch: Heap configuration and ingest node updates

This updates the Elasticsearch chart to allow for setting the
heap size per node type instead of for all nodes equally. This
also adds the required environment variable to configure whether
a node is an ingest node. This is set to false, as suggested for
elasticsearch versions <= 6.x

This also removes the ES_PLUGINS_INSTALL environment variable as
it is not used for anything in the current charts

Change-Id: I9096774db46dcbcd48b8a5448f0510984bf4108f
This commit is contained in:
Steve Wilkerson 2019-05-06 12:44:51 -05:00
parent 9771b16e87
commit 031ee3e6af
6 changed files with 22 additions and 12 deletions

View File

@ -176,6 +176,8 @@ spec:
fieldPath: metadata.name
- name: NODE_MASTER
value: "false"
- name: NODE_INGEST
value: "false"
- name: NODE_DATA
value: "false"
- name: HTTP_ENABLE
@ -183,9 +185,7 @@ spec:
- name: DISCOVERY_SERVICE
value: {{ tuple "elasticsearch" "discovery" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
- name: ES_JAVA_OPTS
value: "{{ .Values.conf.elasticsearch.env.java_opts }}"
- name: ES_PLUGINS_INSTALL
value: "elasticsearch-s3"
value: "{{ .Values.conf.elasticsearch.env.java_opts.client }}"
volumeMounts:
- name: pod-tmp
mountPath: /tmp

View File

@ -131,6 +131,8 @@ spec:
fieldPath: metadata.name
- name: NODE_MASTER
value: "true"
- name: NODE_INGEST
value: "false"
- name: NODE_DATA
value: "false"
- name: HTTP_ENABLE
@ -138,9 +140,7 @@ spec:
- name: DISCOVERY_SERVICE
value: {{ tuple "elasticsearch" "discovery" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
- name: ES_JAVA_OPTS
value: "{{ .Values.conf.elasticsearch.env.java_opts }}"
- name: ES_PLUGINS_INSTALL
value: "elasticsearch-s3"
value: "{{ .Values.conf.elasticsearch.env.java_opts.master }}"
volumeMounts:
- name: pod-tmp
mountPath: /tmp

View File

@ -131,16 +131,16 @@ spec:
fieldPath: metadata.name
- name: NODE_MASTER
value: "false"
- name: NODE_INGEST
value: "false"
- name: NODE_DATA
value: "true"
- name: HTTP_ENABLE
value: "false"
- name: ES_JAVA_OPTS
value: "{{ .Values.conf.elasticsearch.env.java_opts }}"
value: "{{ .Values.conf.elasticsearch.env.java_opts.data }}"
- name: DISCOVERY_SERVICE
value: {{ tuple "elasticsearch" "discovery" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
- name: ES_PLUGINS_INSTALL
value: "elasticsearch-s3"
volumeMounts:
- name: pod-tmp
mountPath: /tmp

View File

@ -601,6 +601,7 @@ conf:
# lookups
endpoint: null
node:
ingest: ${NODE_INGEST}
master: ${NODE_MASTER}
data: ${NODE_DATA}
name: ${NODE_NAME}
@ -618,7 +619,10 @@ conf:
logstash:
name: logstash_snapshots
env:
java_opts: "-Xms256m -Xmx256m"
java_opts:
client: "-Xms256m -Xmx256m"
data: "-Xms256m -Xmx256m"
master: "-Xms256m -Xmx256m"
prometheus_elasticsearch_exporter:
es:
all: true

View File

@ -320,7 +320,10 @@ data:
conf:
elasticsearch:
env:
java_opts: "-Xms512m -Xmx512m"
java_opts:
client: "-Xms512m -Xmx512m"
data: "-Xms512m -Xmx512m"
master: "-Xms512m -Xmx512m"
snapshots:
enabled: true
source:

View File

@ -28,7 +28,10 @@ pod:
conf:
elasticsearch:
env:
java_opts: "-Xms512m -Xmx512m"
java_opts:
client: "-Xms512m -Xmx512m"
data: "-Xms512m -Xmx512m"
master: "-Xms512m -Xmx512m"
snapshots:
enabled: true
curator: