# Index in certain set of nodes

**URL:** https://discuss.elastic.co/t/index-in-certain-set-of-nodes/278920
**Category:** Elasticsearch
**Created:** [July 16, 2021, 3:06pm UTC](https://discuss.elastic.co/t/index-in-certain-set-of-nodes/278920 "2021-07-16T15:06:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Roman\_Kagan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roman_kagan/32/63832_2.png) [@Roman\_Kagan](https://discuss.elastic.co/u/Roman_Kagan)
#### Post date: [July 16, 2021, 3:06pm UTC](https://discuss.elastic.co/t/index-in-certain-set-of-nodes/278920/1 "2021-07-16T15:06:49Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [July 19, 2021, 9:45am UTC](https://discuss.elastic.co/t/index-in-certain-set-of-nodes/278920/2 "2021-07-19T09:45:34Z")

</div>

See [Index Shard Allocation | Elasticsearch Guide [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.13/index-modules-allocation.html)

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!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 16, 2021, 9:46am UTC](https://discuss.elastic.co/t/index-in-certain-set-of-nodes/278920/3 "2021-08-16T09:46:08Z")

</div>

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