> On Nov. 25, 2014, 12:55 a.m., Gregory Chanan wrote:
> > It seems strange to me that the configuration here is all done via SolrXml; 
> > getting rid of the stale performance check and closing idle connections 
> > doesn't seem much different than configuring say, SO_TIMEOUT, which is all 
> > in HttpClientUtil.  Also, if this configuration is so great, wouldn't I 
> > want it on my own HttpSolrServers, or at least the ability to configure it? 
> >  Of course the parameters could still be set in SolrConfigXml for the 
> > HttpShardhandler and UpdateShardHandler, but the meat of it seems like it 
> > could live in HttpClientUtil.
> > 
> > One complication with that approach is how to close the pool.  Perhaps, 
> > given we are about to do a new major release, it's a good time to update 
> > our interfaces to return CloseableHttpClients rather than HttpClients.  
> > Just a thought.

SO_TIMEOUT and the connection timeout for distrib updates and queries is 
defined in solr.xml actually. This matches the current pattern.

HttpSolrServer takes an httpclient instance if you want to rig this yourself. I 
was going to set up CloudSolrServer to do this by default, but I'm less 
concerned about HttpSolrServer.


- Mark


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/28393/#review62902
-----------------------------------------------------------


On Nov. 24, 2014, 3:42 p.m., Mark Miller wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/28393/
> -----------------------------------------------------------
> 
> (Updated Nov. 24, 2014, 3:42 p.m.)
> 
> 
> Review request for lucene.
> 
> 
> Repository: lucene
> 
> 
> Description
> -------
> 
> https://issues.apache.org/jira/browse/SOLR-4509
> 
> 
> Diffs
> -----
> 
>   trunk/solr/core/src/java/org/apache/solr/core/ConfigSolr.java 1641405 
>   trunk/solr/core/src/java/org/apache/solr/core/ConfigSolrXml.java 1641405 
>   trunk/solr/core/src/java/org/apache/solr/core/ConfigSolrXmlOld.java 1641405 
>   trunk/solr/core/src/java/org/apache/solr/core/CoreContainer.java 1641405 
>   trunk/solr/core/src/java/org/apache/solr/core/PluginInfo.java 1641405 
>   
> trunk/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandlerFactory.java
>  1641405 
>   trunk/solr/core/src/java/org/apache/solr/update/UpdateShardHandler.java 
> 1641405 
>   
> trunk/solr/core/src/java/org/apache/solr/util/IdleConnectionMonitorRunnable.java
>  PRE-CREATION 
>   trunk/solr/core/src/test/org/apache/solr/cloud/OverseerTest.java 1641405 
>   
> trunk/solr/core/src/test/org/apache/solr/cloud/TestLeaderElectionZkExpiry.java
>  1641405 
>   trunk/solr/core/src/test/org/apache/solr/cloud/TestZkChroot.java 1641405 
>   trunk/solr/core/src/test/org/apache/solr/cloud/ZkControllerTest.java 
> 1641405 
>   trunk/solr/core/src/test/org/apache/solr/core/TestCoreDiscovery.java 
> 1641405 
>   
> trunk/solr/core/src/test/org/apache/solr/core/TestImplicitCoreProperties.java 
> 1641405 
>   trunk/solr/server/etc/jetty.xml 1641405 
>   
> trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpClientUtil.java
>  1641405 
> 
> Diff: https://reviews.apache.org/r/28393/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Mark Miller
> 
>

Reply via email to