# Shard allocation not working if on different subnet?

**URL:** <https://discuss.elastic.co/t/shard-allocation-not-working-if-on-different-subnet/123830>\
**Category:** Elasticsearch\
**Created:** [March 14, 2018, 3:43am UTC](https://discuss.elastic.co/t/shard-allocation-not-working-if-on-different-subnet/123830 "2018-03-14T03:43:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edmund\_Cheng](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Edmund\_Cheng](https://discuss.elastic.co/u/Edmund_Cheng)\
**Post date:** [March 14, 2018, 3:43am UTC](https://discuss.elastic.co/t/shard-allocation-not-working-if-on-different-subnet/123830/1 "2018-03-14T03:43:48Z")

</div>

hi,  
I was doing some testing where for e.g  
node1 IP : 192.168.168.X  
node2 IP : 192.168.168.X  
node3 IP : 10.91.10.X

They are able to discover one another, but shards are only allocated among node1 and node2, while node3 remains empty.  
ES does not support this?

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [March 14, 2018, 3:55am UTC](https://discuss.elastic.co/t/shard-allocation-not-working-if-on-different-subnet/123830/2 "2018-03-14T03:55:36Z")

</div>

`discovery.zen.ping.unicast.hosts` ip is add?

---

<div class="post-metadata">

**Author:** ![Edmund\_Cheng](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Edmund\_Cheng](https://discuss.elastic.co/u/Edmund_Cheng)\
**Post date:** [March 14, 2018, 3:58am UTC](https://discuss.elastic.co/t/shard-allocation-not-working-if-on-different-subnet/123830/3 "2018-03-14T03:58:23Z")

</div>

Hi, yes, the problem is not about the discovery of the nodes.  
i can see node3 is discovered and it joins the cluster, but the shards are not being pushed to this node3

---

<div class="post-metadata">

**Author:** ![Edmund\_Cheng](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Edmund\_Cheng](https://discuss.elastic.co/u/Edmund_Cheng)\
**Post date:** [March 14, 2018, 4:12am UTC](https://discuss.elastic.co/t/shard-allocation-not-working-if-on-different-subnet/123830/4 "2018-03-14T04:12:36Z")

</div>

Hi,  
its working now.. i am not sure if its the ES version problem, i just align the ES version and it seems fine now.

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [March 14, 2018, 4:35am UTC](https://discuss.elastic.co/t/shard-allocation-not-working-if-on-different-subnet/123830/5 "2018-03-14T04:35:13Z")

</div>

which version as now?

---

<div class="post-metadata">

**Author:** ![Edmund\_Cheng](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Edmund\_Cheng](https://discuss.elastic.co/u/Edmund_Cheng)\
**Post date:** [March 14, 2018, 4:50am UTC](https://discuss.elastic.co/t/shard-allocation-not-working-if-on-different-subnet/123830/6 "2018-03-14T04:50:49Z")

</div>

Hi, we are using an old version 2.4.X.

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [March 14, 2018, 4:58am UTC](https://discuss.elastic.co/t/shard-allocation-not-working-if-on-different-subnet/123830/7 "2018-03-14T04:58:02Z")

</div>

if the new cluster can use 5.x or 6.x is better..

---

<div class="post-metadata">

**Author:** ![Edmund\_Cheng](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Edmund\_Cheng](https://discuss.elastic.co/u/Edmund_Cheng)\
**Post date:** [March 14, 2018, 7:50am UTC](https://discuss.elastic.co/t/shard-allocation-not-working-if-on-different-subnet/123830/8 "2018-03-14T07:50:14Z")

</div>

Hi thanks for the advise, does 5.X and 6.X offer more stuff in terms of replication, multiple data centers etc.?

---

<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:** [April 11, 2018, 7:50am UTC](https://discuss.elastic.co/t/shard-allocation-not-working-if-on-different-subnet/123830/9 "2018-04-11T07:50:32Z")

</div>

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