Hello Team,

I have few experiences where restart of a solr node is the only option when
a core goes down. I am trying to automate the restart of a solr server when
a core goes down or the replica is unresponsive over a period of time.

I have a script to check if the cores/ replicas associated with a node is
up. I have two approaches - One is to get the cores from solr CLUSTERSTATUS
API and do a PING on each core. If atleast one core on the node doesn't
repond to ping, then mark that node down and do restart after few retries.
Second is to get the cores from the solr CLUSTERSTATUS API along with its
status. If the status is down, then mark that node down and do a restart
after few retries.

Which is the best way/ recommended approach to check if a core associated
with a node is down and is ready for a solr service restart?

Thanks!

Reply via email to