Hi folks,

Our requirement is as follows:

We have our ES cluster running on aws instances where nodes can come and 
go. We would like to disable Shard reallocation on cluster in Normal state 
so that Node going down should not rebalance the shards.(Just to avoid 
unnecessary Network i/o).

When node comes back up (within few minutes), we would like to enable it so 
that new node will get back it's own shards and after rebalancing is 
finished, we would like to Disable Shard reallocation again.

We would like this to be an automated process rather than manual one.

I have already taken a look at following stackoverflow question/answer 
<http://stackoverflow.com/questions/16231614/quick-recovery-after-node-restart-in-elasticsearch>
 
but I am not sure if it can work in automated way.

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


So I would like to know, is there any way to Listen to the event which says 
"Shard Rebalancing is finished" (by adding a new listener) and then 
disable cluster.routing.allocation.enable Property ?

-- Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/cee6bef8-25cf-4175-ac53-f2734d44ea76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to