[ https://issues.apache.org/jira/browse/SOLR-3318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15601852#comment-15601852 ]
Alexandre Rafalovitch commented on SOLR-3318: --------------------------------------------- [[~shalinmangar] Thanks for the catch. I reviewed the LBHttpSolrClient and I see no indication of server stickiness being implemented. Do you think it is a viable feature still? One that could be marked newdev, as it has a patch that needs to be adapted to master? > LBHttpSolrServer should allow to specify a preferred server for a query > ----------------------------------------------------------------------- > > Key: SOLR-3318 > URL: https://issues.apache.org/jira/browse/SOLR-3318 > Project: Solr > Issue Type: Improvement > Components: clients - java > Affects Versions: 4.0-ALPHA > Reporter: Martin Grotzke > Priority: Minor > Attachments: SOLR-3318.git.patch > > > For a user query we make several solr queries that differ only slightly and > therefore should use/reuse objects cached from the first query (we're using a > custom request handler and custom caches). > Thus such subsequent queries should hit the same solr server. > The implemented solution looks like this: > * The client obtains a live SolrServer from LBHttpSolrServer > * The client provides this SolrServer as preferred server for a query > * If the preferred server is no longer alive the request is retried on > another live server > * Everything else follows the existing logic: > ** After live servers are exhausted, any servers previously marked as dead > will be tried before failing the request > ** If no live servers are found a SolrServerException is thrown > The implementation is also [on > github|https://github.com/magro/lucene-solr/commit/a75aef3d]. > Mailing list thread: > http://lucene.472066.n3.nabble.com/LBHttpSolrServer-to-query-a-preferred-server-tt3884140.html -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org