Cluster elasticsearch on basic license

Hi, I have 1 elasticsearch node, I've installed another node in another DC. Now I wanna have a cluster between 2 node so data can be HA. Based on documentations I've added this config (on master): mycluster true true certificate elastic-certificates.p12 elastic-certificates.p12 node-1
node.master: true (it's false on node-2) true
node.attr.rack: DC1 /data/elasticsearch
path.logs: /var/log/elasticsearch <Valid IP>
discovery.seed_hosts: ["node-1","node-2"]
cluster.initial_master_nodes: ["node-1"] 

After restarting them, nothing happened. no changes. It's about config or something else ?
Thank You

In order for a cluster to be HA you need at least 3 nodes as Elasticsearch is based on consensus algorithms for leader election. 2 is not enough.

1 Like

3 node, 2 data, 1 master you mean ? can I have all 3 be masters and data? I wanna have read/write on all nodes.

3 nodes that are master r we legible and hold data (the default configuration).

1 Like

Please keep in mind, that an Elasticsearch cluster with nodes in different DCs is not a supported configuration.

That is a good point. Elasticsearch requires very low latencies and good throughput between nodes. Well connected data centres in close proximity tend to work (think AWS AZ), but data centres in different regions will cause problems.

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