For this clusterstatus, as we are still pointing it at the Solr directly http://localhost:8983/solr/admin/collections?action=CLUSTERSTATUS
It is not likely to work if the main replica is down. Let's say I have 2 replica, one in localhost:8983, and other in another server, like 192.168.1.2:8984. If the localhost:8983 is down, the query will not work, and it will not know if the other replica is still running or not, unless we change the URL to http://192.168.1.2:8984/solr/admin/collections?action=CLUSTERSTATUS I'm looking to able to do this automatically without changing the IP address and URL. The solr.cmd command can do it, but we are finding out if this can be done via URL? Regards, Edwin On 6 June 2018 at 13:03, Shawn Heisey <apa...@elyograg.org> wrote: > On 6/5/2018 10:58 PM, Zheng Lin Edwin Yeo wrote: > >> The healthcheck action in SolrCLI is able to return the health status of >> individual collection, while this http://host:port/solr/admin/info/system >> URL >> returns the overall health status of Solr. >> We will need the information on the health status of individual >> collection, >> like the status of the replica, and which replica are the leader. Any idea >> if this is possible to do from URL? >> > > This might be what you're after: > > https://lucene.apache.org/solr/guide/7_3/collections-api. > html#clusterstatus > > Thanks, > Shawn > >