[Elastic 7.2.1] Problem creating a cluster from 3 single nodes

Hello,

I have 3 elastic servers initially in standalone mode, and I wanted to create a cluster with those 3 servers.
I configure them but the cluster/health tells me that there is only one node in my cluster.

The cluster name is the same for the 3 nodes.
Here is my conf (node.name is node1, node2 and node3 I only put node1 for the conf here but on each server node.name is set respectively to node1, node2 and node3):

cluster.name=rfp
network.host=0.0.0.0
network.publish_host=eth0
http.port=12020
transport.tcp.port=12021
node.name=node1
discovery.seed_hosts=node1:12021,node2:12021,node3:12021
cluster.initial_master_nodes=node1,node2,node3

the _cluster/health return me this on each node:
{
"cluster_name" : "rfp",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 0,
"active_shards" : 0,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}

Please help :slight_smile:

Regards,
Xavier

I am confused. If you have three servers initially in standalone mode, they are three different clusters, so they will not form a cluster.

if you want to merge the data of those three clusters together, you might be best off using snapshotting all the data, then create a fresh cluster from three nodes and then restoring everything into that new cluster instead of using existing nodes with an existing data directory.

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