Extend index template loading to 60 attempts and a total of ~5 minutes

This commit is contained in:
Wes
2023-11-08 02:29:09 +00:00
parent de9f9549af
commit b46e86c39b

View File

@@ -93,7 +93,7 @@ if [ ! -f /opt/so/state/estemplates.txt ]; then
for i in $pattern; do for i in $pattern; do
TEMPLATE=${i::-14} TEMPLATE=${i::-14}
echo "$TEMPLATE" echo "$TEMPLATE"
retry 24 5 "so-elasticsearch-query _index_template/$TEMPLATE -d@$i -XPUT | grep '{\"acknowledged\":true}'" || fail "Could not load template: $TEMPLATE" retry 60 5 "so-elasticsearch-query _index_template/$TEMPLATE -d@$i -XPUT | grep '{\"acknowledged\":true}'" || fail "Could not load template: $TEMPLATE"
done done
else else
{% if GLOBALS.role == 'so-heavynode' %} {% if GLOBALS.role == 'so-heavynode' %}