cluster.routing.allocation.disable_allocation was deprecated in early v1,
its now cluster.routing.allocation.enable as per
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-cluster.html

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: [email protected]
web: www.campaignmonitor.com


On 26 April 2014 09:31, Brian Flad <[email protected]> wrote:

> The unassigned shard behavior you witnessed is correct even between 1.1.0
> and 1.1.1 nodes due to a Lucene upgrade (among others). If a primary shard
> becomes located on a newer (1.1.1 node in this case), it cannot create a
> replica on any older node (such as 1.1.0), leaving in unassigned until you
> have more nodes at the same version.
>
> You can actually see the reasoning behind this behavior if you use the
> cluster rerouting API to try to move an unassigned shard to a node:
>
> curl -X POST http://hostname:9200/_cluster/reroute -d
> '{"commands":[{"allocate":{"index":"my_index","shard":1,"node":"some_node"}}]}'
>
> The output of that command will helpfully tell you about the above version
> conflict between 1.1.0 and 1.1.1 for example.
>
> Also, not specifically mentioned in this thread, but if you're just
> restarting nodes across a cluster (to upgrade for example), you can
> temporarily disable the "rebalancing" of shards so its not needlessly
> shuffling data around via disable_allocation:
>
> curl -X PUT http://hostname:9200/_cluster/settings -d
> '{"transient":{"cluster.routing.allocation.disable_allocation": true}}'
>
> When you're done:
>
> curl -X PUT http://hostname:9200/_cluster/settings -d
> '{"transient":{"cluster.routing.allocation.disable_allocation": false}}'
>
> We use this to keep Elasticsearch up to date without downtime across 10s
> of clusters.
>
> Hope this helps,
> Brian
>
>
>
> On Fri, Apr 25, 2014 at 1:48 PM, Srividhya Umashanker <
> [email protected]> wrote:
>
>> Jilles -
>>>
>>
>> Thanks for your quick response.
>>
>> I think, i tired doing a graceful shutdown and then did an upgrade. I
>> made sure i did the graceful upgrade as you mentioned.
>>
>> Now the same problem, I had 3 nodes running 1.0.3,  i upgraded two of
>> those to 1.1.1 (graceful upgrade), as you see the indexes are
>> sharded/replicated among the 1.1.1 nodes alone.
>> Later, i shutdown one of the nodes running 1.1.1, I expect the "test1"
>> index to be allocated in "victor strange" (1.0.3), but u can see it
>> unassigned.
>> When i bring back another node running 1.1.1, the indexes/shards are
>> allocated properly.
>>
>> Does that mean, when indexes are places in higher versions, they can
>> never be allocated in lower version nodes? I know, vice versa is possible.
>> I am trying to relate to a federation topology (where nodes run different
>> versions and work together)
>>
>>
>> <https://lh4.googleusercontent.com/-20qvisNaQ28/U1qe83USfaI/AAAAAAAAAks/44U6xqRIQY4/s1600/problem+2.png>
>>
>>
>> --
>> 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/6c7fa16b-5b4c-41e0-943c-5250da16995a%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/6c7fa16b-5b4c-41e0-943c-5250da16995a%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
>
> Brian Flad
> http://about.me/bflad
>
> --
> 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/CAF3hLz%3D7rZczoUPLs8ErVdMRDuXVbmE%3D7306W8VfX9TUV%3De_Lg%40mail.gmail.com<https://groups.google.com/d/msgid/elasticsearch/CAF3hLz%3D7rZczoUPLs8ErVdMRDuXVbmE%3D7306W8VfX9TUV%3De_Lg%40mail.gmail.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAEM624b874Cz5xbMqXKkpWd98cPv-VhrjHb%3Dk%3DhnGkgzWLvx-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to