Elasticsearch Load balance with multiple nodes in same machine


(Suraj) #1

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/)

  • Elasticsearch-node1
    cluster.name: Animals
    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: Animals
    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.


(system) #2

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