If I run a cluster of ElasticSearch nodes, can I connect to any node
in order to issue a query? How should I deal with failover if that
node is down - move onto the next one in the node list?
-Andrei
If I run a cluster of ElasticSearch nodes, can I connect to any node
in order to issue a query? How should I deal with failover if that
node is down - move onto the next one in the node list?
-Andrei
Yes, you can issue a query to any node, and it will execute it, if a node
fails, you can move to the next node. The cluster state API returns for all
the nodes the addresses it exposes, so you can build dynamic round robin /
failover (thats what the perl client does).
-shay.banon
On Sat, Sep 18, 2010 at 8:46 PM, Andrei andrei@zmievski.org wrote:
If I run a cluster of Elasticsearch nodes, can I connect to any node
in order to issue a query? How should I deal with failover if that
node is down - move onto the next one in the node list?-Andrei
Right, though have to find a healthy node first to issue the cluster
health
query against.
-Andrei
On Sep 18, 2:50 pm, Shay Banon shay.ba...@elasticsearch.com wrote:
Yes, you can issue a query to any node, and it will execute it, if a node
fails, you can move to the next node. The cluster state API returns for all
the nodes the addresses it exposes, so you can build dynamic round robin /
failover (thats what the perl client does).-shay.banon
Yes, though you can create a list of all the nodes when things are good, so
you know who to fall over to.
On Sat, Sep 18, 2010 at 8:58 PM, Andrei andrei@zmievski.org wrote:
Right, though have to find a healthy node first to issue the cluster
health
query against.-Andrei
On Sep 18, 2:50 pm, Shay Banon shay.ba...@elasticsearch.com wrote:
Yes, you can issue a query to any node, and it will execute it, if a node
fails, you can move to the next node. The cluster state API returns for
all
the nodes the addresses it exposes, so you can build dynamic round robin
/
failover (thats what the perl client does).-shay.banon
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.