Hi,

we want to use the LBHttpSolrServer (4.0/trunk) and specify a preferred
server. Our use case is that for one user request we make several solr
requests with some heavy caching (using a custom request handler with a
special cache) and want to make sure that the subsequent solr requests
are hitting the same solr server.

A possible solution with LBHttpSolrServer would look like this:
- LBHttpSolrServer provides a method getSolrServer() that returns a
ServerWrapper
- LBHttpSolrServer provides a method
   request(final SolrRequest request, ServerWrapper preferredServer)
  that returns the response (NamedList<Object>).

This method first tries the specified preferredServer and if this fails
queries all others (first alive servers then zombies).

What do you think of this solution? Any other solution preferred?

I'll start implementing this and submit an issue/patch hoping that it
makes it into trunk.

Cheers,
Martin

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to