Why does node go into recovery after planned restart with allocation disabled


(John T) #1

We have to do period maintenance on our nodes that requires a restart of the box. When I do this, I set:
"cluster.routing.allocation.enable" : "none"

Then I restart the box. When it is back, and the node has rejoined, I reenable allocation. At this point, I would expect the data on the node to still be good, and the only recovery to be the events that have queued while the box was down (a matter of a couple minutes). What I see is that when I reenable allocation, a long recovery cycle is kicked off. This means that updating all our nodes takes the entire day as I wait for green status before going on to the next node.

Thanks,
~john


(Mark Walkom) #2

What version are you on.


(John T) #3

Sorry, 2.3.2


(Mark Walkom) #4

Are you calling a https://www.elastic.co/guide/en/elasticsearch/reference/2.4/indices-synced-flush.html before the restart?


(system) #5

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