Disable shard allocation awareness



Is it possible to disable shard allocation awareness ?


(Mark Walkom) #2

Yes it is.



Is it possible to do it with the cluster update settings API ?


(Mark Walkom) #4

Sure is! Have you looked in the docs for it?


Yes, but I haven't found anything (cf https://www.elastic.co/guide/en/elasticsearch/reference/current/allocation-awareness.html)

For your information, the setting was applied in the configuration file and I really need to disable it without restarting the node because I keep having some unassigned shards.

(Mark Walkom) #6

Ahh you want https://www.elastic.co/guide/en/elasticsearch/reference/current/shards-allocation.html


Yes, I do know this link :slight_smile:. I have already tried to set cluster.routing.rebalance.enable to none but it didn't seem to work. Is it the good parameter ?

(Mark Walkom) #8

cluster.routing.allocation.enable should be set to all.
Don't touch any of the others.


Ok but the shard allocation awareness will still be active and that's not what I want.

(Mark Walkom) #10

Oh right sorry, then set it to none.


By setting the parameter to none, the allocation will be completely disabled. I just want to disable shard allocation awareness, not the shard allocation.

(system) closed #12

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