Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes required to install Elasticsearch 6 on staging #6421

Merged
merged 19 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,18 @@ http.max_content_length: 200mb
path.data: {{ elasticsearch_data_dir }}/data
path.logs: {{ elasticsearch_data_dir }}/logs

{% if elasticsearch_version is version('5.6.16', '<=') %}
{% if elasticsearch_version is version('7.0.0', '<') %}
# discovery.zen.minimum_master_nodes is the minimum number of
# MASTER ELIGIBLE nodes that must be reachable before a master may be elected
# Best practice is to set it to M/2 + 1 where M is the number of master-eligible nodes,
# but (todo) we DO NOT follow best practice.
discovery.zen.minimum_master_nodes: {{ [2, groups.elasticsearch|map('extract', hostvars, 'elasticsearch_master_value')|select()|list | length] | min }}

{% if elasticsearch_version is version('5.6.16', '<') %}
discovery.zen.fd.ping_timeout: 90s
discovery.zen.fd.ping_interval: 10s
discovery.zen.fd.ping_retries: 20
{% endif %}

{% if elasticsearch_version == '5.6.16' %}
discovery.zen.ping_timeout: 90s
Expand Down Expand Up @@ -87,8 +90,9 @@ cloud:
{% endif %}

# Only auto create elastic search internal indices
{% if elasticsearch_version is version('5.6.16', '<=') %}
action.auto_create_index: .watches,.triggered_watches,.watcher-history-*

{% endif %}

{% if es_local_repo and not backup_es_s3%}
path.repo: ["{{ elasticsearch_data_dir }}/snapshot"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ After=network-online.target
[Service]
Type=simple
Environment=ES_HOME={{ elasticsearch_home }}
Environment=CONF_DIR={{ elasticsearch_conf_dir}}
Environment=ES_PATH_CONF={{ elasticsearch_conf_dir}}
{% if elasticsearch_version <= '5.6.16'%}
Environment=CONF_DIR={{ elasticsearch_conf_dir}}
{% endif %}
gherceg marked this conversation as resolved.
Show resolved Hide resolved
{% if elasticsearch_version == '5.6.16'%}
Environment=ES_JVM_OPTIONS={{ elasticsearch_conf_dir}}/jvm.options
{% endif %}
Expand Down