Index in certain set of nodes

Hello:

I have 5 nodes cluster - would it be possible to set the primary and replicas to be on certain nodes and not others. For example, I'd like to achieve that index-1 would be on node-a, node-b and node-c and NOT on node-d nore on node-e and index-2 would be on node-c, node-d, node-e.
If it would be possible to set - where? When we create a new index?

Thanks in advance.

See Index Shard Allocation | Elasticsearch Guide [7.13] | Elastic

It's part of the index metadata, and can also be modified in case you want to sent indices to other parts of your cluster (think of hot/warm architectures). You also might want to take a look at Index Lifecycle Management to automate this.

Hope this helps!

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