I've a SOLR cloud setup with 8 nodes. I'm using zookeeper with it. I know when a node fails zookper keeps a record of it, and allocates a new master if needed. I want zookeeper to send a notification saying that this node is down. If that is not possible I want somehow to read the current SOLR node health status in zookeeper via java so that I can send out notifications using a custom code. I also don't know how SOLR does that, as I can see the status of all the nodes on SOLR cloud UI. Is there a simple API to pull in this through java. I dont want ot use the SOLR ping API to ping every collection as that is not scalable. So if you guys could help me out with checking the status of all the SOLR cloud , through any of these ways or even suggest a new one, that would be great.
TIA Sagar
CloudSolrServer provides API to retrieve the status of replicas. I have an answer posted here if it helps