Well, this status: "green" is actually not what I am looking for.
I have 2 nodes.
I have defined a single gslb name for these IP's, but since all the requests are handled by first node (primary/backup), I would like to know if first node is offline for some reason. If that happens, then his service is automatically redirected to the node 2.
This _cluster/health is for whole cluster, and since if status="yellow", I do not know, which node has problems.
If you only have two nodes in the cluster, losing either of the nodes should make the cluster red (assuming you have 2 master eligible nodes and have configured it correctly). Why can't you simply establish the status of the cluster and nodes through a call to another API if there is an issue?
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.