From c7c4e65df1e12f5d174a77ea506c70dc8af40e13 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Tue, 13 Jun 2023 09:22:17 -0400 Subject: [PATCH] single-node for heavynode --- salt/elasticsearch/enabled.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/elasticsearch/enabled.sls b/salt/elasticsearch/enabled.sls index 4777e3bce..73b0b0282 100644 --- a/salt/elasticsearch/enabled.sls +++ b/salt/elasticsearch/enabled.sls @@ -32,7 +32,7 @@ so-elasticsearch: {% endfor %} {% endif %} - environment: - {% if LOGSTASH_NODES | length == 1 %} + {% if LOGSTASH_NODES | length == 1 or GLOBALS.role == 'so-heavynode' %} - discovery.type=single-node {% endif %} - ES_JAVA_OPTS=-Xms{{ GLOBALS.elasticsearch.es_heap }} -Xmx{{ GLOBALS.elasticsearch.es_heap }} -Des.transport.cname_in_publish_address=true -Dlog4j2.formatMsgNoLookups=true