Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Update elasticsearch-install.sh #410

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/scripts/elasticsearch-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,8 @@ configure_awareness_attributes()
local METADATA=$(curl -sH Metadata:true "http://169.254.169.254/metadata/instance?api-version=2018-10-01")
local FAULT_DOMAIN=$(jq -r .compute.platformFaultDomain <<< $METADATA)
local UPDATE_DOMAIN=$(jq -r .compute.platformUpdateDomain <<< $METADATA)
echo "node.attr.fault_domain: $FAULT_DOMAIN" >> $ES_CONF
echo "node.attr.update_domain: $UPDATE_DOMAIN" >> $ES_CONF
echo "#node.attr.fault_domain: $FAULT_DOMAIN" >> $ES_CONF
echo "#node.attr.update_domain: $UPDATE_DOMAIN" >> $ES_CONF
log "[configure_awareness_attributes] configure shard allocation awareness using fault_domain and update_domain"
echo "cluster.routing.allocation.awareness.attributes: fault_domain,update_domain" >> $ES_CONF
}
Expand Down