# If there are 2 replicas do they need to be in 2 seperate nodes

**URL:** <https://discuss.elastic.co/t/if-there-are-2-replicas-do-they-need-to-be-in-2-seperate-nodes/254268>\
**Category:** Elasticsearch\
**Created:** [November 4, 2020, 12:23pm UTC](https://discuss.elastic.co/t/if-there-are-2-replicas-do-they-need-to-be-in-2-seperate-nodes/254268 "2020-11-04T12:23:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkumark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tkumark/32/78397_2.png) [@tkumark](https://discuss.elastic.co/u/tkumark)\
**Post date:** [November 4, 2020, 12:23pm UTC](https://discuss.elastic.co/t/if-there-are-2-replicas-do-they-need-to-be-in-2-seperate-nodes/254268/1 "2020-11-04T12:23:31Z")

</div>

The health is yellow. I have a 2 node cluster for Elastic search and the health is in yellow. It looks like there are 10 primary shards and 2 replicas (i.e 2 reaplicas per primary shard so that mean 20 replica shards). If primay is in node1 and can all the replicas be in node 2 or will we need a node 3 for the second replica. I did read that ES does not place replica in the same node as the primay. so does if there a 2 replicas can it place in the same node (node2) or the second one has to be place in node 3

```
> health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
> yellow open sdfs_v4 D2BpVICsddShJay_iz1FBQ 10 2 870293 28005 7.8gb 3.8gb
> yellow open abc_v4 nd-5fffsbcvcxxCqZPVNMCQ 10 2 396914 205632 2.7gb 1.3gb
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 4, 2020, 12:41pm UTC](https://discuss.elastic.co/t/if-there-are-2-replicas-do-they-need-to-be-in-2-seperate-nodes/254268/2 "2020-11-04T12:41:17Z")

</div>

If you want 3 copies of a shard (1 primary and 2 replicas) you need 3 nodes at least.

---

<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:** [December 2, 2020, 12:41pm UTC](https://discuss.elastic.co/t/if-there-are-2-replicas-do-they-need-to-be-in-2-seperate-nodes/254268/3 "2020-12-02T12:41:26Z")

</div>

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