Hi all,
I tried to setup 3 Elasticsearch nodes with configuration below
- file /etc/hosts (on 3 nodes)
- elasticsearch.yml
NODE 1 (master-1)
cluster.name: es-cluster
node.name: "master-1"
node.master: true
node.data: true
path.data: /home/elasticsearch/elasticsearch-7.12.0/data
path.logs: /home/elasticsearch/elasticsearch-7.12.0/logs
network.host: [ local, site ]
discovery.seed_hosts: ["172.19.11.74", "172.19.11.75", "172.19.11.76"]
cluster.initial_master_nodes: ["master-1", "master-2", "master-3"]
NODE 2 (master-2)
cluster.name: es-cluster
node.name: "master-2"
node.master: true
node.data: true
path.data: /home/elasticsearch/elasticsearch-7.12.0/data
path.logs: /home/elasticsearch/elasticsearch-7.12.0/logs
network.host: [ local, site ]
discovery.seed_hosts: ["172.19.11.74", "172.19.11.75", "172.19.11.76"]
cluster.initial_master_nodes: ["master-1", "master-2", "master-3"]
NODE 3 (master-3)
cluster.name: es-cluster
node.name: "master-3"
node.master: true
node.data: true
path.data: /home/elasticsearch/elasticsearch-7.12.0/data
path.logs: /home/elasticsearch/elasticsearch-7.12.0/logs
network.host: [ local, site ]
discovery.seed_hosts: ["172.19.11.74", "172.19.11.75", "172.19.11.76"]
cluster.initial_master_nodes: ["master-1", "master-2", "master-3"]
I expect to get 3 node with both master and data role in a cluster but this is the result when I get information on each node (only 1 node in cluster)
Can you guys have any advice for my configuration ?, tks