Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D938ED4AF for ; Fri, 7 Sep 2012 22:55:08 +0000 (UTC) Received: (qmail 28390 invoked by uid 500); 7 Sep 2012 22:55:07 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 28343 invoked by uid 500); 7 Sep 2012 22:55:07 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 28334 invoked by uid 99); 7 Sep 2012 22:55:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 22:55:07 +0000 Date: Sat, 8 Sep 2012 09:55:07 +1100 (NCT) From: "Hoss Man (JIRA)" To: dev@lucene.apache.org Message-ID: <876762733.52962.1347058507697.JavaMail.jiratomcat@arcas> In-Reply-To: <168381264.9220.1334916762463.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SOLR-3384) Custom SolrServer chains - mixing SolrServer-subclass properties as you like to MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-3384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hoss Man updated SOLR-3384: --------------------------- Fix Version/s: (was: 4.0) removing fixVersion=4.0 since there is no evidence that anyone is currently working on this issue. (this can certainly be revisited if volunteers step forward) > Custom SolrServer chains - mixing SolrServer-subclass properties as you like to > ------------------------------------------------------------------------------- > > Key: SOLR-3384 > URL: https://issues.apache.org/jira/browse/SOLR-3384 > Project: Solr > Issue Type: Improvement > Components: clients - java > Affects Versions: 3.5 > Reporter: Per Steffensen > Priority: Minor > Labels: design, separation, solrj, solrserver > > Today it is like this > - LBHttpSolrServer is load-balancing over HttpSolrServers > - ConcurrentUpdateSolrServer is using HttpSolrServer internally for sending requests (or its not, but I believe (without having looked thoroughly into it) it ought to) > - CloudSolrServer is using LBHttpSolrServer to load-balance over HttpSolrServer (one for each slice in a collection) > IMHO it is a little to hardcoded to release its full potential. Those SolrServers (or some of them) ought to take the "internally used SolrServer(s)" or a factory to help creating those as a parameter (constructor and/or set-method). E.g. > - LBHttpSolrServer should just be called LBSolrServer and not be hardcoded to use HttpSolrServers internally. Instead of taking a list of URLs to load-balance over (using HttpSolrSever) it should just take a list of SolrServers to load-balance over. > - ConcurrentUpdateSolrServer should not be hardcoded to use HttpSolrServer internally. Instead take SolrServers (or a factory to construct those) to use internally as input from the outside. > - CloudSolrServer of course will need to load-balance over the slices in the collection (that is its core property), but not necessarily directly using HttpSolrServers. Instead it should probably take a factory accepting a URL in its "createInstance"-method to be used when creating the SolrServers to load-balance over. > Making SolrServer more generic like this, having them deal only with their core reason for existing (separation of concerns), you will be able to create you own custom chains of SolrServers - e.g. a "LBSolrSever -> CloudSolrSevers -> LBSolrServer -> ConcurrentSolrServers -> HttpSolrServer" chain which I believe I would like to use to load-balance asynchronously over several collections. > This improvement is very hard to do before SOLR-3382 and SOLR-3383 has been solved, because you will not be able to add Concurrent(Update)SolrServer to your chain without limiting the functionality of your chain (update only) and you will not be able to get responses back. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators 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