How to create antother node via elasticsearch.yml


(john rabindranath) #1

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
}


(David Pilato) #2

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:


(john rabindranath) #3

Thanks @dadoonet

via #discovery.zen.ping.unicast.hosts: ["host1", "host2"] this one we can configure another node ?can you explain what is the use of this one ?


(David Pilato) #4

Let say you start 2 nodes, one on node1.company.com the other one on node2.company.com.

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

So you will actually put in both elasticsearch.yml:

discovery.zen.ping.unicast.hosts: ["node1.company.com", "node2.company.com"]

(system) #5

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