Disable ElasticSeach re-balancing if one node is down Disable ElasticSeach re-balancing if one node is down elasticsearch elasticsearch

Disable ElasticSeach re-balancing if one node is down


You can accomplish this by disabling shard allocation.

curl -XPUT localhost:9200/_cluster/settings -d '{"transient":{"cluster.routing.allocation.enable": "none"}}'

If you want to turn allocation back on:

curl -XPUT localhost:9200/_cluster/settings -d '{"transient":{"cluster.routing.allocation.enable": "all"}}'