# Elasticsearch Load balance with multiple nodes in same machine

**URL:** https://discuss.elastic.co/t/elasticsearch-load-balance-with-multiple-nodes-in-same-machine/104432
**Category:** Elasticsearch
**Created:** [October 18, 2017, 4:51pm UTC](https://discuss.elastic.co/t/elasticsearch-load-balance-with-multiple-nodes-in-same-machine/104432 "2017-10-18T16:51:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![surajbs](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@surajbs](https://discuss.elastic.co/u/surajbs)
#### Post date: [October 18, 2017, 4:51pm UTC](https://discuss.elastic.co/t/elasticsearch-load-balance-with-multiple-nodes-in-same-machine/104432/1 "2017-10-18T16:51:56Z")

</div>

Hi,

I am trying to run multiple nodes with different instances in same machine for load balancing in elasticsearch.

I have downloaded three elasticsearch files in the same machine and configured their elasticsearch.yml file with different settings. Please see below:

- Elasticsearch - default configuration ([http://localhost:9200/](http://localhost:9200/))

- Elasticsearch-node1  
[cluster.name](http://cluster.name): Animals  
[node.name](http://node.name): Snake  
node.master: true  
node.data: true  
path.data: "C:\elasticsearch-5.4.2-node1\elasticsearch-5.4.2\data"  
path.logs: "C:\elasticsearch-5.4.2-node1\elasticsearch-5.4.2\logs"  
http.port: 9201  
discovery.zen.ping.unicast.hosts: ["127.0.0.1"]

- Elasticsearch-node2  
[cluster.name](http://cluster.name): Animals  
[node.name](http://node.name): Baboon  
node.master: false  
node.data: true  
path.data: "C:\elasticsearch-5.4.2-node2\elasticsearch-5.4.2\data"  
path.logs: "C:\elasticsearch-5.4.2-node2\elasticsearch-5.4.2\logs"  
http.port: 9202  
discovery.zen.ping.unicast.hosts: ["127.0.0.1"]

## FYI, the cluster health is "RED".

I am using logstash to load the csv file into elasticsearch, for which you can see the configuration below. But I am not able to see the other instances(9201 and 9202) loading the data.

output  
{   
elasticsearch {  
hosts =\> ["localhost:9200", "localhost:9201", "localhost:9202"]  
index =\> "cmss"  
document\_type =\> "cms"  
document\_id =\> "%{id}"  
}  
}

Please share your opinion and ideas on this.

Thank you.

---

<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: [November 15, 2017, 4:51pm UTC](https://discuss.elastic.co/t/elasticsearch-load-balance-with-multiple-nodes-in-same-machine/104432/2 "2017-11-15T16:51:59Z")

</div>

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