Disable shard allocation awareness


#1

Hello,

Is it possible to disable shard allocation awareness ?

Thanks,


(Mark Walkom) #2

Yes it is.


#3

Hi,

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

Thanks


(Mark Walkom) #4

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


#5

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


#7

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.


#9

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.


#11

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