Hi All,
I have 4 node prepare to 1 master (172.20.9.45, 192.168.1.1) and 3 data node (192.168.1.11 ~13). The 172.20.9.x is public LAN, 192.168.1.x is private LAN by hub. The ES version : 7.4.0
these is my elasticsearch.yml for per node.
Master node:
node.name: oaelk2-em01
node.master: true
node.data: false
network.host: oaelk2-em01
discovery.seed_hosts: ["oaelk2-em01", "oaelk2-ed01", "oaelk2-ed02", "oaelk2-ed03"]
cluster.initial_master_nodes: ["oaelk2-em01", "oaelk2-ed01", "oaelk2-ed02", "oaelk2-ed03"]
Data node (oaelk2-ed01)
node.name: oaelk2-ed01
node.master: false
node.data: true
network.host: oaelk2-ed01
discovery.seed_hosts: ["oaelk2-em01", "oaelk2-ed01", "oaelk2-ed02", "oaelk2-ed03"]
cluster.initial_master_nodes: ["oaelk2-em01", "oaelk2-ed01", "oaelk2-ed02", "oaelk2-ed03"]
Data node (oaelk2-ed02)
node.name: oaelk2-ed02
node.master: false
node.data: true
network.host: oaelk2-ed02
discovery.seed_hosts: ["oaelk2-em01", "oaelk2-ed01", "oaelk2-ed02", "oaelk2-ed03"]
cluster.initial_master_nodes: ["oaelk2-em01", "oaelk2-ed01", "oaelk2-ed02", "oaelk2-ed03"]
Data node (oaelk2-ed03)
node.name: oaelk2-ed03
node.master: false
node.data: true
network.host: oaelk2-ed03
discovery.seed_hosts: ["oaelk2-em01", "oaelk2-ed01", "oaelk2-ed02", "oaelk2-ed03"]
cluster.initial_master_nodes: ["oaelk2-em01", "oaelk2-ed01", "oaelk2-ed02", "oaelk2-ed03"]
These is /etc/hosts for per node (master & data node)
192.168.1.1 OAELK2-EM01
192.168.1.11 OAELK2-ED01
192.168.1.12 OAELK2-ED02
192.168.1.13 OAELK2-ED03
But just only use 192.168.1.1 can connect to ES Master, 172.20.9.45 Can't to connect .
[root@OAELK2-EM01 data]# curl http://192.168.1.1:9200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
192.168.1.12 2 25 0 0.00 0.01 0.05 dil - oaelk2-ed02
192.168.1.11 2 24 0 0.00 0.01 0.05 dil - oaelk2-ed01
192.168.1.13 2 25 0 0.00 0.01 0.05 dil - oaelk2-ed03
192.168.1.1 2 24 0 0.00 0.01 0.05 ilm * oaelk2-em01
[root@OAELK2-EM01 data]# curl http://172.20.9.45:9200/_cat/nodes?v
curl: (7) Failed connect to 172.20.9.45:9200; Connection refused
How to bind the public IP??? Thank a lot.