Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Commit

Permalink
don't need to explicitly define watermark values since they default t…
Browse files Browse the repository at this point in the history
…o 85 and 90 anyway
  • Loading branch information
dougburks committed Feb 1, 2018
1 parent 965a412 commit 35f2f4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
3 changes: 0 additions & 3 deletions etc/elasticsearch/elasticsearch.yml
Expand Up @@ -7,6 +7,3 @@ network.host: 0.0.0.0
discovery.zen.minimum_master_nodes: 1
# This is a test -- if this is here, then the volume is mounted correctly.
path.logs: /var/log/elasticsearch

cluster.routing.allocation.disk.watermark.low: "85%"
cluster.routing.allocation.disk.watermark.high: "90%"
15 changes: 6 additions & 9 deletions usr/sbin/so-elastic-configure-stack
Expand Up @@ -51,18 +51,15 @@ else
cp -av $ES_YAML $ES_YAML_BAK
cp -av $SRC/$ES_YAML $ES_YAML

# Preserve custom settings, if present
# Transport settings
# If old config file had custom settings, migrate them to new config file

# transport settings
# https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html
grep transport $ES_YAML_BAK >> $ES_YAML
grep "transport" $ES_YAML_BAK >> $ES_YAML

# Low/High watermark settings
# cluster.routing.allocation.disk settings
# https://www.elastic.co/guide/en/elasticsearch/reference/current/disk-allocator.html#disk-allocator
grep watermark $ES_YAML_BAK >> $ES_YAML
if [ $? != 0 ]; then
echo 'cluster.routing.allocation.disk.watermark.low: "85%"' >> $ES_YAML
echo 'cluster.routing.allocation.disk.watermark.high: "90%"' >> $ES_YAML
fi
grep "cluster.routing.allocation.disk" $ES_YAML_BAK >> $ES_YAML
fi

# Set cluster name
Expand Down
Empty file modified usr/sbin/so-elsa-export 100755 → 100644
Empty file.

0 comments on commit 35f2f4f

Please sign in to comment.