Hi,
I am trying to set up a high availability cluster with 3 nodes.
I want all 3 of then as master eligible nodes and data nodes too. I am using following configuration to set up cluster in .yml file for node 1. cluster.name: test-cluster node.name: node-1 path.data: /var/lib/elasticsearch path.logs: /var/log/elasticsearch network.host: <IP_of_node1> discovery.seed_hosts: ["<Private-ip-node1>", "<Private-ip-node2>", "<Private-ip-node3>"] cluster.initial_master_nodes: ["node-1", "node-2","node-3"]
.yml for node2 and node 3 is similar to this just i m changing node.name and network.host.
Multi-node cluster is not forming. everynode is behaving like single node cluster.
Do we need to add few more things in this configuration? discovery.zen.minimum_master_nodes: 2 this will avoid split brain problem but not helping me to form a multinode-cluster.
did you destroy data in /var/lib/elasticsearch before restarting nodes with different configuration? ES is storing configuration in indexes and use it when restarting…
No i have not destroyed that. batch_metrics_enabled.conf logging_enabled.conf nodes performance_analyzer_enabled.conf rca_enabled.conf
need to destroy all of them before restarting?
are you running all nodes on separate computers? do you have firewall opened ports 9200 and 9300? do nodes can reach each other? do you have multiple networks configured on nodes? can you set logging to DEBUG for all nodes? can you remove discovery.zen.minimum_master_nodes: 2 from config? can nodes resolve names to ip for all?
I am using 3 virtual machines for 3 nodes.
They all are on same network.
Firewall is not running on all nodes. discovery.zen.minimum_master_nodes: 2 i am not using this setting curently in my config file.
Nodes can reach each other.
Same things are working for elasticsearch but not for open distro version.
Going to set logging to DEBUG
Thank you very much for your efforts @mmamaenko
Resolved this issue. Thank you @mmamaenko for your constant support. i reboot my all Virtual machines and delete again /var/lib/elasticseach/nodes folder. and nodes started connecting and form a 3 node happy cluster. Now i think…i can add that setting for resolving split brain problem too.
I also tried scaling and worked for me.
Thank you!
Hi @pranali4796@mmamaenko
I am facing the same issue for cluster formation.
Cluster is not getting formed, can you please suggest two points here.
Throgh SSH I can connect with other nodes, but I didn’t create password less authontication.and I am not doing this with Elasticsearch user.
Should I copy those keys to create password less communication and should I use only elastic search user which is not sudo.
2.Opendiatro and kibana are not exposing to browser. 9200,5601 are in listening state.
@varma
Could you please share you config files and how your are using it (docker/rpm/tar). So that we can investigate exact issue.
Please share configs from :
elasticsearch.yml and kibana.yml
and can you please tell me how to check whether firewall is blocked between these vms?
i mean, i am expecting which commands can be used
or can you pls share any reference sites to troubleshoot it