4d46c428d0
This updates the elasticsearch configuration file (and loading mechanism) for ELK 6.x. The default location for the configuration for all package distributions is /etc/elasticsearch[1], so now that is where we overwrite the elasticsearch.yml. The path.conf and path.scripts paths are no longer supported and will raise exceptions if utilized in 6.x. [1]: https://www.elastic.co/guide/en/elasticsearch/reference/6.x/settings.html#config-files-location Implements: blueprint elasticsearch-kibana-version-upgrade Depends-On: https://review.opendev.org/#/c/647748/ Change-Id: I4f74bfe07d4b7ca18953b11e767cf0bb94dfd67e
21 lines
1.0 KiB
Django/Jinja
21 lines
1.0 KiB
Django/Jinja
{% set num_nodes = groups['elasticsearch'] | length %}
|
|
{% set minimum_master_nodes = (num_nodes / 2 + 1) | round(0, 'floor') | int if num_nodes > 2 else 1 %}
|
|
{% set recover_after_nodes = (num_nodes * 2 / 3) | round(0, 'floor') | int if num_nodes > 1 else 1 %}
|
|
node.name: "{{ 'api' | kolla_address | put_address_in_context('url') }}"
|
|
network.host: "{{ 'api' | kolla_address | put_address_in_context('url') }}"
|
|
|
|
cluster.name: "{{ elasticsearch_cluster_name }}"
|
|
node.master: true
|
|
node.data: true
|
|
discovery.zen.ping.unicast.hosts: [{% for host in groups['elasticsearch'] %}"{{ 'api' | kolla_address(host) | put_address_in_context('url') }}"{% if not loop.last %},{% endif %}{% endfor %}]
|
|
|
|
discovery.zen.minimum_master_nodes: {{ minimum_master_nodes }}
|
|
http.port: {{ elasticsearch_port }}
|
|
gateway.expected_nodes: {{ num_nodes }}
|
|
gateway.recover_after_time: "5m"
|
|
gateway.recover_after_nodes: {{ recover_after_nodes }}
|
|
path.data: "/var/lib/elasticsearch/data"
|
|
path.logs: "/var/log/kolla/elasticsearch"
|
|
indices.fielddata.cache.size: 40%
|
|
action.auto_create_index: "true"
|