Thanks for your answers.
I write a working config .yml (based on ElasticSearch doc)
Here the config.
Node 1 (initial master):
cluster.name: test-cluster
node.name: node-1
path.data: /srv/opensearch/data
path.logs: /var/log/opensearch
network.host: 19.0.17.111
network.bind_host: 0.0.0.0
cluster.initial_master_nodes: ["node-1"]
discovery.zen.ping.unicast.hosts: ["192.168.0.111", "192.168.0.112", "192.168.0.113"]
node.master: true
node.data: true
Node 2
cluster.name: test-cluster
node.name: node-2
path.data: /srv/opensearch/data
path.logs: /var/log/opensearch
network.host: 192.168.0.112
network.bind_host: 0.0.0.0
cluster.initial_master_nodes: ["node-1"]
discovery.zen.ping.unicast.hosts: ["192.168.0.111", "192.168.0.112", "192.168.0.113"]
node.master: true
node.data: true
Node 3
cluster.name: test-cluster
node.name: node-3
path.data: /srv/opensearch/data
path.logs: /var/log/opensearch
network.host: 192.168.0.113
network.bind_host: 0.0.0.0
cluster.initial_master_nodes: ["node-1"]
discovery.zen.ping.unicast.hosts: ["192.168.0.111", "192.168.0.112", "192.168.0.113"]
node.master: true
node.data: true
Important:
You have to start the initial master node before the other. In my case, that why the nodes don’t see each other.
Hope that could help.