Perform reboot/restart physical nodes

Hello,

How to perform a restart of single node Elasticsearch (with multiple instance in) ?

The option "index.unassigned.node_left.delayed_timeout" positioned at 10 minutes is sufficient ?

Here my script to reboot a single node with multiple instance :

#!/bin/ksh

hostELS=hostname | cut -d"." -f1

curl -X PUT "${hostELS}:9200/_all/_settings" -H 'Content-Type: application/json' -d'
{
"settings": {
"index.unassigned.node_left.delayed_timeout": "10m"
}
}
'

instances_number=ls /opt/application/ | grep "[0-9][0-9]"

for i in $instances_number
do
sh /opt/application/$i/bin/Operate.sh stop
done

What do you think ?

Options like cluster.routing.allocation.enable is useless no ?

Thanks for reply

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.