How to disable reallocation for some specified index


(Yong Wang) #1

Hi there, I have some daily indices in my cluster, is there any way to disable auto reallocation for all old indices but remain enable for the newest index?

many thanks.


(Mark Walkom) #2

There is not, it's either all or nothing.


(Yong Wang) #3

Thank you Warkolm.
But that's really bad for my case. I have 3primary+1replica for each daily index in my cluster with 3 nodes. I understand the balance policy is to make shards resident in all nodes evenly. but this is not the best policy for my case, because, when new daily index created, maybe all shards assigned to only one node, even it looks like balanced in the whole cluster. In this worst case, the index performance will drop to unacceptable.
what I trying to do is to avoid this happen, is there any way to do this?


(Mark Walkom) #4

Take a look at https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-allocation.html#_total_shards_per_node


(system) #5