On 3/29/23 07:16, Jan Høydahl wrote:
Trying to prevent traffic being sent to a Solr node that is going to shut down, 
to avoid interruption of service as seen from various clients.
First part of the puzzle is signaling to any (external) load balancer to stop 
sending requests to the node.
The other part is having SolrJ understand that the node is being stopped, and 
not routing internal requests to cores on the node.

I would use the ping handler with a healthcheck file for this. A load balancer can send a request to /solr/CORE_NAME/admin/ping (probably with distrib=false) as a healthcheck ... probably best to have a dedicated replica of an empty collection for that purpose. Disable the ping handler before shutting the node down, and the load balancer should stop sending requests there pretty quickly.

I would hope that existing mechanisms in SolrCloud are robust enough to handle this transparently in the event of server failure or a deletion request via the collections API, but I do not know if that is the case.

Thanks,
Shawn

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@solr.apache.org
For additional commands, e-mail: dev-h...@solr.apache.org

Reply via email to