# Configurate elasticsearch under cluster with 4 machines and NLB (windows server)

**URL:** <https://discuss.elastic.co/t/configurate-elasticsearch-under-cluster-with-4-machines-and-nlb-windows-server/12418>\
**Category:** Elasticsearch\
**Created:** [June 14, 2013, 1:17pm UTC](https://discuss.elastic.co/t/configurate-elasticsearch-under-cluster-with-4-machines-and-nlb-windows-server/12418 "2013-06-14T13:17:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cassianotartari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cassianotartari/32/749_2.png) [@cassianotartari](https://discuss.elastic.co/u/cassianotartari)\
**Post date:** [June 14, 2013, 1:17pm UTC](https://discuss.elastic.co/t/configurate-elasticsearch-under-cluster-with-4-machines-and-nlb-windows-server/12418/1 "2013-06-14T13:17:11Z")

</div>

Hello everybody!

I'm trying to figure out which are the parameters to set in the  
elasticsearch.yml to get working the re-index os objects between 4 machines  
that are in the same network. This 4 machines are configured with NLB  
responding by the ip _123.123.123.5_ (virtual address that make the load  
balancing) and each machine with 123.123.123.123.1/2/3/4. Just setting the  
same cluster.name and differente node.name they didn't see each other:

[http://localhost:9200/\_cluster/nodes?pretty](http://localhost:9200/_cluster/nodes?pretty)  
{  
"ok" : true,  
"cluster\_name" : "CLUSTER\_NAME",  
"nodes" : {  
"w6bUFO79S9GHQ\_AL20s29Q" : {  
"name" : "MACHINE\_3",  
"transport\_address" : "inet[/_123.123.123.5_:9300]",  
"hostname" : "RCJ3",  
"version" : "0.90.0",  
"http\_address" : "inet[/123.123.123.5:9200]"  
}  
}  
}

[http://localhost:9200/\_cluster/nodes/health?pretty](http://localhost:9200/_cluster/nodes/health?pretty)  
{  
"ok" : true,  
"cluster\_name" : "CLUSTER\_NAME",  
"nodes" : { }  
}

After I' tried to change the network.publish\_host of each machine to your  
own ip and still not working:

[http://localhost:9200/\_cluster/nodes?pretty](http://localhost:9200/_cluster/nodes?pretty)  
{  
"ok" : true,  
"cluster\_name" : "RCJHD\_SEARCH\_ENGINE",  
"nodes" : {  
"g7B9xw9yTeW-28YrpIozZw" : {  
"name" : "RCJ3",  
"transport\_address" : "inet[/123.123.123.3:9300]",  
"hostname" : "RCJ3",  
"version" : "0.90.0",  
"http\_address" : "inet[/123.123.123.3:9200]"  
}  
}  
}

Any ideias?

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:** ![Tommy\_Albinsson](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@Tommy\_Albinsson](https://discuss.elastic.co/u/Tommy_Albinsson)\
**Post date:** [August 5, 2013, 10:36am UTC](https://discuss.elastic.co/t/configurate-elasticsearch-under-cluster-with-4-machines-and-nlb-windows-server/12418/2 "2013-08-05T10:36:32Z")

</div>

How have you configured NLB?

I have the same setting. I have set up 3 machines. Each machine has got 2  
NIC, one specific for the NLB cluster which points to the cluster virtual  
ip, and a regular NIC that has got ip for the machine in question.

It all works very well, and it it just a matter of adding another host to  
the cluster and starting ES on that host to make them find eachother.

ES has zen discovery, which if the nodes are on the same network the will  
find the other nodes (with the same cluster name). Do you get anything in  
the log? Do the second node get any warning, or something upon start?

//Tommy

Den fredagen den 14:e juni 2013 kl. 15:17:11 UTC+2 skrev Cassiano Tartari:

> Hello everybody!
> 
> I'm trying to figure out which are the parameters to set in the  
> elasticsearch.yml to get working the re-index os objects between 4  
> machines that are in the same network. This 4 machines are configured with  
> NLB responding by the ip _123.123.123.5_ (virtual address that make the  
> load balancing) and each machine with 123.123.123.123.1/2/3/4. Just  
> setting the same cluster.name and differente node.name they didn't see  
> each other:
> 
> [http://localhost:9200/\_cluster/nodes?pretty](http://localhost:9200/_cluster/nodes?pretty)  
> {  
> "ok" : true,  
> "cluster\_name" : "CLUSTER\_NAME",  
> "nodes" : {  
> "w6bUFO79S9GHQ\_AL20s29Q" : {  
> "name" : "MACHINE\_3",  
> "transport\_address" : "inet[/_123.123.123.5_:9300]",  
> "hostname" : "RCJ3",  
> "version" : "0.90.0",  
> "http\_address" : "inet[/123.123.123.5:9200]"  
> }  
> }  
> }
> 
> [http://localhost:9200/\_cluster/nodes/health?pretty](http://localhost:9200/_cluster/nodes/health?pretty)  
> {  
> "ok" : true,  
> "cluster\_name" : "CLUSTER\_NAME",  
> "nodes" : { }  
> }
> 
> After I' tried to change the network.publish\_host of each machine to your  
> own ip and still not working:
> 
> [http://localhost:9200/\_cluster/nodes?pretty](http://localhost:9200/_cluster/nodes?pretty)  
> {  
> "ok" : true,  
> "cluster\_name" : "RCJHD\_SEARCH\_ENGINE",  
> "nodes" : {  
> "g7B9xw9yTeW-28YrpIozZw" : {  
> "name" : "RCJ3",  
> "transport\_address" : "inet[/123.123.123.3:9300]",  
> "hostname" : "RCJ3",  
> "version" : "0.90.0",  
> "http\_address" : "inet[/123.123.123.3:9200]"  
> }  
> }  
> }
> 
> Any ideias?
> 
> 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:22am UTC](https://discuss.elastic.co/t/configurate-elasticsearch-under-cluster-with-4-machines-and-nlb-windows-server/12418/3 "2017-07-06T02:22:57Z")

</div>


