Best URL for load balancer HTTP health check

With a standard LB in front of an N-node cluster, what's the best URL in
the ES API to check the health of a particular node (so as to know to
remove it at least temporarily).

There is the node info API:

curl -XGET 'http://localhost:9200/_nodes'

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-info.html

But that's returning node info for all the nodes in the cluster that
localhost is a member of. I want something like /_nodes/_current. Or
maybe the fact that a particular node can even process any GET request
(e.g., http://localhost:9200/_cluster/health) signifies that it is
responsive enough and can take requests?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/73d376f4-5aee-420b-8a5e-dd2a7deb632c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

If you just curl http://IP:9200 you will get a response, if it's not 200
then chances are it's not part of the cluster and something is wrong.

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 14 August 2014 07:35, Matt Hughes hughes.matt@gmail.com wrote:

With a standard LB in front of an N-node cluster, what's the best URL in
the ES API to check the health of a particular node (so as to know to
remove it at least temporarily).

There is the node info API:

curl -XGET 'http://localhost:9200/_nodes'

Elasticsearch Platform — Find real-time answers at scale | Elastic

But that's returning node info for all the nodes in the cluster that
localhost is a member of. I want something like /_nodes/_current. Or
maybe the fact that a particular node can even process any GET request
(e.g., http://localhost:9200/_cluster/health) signifies that it is
responsive enough and can take requests?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/73d376f4-5aee-420b-8a5e-dd2a7deb632c%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/73d376f4-5aee-420b-8a5e-dd2a7deb632c%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEM624Y%3D%3DD0jQfwTjgCh7o69OPmmUrFZ0kLioceuOQ0siSj%3D4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.