You have to reenable allocation after the node comes back and wait for the shards to initialize there.
On Fri, Dec 19, 2014 at 3:23 PM, <iskren.cher...@gmail.com> wrote: > > I'm maintaining a small cluster of 9 nodes, and was trying to perform > rolling restart as outlined here: > http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/_rolling_restarts.html#_rolling_restarts > > The problem is that after I disable reallocation and restart a single > node, it appears it looses all its shards indefinitely (until I turn back > reallocation). So if I do this for all nodes in the cluster I'll run out of > primary shards at some point. > > I have an upstart task for Elasticsearch, so I stopped nodes with that (it > sends SIGTERM). I tried the shutdown API but it did have the same effect -- > after node joins the cluster, it doesn't own any shards, and that doesn't > change if I wait for a while. > > Am I doing something wrong? > > -- > 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 elasticsearch+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/c9eef95e-d7cf-4278-a99f-89d9ab878791%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/c9eef95e-d7cf-4278-a99f-89d9ab878791%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPmjWd2zKhhiDpwH%2BWj4SoQYP5B6C5seET%2BBtTYCDM%2B-3rS%3D0A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.