Add support for environments with low disk space

This adds and option to bypass ES default disk-based shard allocation.
This commit is contained in:
Manuel Gutierrez 2019-10-21 16:34:43 +02:00
parent 931b663adf
commit 6db1fd65d3
2 changed files with 9 additions and 1 deletions

View File

@ -14,6 +14,7 @@ elasticsearch_cluster_nodes:
elasticsearch_discovery_nodes:
- 127.0.0.1
elasticsearch_lower_disk_requirements: false
# X-Pack Security
elasticsearch_xpack_security: false
elasticsearch_xpack_security_user: elastic

View File

@ -27,6 +27,13 @@ discovery.seed_hosts:
{% endfor %}
{% endif %}
{% if elasticsearch_lower_disk_requirements %}
cluster.routing.allocation.disk.threshold_enabled: true
cluster.routing.allocation.disk.watermark.flood_stage: 200mb
cluster.routing.allocation.disk.watermark.low: 500mb
cluster.routing.allocation.disk.watermark.high: 300mb
{% endif %}
# XPACK Security
{% if elasticsearch_xpack_security %}