You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/03/16 06:01:03 UTC
[jira] [Updated] (SOLR-1700) LBHttpSolrServer - Connections
managment
[ https://issues.apache.org/jira/browse/SOLR-1700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Smiley updated SOLR-1700:
-------------------------------
Fix Version/s: (was: 4.7)
4.8
> 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: 4.8
>
>
> 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 was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org