How to create antother node via elasticsearch.yml

Hi Team,
how to configure another node in elasticsearch.yml
"cluster_name": "elasticsearch",
"status": "green",
"timed_out": false,
"number_of_nodes": 1,
"number_of_data_nodes": 1,
"active_primary_shards": 6,
"active_shards": 6,
"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

You can't create a new node using elasticsearch.yml.
You can start a new node though. Ideally on another machine unless you have more than 64gb of RAM on your machine.

For dev purpose, you can easily run the bin/elasticsearch multiple times. But you need to change one of those two options:

Thanks @dadoonet

via ["host1", "host2"] this one we can configure another node ?can you explain what is the use of this one ?

Let say you start 2 nodes, one on the other one on

You'll need to make aware node1 how to reach node2 and the other way.

So you will actually put in both elasticsearch.yml: ["", ""]

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