You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Martin Grotzke (Created) (JIRA)" <ji...@apache.org> on 2012/04/05 01:28:21 UTC

[jira] [Created] (SOLR-3318) LBHttpSolrServer should allow to specify a preferred server for a query

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
            Reporter: Martin Grotzke
            Priority: Minor


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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-3318) LBHttpSolrServer should allow to specify a preferred server for a query

Posted by "Martin Grotzke (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grotzke updated SOLR-3318:
---------------------------------

    Attachment: SOLR-3318.git.patch

Patch created from git changeset.
                
> 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
>            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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-3318) LBHttpSolrServer should allow to specify a preferred server for a query

Posted by "Torsten Bøgh Köster (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250497#comment-13250497 ] 

Torsten Bøgh Köster commented on SOLR-3318:
-------------------------------------------

+1 on this one. To construct a response we run 2 solr queries, one for results one for facets. For caching purpuses it would be perfect to run those consecutive one on the same solr instance
                
> 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
>            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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-3318) LBHttpSolrServer should allow to specify a preferred server for a query

Posted by "Martin Grotzke (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264620#comment-13264620 ] 

Martin Grotzke commented on SOLR-3318:
--------------------------------------

Any feedback on this?
                
> 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
>            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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org