Three node cluster on production

Hi ,

Can anyone help me in setting three node cluster on production?
Also which setting I need to add/edit on all three nodes.

Thanks,
Sohil

What is your problem?

  1. I want to know how many nodes should be Master only node and how many nodes should be data node and Master + data node.
  2. Do we need to add discovery.zen.ping.unicast.hosts: ["host1", "host2:port"] setting on all three nodes?

With three nodes in the cluster, I would recommend making them all hold data and be master eligible. Remember to set minimum_master_nodes to 2 to avoid split brain scenarios.

All nodes should have the IP addresses of all nodes in the unicast hosts list.

Thanks for your quick help.

What about #index.number_of_shards: 1 and #index.number_of_replicas: 0 in three nodes cluster.

If you want the cluster to be highly available, you will need at least one replica configured. The ideal number of shards will depend on your data, the specification of the cluster and the number of indices you expect to have. 3 might be a good starting option in order to distribute data across the nodes reasonably evenly.