2-node cluster debian

Hello,
I try to build 2-node cluster but it doesn't work. I have installed bitnami-elk-7.9.1-0-linux-debian-10-x86_64-nami.ova , I made two nodes:
debian-01: 192.168.11.96, and debian-02: 192.168.11.97
configuration file elasticsearch.yml:

http.port: 9200
path.data: /opt/bitnami/elasticsearch/data
transport.tcp.port: 9300
action.destructive_requires_name: true
network.host: 192.168.11.96
network.bind_host: 0.0.0.0
network.publish_host: 192.168.11.96
cluster.name: Cluster
node.name: debian-01          //second node debian-02
discovery.zen.ping.unicast.hosts: ["192.168.11.96", "192.168.11.97"]
discovery.initial_state_timeout: 5m
gateway.recover_after_nodes: 1
gateway.expected_nodes: 1
cluster.initial_master_nodes: ["192.168.11.96", "192.168.11.97"]
node.master: true
node.data: true
node.ingest: false

I have tried different configurations and still don't work. Can somebody help me and correct the configuration file?

What do you mean by that?

I have tried something like these:

discovery.zen.ping.unicast.hosts: ["192.168.11.96", "192.168.11.97"]
or
discovery.zen.ping.unicast.hosts: ["debian-01", "debian-02"]

cluster.initial_master_nodes: ["192.168.11.96", "192.168.11.97"]
or
cluster.initial_master_nodes: 192.168.11.96, 192.168.11.97
or
cluster.initial_master_nodes: debian-01, debian-02

and it doesn't work.
Anyway, maybe you have some example how to properly configure cluster, if yes share with me if you want.

Ok, but please be more explicit.
Can you share logs?

I removed these lines from configuration file:

gateway.recover_after_nodes: 1
gateway.expected_nodes: 1

and it works like it should.

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