# Replication between nodes on different subnets

**URL:** <https://discuss.elastic.co/t/replication-between-nodes-on-different-subnets/13620>\
**Category:** Elasticsearch\
**Created:** [September 16, 2013, 2:03pm UTC](https://discuss.elastic.co/t/replication-between-nodes-on-different-subnets/13620 "2013-09-16T14:03:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Ryan](https://avatars.discourse-cdn.com/v4/letter/b/dfb087/32.png) [@Ben\_Ryan](https://discuss.elastic.co/u/Ben_Ryan)\
**Post date:** [September 16, 2013, 2:03pm UTC](https://discuss.elastic.co/t/replication-between-nodes-on-different-subnets/13620/1 "2013-09-16T14:03:12Z")

</div>

Hi,  
I have got replication working between two nodes on different machines in  
the same subnet but if I try to add a node that is on a machine on a  
different subnet I get "falied to send join request to master" the reason  
stated is Timeout waiting for task.

I have checked all the firewall settings and these are ok and netstat  
shows connections on port 9300 between the two machines.

Is there anything else I can look at?

Config details:

Machine 1

cluster.name: bingo  
node.master: true  
network.bind\_host: XXX.YYY.120.134  
network.publish\_host: XXX.YYY.120.134  
transport.tcp.port: 9300  
http.port: 9200  
discovery.zen.ping.multicast.enabled: false

Machine 2  
cluster.name: bingo  
node.master: true  
network.bind\_host: XXX.YYY.204.45  
network.publish\_host: XXX.YYY.204.45  
transport.tcp.port: 9300  
http.port: 9200  
discovery.zen.ping.timeout: 10s  
discovery.zen.ping.multicast.enabled: false  
discovery.zen.ping.unicast.hosts: ["XXX.YYY.120.134"]

XXX.YYY are the same on all machines.

Regards,  
Ben

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![drewr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewr/32/7803_2.png) [@drewr](https://discuss.elastic.co/u/drewr)\
**Post date:** [September 16, 2013, 2:35pm UTC](https://discuss.elastic.co/t/replication-between-nodes-on-different-subnets/13620/2 "2013-09-16T14:35:48Z")

</div>

Ben Ryan wrote:

> I have got replication working between two nodes on different  
> machines in the same subnet but if I try to add a node that is  
> on a machine on a different subnet I get "falied to send join  
> request to master" the reason stated is Timeout waiting for  
> task.
> 
> I have checked all the firewall settings and these are ok and  
> netstat shows connections on port 9300 between the two machines.
> 
> Is there anything else I can look at?

I assume you're starting machine 2 after machine 1?

The settings look right. I would double-check network  
connectivity. From XXX.YYY.204.45, `telnet XXX.YYY.120.134 9300`  
and make sure you get a connection.

Drew

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:16am UTC](https://discuss.elastic.co/t/replication-between-nodes-on-different-subnets/13620/3 "2017-07-06T02:16:19Z")

</div>


