Indexing and Recovery of Elasticsearch Nodes


(Ong) #1

I understand that any node in an Elasticsearch cluster can be indexed into and the data will be sent to other cluster nodes.

In the case where 1 node goes down, is it the responsibility of the application to switch to another node in the cluster to index data to?
i.e. the application has to maintain a list of IPs or Hostnames of the cluster nodes and it needs to index the next node in the list in case the current node is unreachable.

Regarding the recovery of a node, for example, if node1 in a 3 node cluster goes down and during this time, nodes 2 and 3 continue to receive new index writes, when node1 recovers, will node1 automatically receive the new index writes from nodes 2 and 3?


(Mark Walkom) #2

Yes, if you use any of the clients we provide this functionality.

Yep.


(Ong) #3

Thanks for the reply Mark. I would like to clarify the case where if the current node goes down, the user application is responsible for handling the switching of IPs or does the Elastic REST API automatically handle it for the application, i.e. the switch is transparent to the user application?


(Mark Walkom) #4

Elasticsearch does not handle it, you need the client to do it.


(Ong) #5

Thanks for the clarification


(system) #6

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