# Cannot prevent local node from finding nearby nodes

**URL:** <https://discuss.elastic.co/t/cannot-prevent-local-node-from-finding-nearby-nodes/12279>\
**Category:** Elasticsearch\
**Created:** [June 5, 2013, 3:17pm UTC](https://discuss.elastic.co/t/cannot-prevent-local-node-from-finding-nearby-nodes/12279 "2013-06-05T15:17:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Hobgood](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@Paul\_Hobgood](https://discuss.elastic.co/u/Paul_Hobgood)\
**Post date:** [June 5, 2013, 3:17pm UTC](https://discuss.elastic.co/t/cannot-prevent-local-node-from-finding-nearby-nodes/12279/1 "2013-06-05T15:17:44Z")

</div>

I am having trouble preventing my local node from connecting to nearby  
nodes.

Here's my elasticsearch\_spring.properties

cluster.name=redowl  
index.search.slowlog.level=INFO  
index.search.slowlog.threshold.fetch.info=0ms  
client.transport.ping\_timeout=30s  
path.logs=target/elasticsearch/logs  
discovery.zen.ping.multicast.enabled=false  
node.local=true  
index.search.slowlog.threshold.query.info=0ms  
http.enabled=true

My local node in this case is Lightmaster

```
    --> target 

```

[[Pressure][rm6wcIwVSy2opNs\_4AFFpA][inet[/172.16.1.9:9300]]], master  
[[Pressure][rm6wcIwVSy2opNs\_4AFFpA][inet[/172.16.1.9:9300]]]  
2013-06-05 10:58:28,068 [DEBUG] o.e.t.netty [Slf4jESLogger.java:84]  
[Lightmaster] connected to node  
[[Pressure][rm6wcIwVSy2opNs\_4AFFpA][inet[/172.16.1.9:9300]]]

It was my impression that node.local and  
discovery.zen.ping.multicast.enabled should prevent my node from finding  
other nodes, but this doesn't appear to be the case.

How can I prevent my local node from other nearby nodes? Thanks

--  
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:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [June 5, 2013, 5:46pm UTC](https://discuss.elastic.co/t/cannot-prevent-local-node-from-finding-nearby-nodes/12279/2 "2013-06-05T17:46:16Z")

</div>

The easiest solution is to change the name of each cluster. Using zen  
discovery, only nodes with the same cluster name will connect with each  
other. The other option is to use unicast discovery and explicitly specify  
the nodes in the cluster.

The cluster name is made for your situation.

--  
Ivan

On Wed, Jun 5, 2013 at 8:17 AM, Paul Hobgood [paulh@redowlanalytics.com](mailto:paulh@redowlanalytics.com)wrote:

> I am having trouble preventing my local node from connecting to nearby  
> nodes.
> 
> Here's my elasticsearch\_spring.properties
> 
> cluster.name=redowl  
> index.search.slowlog.level=INFO  
> index.search.slowlog.threshold.fetch.info=0ms  
> client.transport.ping\_timeout=30s  
> path.logs=target/elasticsearch/logs  
> discovery.zen.ping.multicast.enabled=false  
> node.local=true  
> index.search.slowlog.threshold.query.info=0ms  
> http.enabled=true
> 
> My local node in this case is Lightmaster
> 
> ```
> --> target
> 
> ```
> 
> [[Pressure][rm6wcIwVSy2opNs\_4AFFpA][inet[/172.16.1.9:9300]]], master  
> [[Pressure][rm6wcIwVSy2opNs\_4AFFpA][inet[/172.16.1.9:9300]]]  
> 2013-06-05 10:58:28,068 [DEBUG] o.e.t.netty [Slf4jESLogger.java:84]  
> [Lightmaster] connected to node  
> [[Pressure][rm6wcIwVSy2opNs\_4AFFpA][inet[/172.16.1.9:9300]]]
> 
> It was my impression that node.local and  
> discovery.zen.ping.multicast.enabled should prevent my node from finding  
> other nodes, but this doesn't appear to be the case.
> 
> How can I prevent my local node from other nearby nodes? Thanks
> 
> --  
> 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).

--  
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:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 7, 2013, 10:46am UTC](https://discuss.elastic.co/t/cannot-prevent-local-node-from-finding-nearby-nodes/12279/3 "2013-06-07T10:46:22Z")

</div>

another option is to set network.host to 127.0.0.1 and disable multicast discovery.

On Wed, Jun 5, 2013 at 7:46 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> ## The easiest solution is to change the name of each cluster. Using zen discovery, only nodes with the same cluster name will connect with each other. The other option is to use unicast discovery and explicitly specify the nodes in the cluster. The cluster name is made for your situation.
> 
> Ivan  
> On Wed, Jun 5, 2013 at 8:17 AM, Paul Hobgood [paulh@redowlanalytics.com](mailto:paulh@redowlanalytics.com)wrote:
> 
> > I am having trouble preventing my local node from connecting to nearby  
> > nodes.
> > 
> > Here's my elasticsearch\_spring.properties
> > 
> > cluster.name=redowl  
> > index.search.slowlog.level=INFO  
> > index.search.slowlog.threshold.fetch.info=0ms  
> > client.transport.ping\_timeout=30s  
> > path.logs=target/elasticsearch/logs  
> > discovery.zen.ping.multicast.enabled=false  
> > node.local=true  
> > index.search.slowlog.threshold.query.info=0ms  
> > http.enabled=true
> > 
> > My local node in this case is Lightmaster
> > 
> > ```
> > --> target
> > 
> > ```
> > 
> > [[Pressure][rm6wcIwVSy2opNs\_4AFFpA][inet[/172.16.1.9:9300]]], master  
> > [[Pressure][rm6wcIwVSy2opNs\_4AFFpA][inet[/172.16.1.9:9300]]]  
> > 2013-06-05 10:58:28,068 [DEBUG] o.e.t.netty [Slf4jESLogger.java:84]  
> > [Lightmaster] connected to node  
> > [[Pressure][rm6wcIwVSy2opNs\_4AFFpA][inet[/172.16.1.9:9300]]]
> > 
> > It was my impression that node.local and  
> > discovery.zen.ping.multicast.enabled should prevent my node from finding  
> > other nodes, but this doesn't appear to be the case.
> > 
> > How can I prevent my local node from other nearby nodes? Thanks
> > 
> > --  
> > 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).
> 
> --  
> 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).

--  
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:** ![Paul\_Hobgood](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@Paul\_Hobgood](https://discuss.elastic.co/u/Paul_Hobgood)\
**Post date:** [June 14, 2013, 2:32pm UTC](https://discuss.elastic.co/t/cannot-prevent-local-node-from-finding-nearby-nodes/12279/4 "2013-06-14T14:32:59Z")

</div>

I've added the following lines to my props and I'm still discovering nearby  
nodes:

# Disable network

discovery.zen.ping.multicast.enabled=false  
node.local=true  
network.host=127.0.0.1

What else can I try to completely cut off my node from other nearby nodes?  
I don't want their data at all for local development

Thanks

On Wednesday, June 5, 2013 11:17:44 AM UTC-4, Paul Hobgood wrote:

> I am having trouble preventing my local node from connecting to nearby  
> nodes.
> 
> Here's my elasticsearch\_spring.properties
> 
> cluster.name=redowl  
> index.search.slowlog.level=INFO  
> index.search.slowlog.threshold.fetch.info=0ms  
> client.transport.ping\_timeout=30s  
> path.logs=target/elasticsearch/logs  
> discovery.zen.ping.multicast.enabled=false  
> node.local=true  
> index.search.slowlog.threshold.query.info=0ms  
> http.enabled=true
> 
> My local node in this case is Lightmaster
> 
> ```
> --> target 
> 
> ```
> 
> [[Pressure][rm6wcIwVSy2opNs\_4AFFpA][inet[/172.16.1.9:9300]]], master  
> [[Pressure][rm6wcIwVSy2opNs\_4AFFpA][inet[/172.16.1.9:9300]]]  
> 2013-06-05 10:58:28,068 [DEBUG] o.e.t.netty [Slf4jESLogger.java:84]  
> [Lightmaster] connected to node  
> [[Pressure][rm6wcIwVSy2opNs\_4AFFpA][inet[/172.16.1.9:9300]]]
> 
> It was my impression that node.local and  
> discovery.zen.ping.multicast.enabled should prevent my node from finding  
> other nodes, but this doesn't appear to be the case.
> 
> How can I prevent my local node from other nearby nodes? Thanks

--  
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:31am UTC](https://discuss.elastic.co/t/cannot-prevent-local-node-from-finding-nearby-nodes/12279/5 "2017-07-06T02:31:13Z")

</div>


