LBHttpSolrServer - Connections managment
----------------------------------------

                 Key: SOLR-1700
                 URL: https://issues.apache.org/jira/browse/SOLR-1700
             Project: Solr
          Issue Type: Improvement
          Components: clients - java
    Affects Versions: 1.4
            Reporter: Patrick Sauts
            Priority: Minor
             Fix For: 1.5


As a LBHttpSolrServer is a wrapper to CommonsHttpSolrServer 

CommonsHttpSolrServer search1 = new CommonsHttpSolrServer("http://mysearch1";);
search1.setConnectionTimeout(CONNECTION_TIMEOUT);
search1.setSoTimeout(READ_TIMEOUT);
search1.setConnectionManagerTimeout(CONNECTION_MANAGER_TIMEOUT);
search1.setDefaultMaxConnectionsPerHost(MAX_CONNECTIONS_PER_HOST1);
search1.setMaxTotalConnections(MAX_TOTAL_CONNECTIONS1);

CommonsHttpSolrServer search2 = new CommonsHttpSolrServer("http://mysearch1";);
search2.setConnectionTimeout(CONNECTION_TIMEOUT);
search2.setSoTimeout(READ_TIMEOUT);
search2.setConnectionManagerTimeout(CONNECTION_MANAGER_TIMEOUT);
search2.setDefaultMaxConnectionsPerHost(MAX_CONNECTIONS_PER_HOST2);
search2.setMaxTotalConnections(MAX_TOTAL_CONNECTIONS2);

LBHttpSolrServer solrServers = new LBHttpSolrServer(search1, search2);

So we can manage the parameters per server.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to