# Shard allocate

**URL:** <https://discuss.elastic.co/t/shard-allocate/66195>\
**Category:** Elasticsearch\
**Created:** [November 16, 2016, 4:12am UTC](https://discuss.elastic.co/t/shard-allocate/66195 "2016-11-16T04:12:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nguyenhuukhoinw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nguyenhuukhoinw/32/13161_2.png) [@nguyenhuukhoinw](https://discuss.elastic.co/u/nguyenhuukhoinw)\
**Post date:** [November 16, 2016, 4:12am UTC](https://discuss.elastic.co/t/shard-allocate/66195/1 "2016-11-16T04:12:21Z")

</div>

Hello guys, I have a problem. I have 3 node cluster with 5 shards and 2 replicas. My data is distributed all nodes. My app connect to node 1, but I see only 3 shards on this node, so I think I cannot get all data when my app connect node 1 because data is spread out all node. Can you help? Thank you much!

---

<div class="post-metadata">

**Author:** ![Glen\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glen_smith/32/111656_2.png) [@Glen\_Smith](https://discuss.elastic.co/u/Glen_Smith)\
**Post date:** [November 16, 2016, 5:06am UTC](https://discuss.elastic.co/t/shard-allocate/66195/2 "2016-11-16T05:06:02Z")

</div>

It doesn't matter which node you connect to. Search requests will be routed to all shards (on all nodes) that could have results for the search.  
That's why you don't really need 2 replicas per shard. You don't need a copy of every shard on every node.

---

<div class="post-metadata">

**Author:** ![nguyenhuukhoinw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nguyenhuukhoinw/32/13161_2.png) [@nguyenhuukhoinw](https://discuss.elastic.co/u/nguyenhuukhoinw)\
**Post date:** [November 16, 2016, 5:36am UTC](https://discuss.elastic.co/t/shard-allocate/66195/3 "2016-11-16T05:36:56Z")

</div>

Ok, I see. thank you much. 🙂

---

<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 14, 2016, 5:37am UTC](https://discuss.elastic.co/t/shard-allocate/66195/4 "2016-12-14T05:37:04Z")

</div>

Closed on December 14, 2016, 5:37am UTC

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