Merge pull request #281 from wazuh/fix-280-lower-disk-requirements

Add support for environments with low disk space
This commit is contained in:
Manuel J. Bernal 2019-10-22 11:28:20 +02:00 committed by GitHub
commit 39133d2520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

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

View File

@ -27,6 +27,13 @@ discovery.seed_hosts:
{% endfor %} {% endfor %}
{% endif %} {% 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 # XPACK Security
{% if elasticsearch_xpack_security %} {% if elasticsearch_xpack_security %}