Skip to content

Commit

Permalink
env discovery.type single-node change
Browse files Browse the repository at this point in the history
only managers and heavynodes are eligible for discovery.type=single-node
  • Loading branch information
m0duspwnens authored Jan 29, 2025
1 parent ca0c117 commit fe4129c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/elasticsearch/enabled.sls
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ so-elasticsearch:
{% endfor %}
{% endif %}
- environment:
{% if ELASTICSEARCH_SEED_HOSTS | length == 1 or GLOBALS.role == 'so-heavynode' %}
{% if (GLOBALS.role in GLOBALS.manager_roles and ELASTICSEARCH_SEED_HOSTS | 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
Expand Down

0 comments on commit fe4129c

Please sign in to comment.