How can I build a claster from two independent Elastic Servers?

I have two independent Elastic Servers in my business.
I know the steeps I have to do to set up the cluster, the question is what will happens with the data of both servers when I create the cluster?
Will I lose it?

If it helps, the replication factor is 1.

Thanks :slight_smile:

You really need 3 nodes in a cluster, because for Elasticsearch the majority of 2 is 2, so if one node goes down your cluster is then unavailable.

You can generally not join nodes with data that has formed different clusters into a single cluster without losing data. I would recommend copying all data from one of the nodes to the other and then clear the data path of this mode and have it join the other as a new empty node.


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