Setting up 2 nodes on same machine

Hi,

I have read all that I could find about setting up two nodes, searched entire internet but I'm failing to set two nodes in same cluster on dev machine (test enviroment). What did I miss ?

I have 2 elastic installation folders pointing to different data/log folders, so they should act like two different nodes using two different IP's but same ports. (ip in example are dummy).

Node ports are allowed in firewall, I have access to them and running Kibana to check if node 2 connected to same cluster..but failing. Please help.

node 1 settings:
cluster.name: "Cluster-1"
node.name: "Instance-1"
node.max_local_storage_nodes : 4
network.host: "192.168.1.1"
http.port: 9244
transport.tcp.port: 9245
discovery.zen.ping.unicast.hosts: ["192.168.1.1:9244", "192.168.1.2:9244"]
discovery.zen.minimum_master_nodes: 1

Node 2 settings:
cluster.name: "Cluster-1"
node.name: "Instance-2"
node.max_local_storage_nodes : 4
network.host: "192.168.1.2"
http.port: 9244
transport.tcp.port: 9245
discovery.zen.ping.unicast.hosts: ["192.168.1.1:9244", "192.168.1.2:9244"]
discovery.zen.minimum_master_nodes: 1

Communication within the Elasticsearch cluster is over the transport port, so you need to use 9245 in discovery.zen.ping.unicast.hosts. As you have 2 master eligible nods you should also set discovery.zen.minimum_master_nodes to 2 as per these guidelines.

Christian .. thank you! :slight_smile:

Out of all combinations I haven't tried transport port for some reason.

As they communicate through transport port, I need to open TCP port only, right?

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