SOLR-8433: Adding logging for HttpClientConfigurer

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1721176 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joel Bernstein 2015-12-21 15:01:33 +00:00
parent c4db8d57a4
commit 413c0b91bb
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,7 @@ import java.util.ArrayList;
import org.apache.lucene.util.NamedThreadFactory;
import org.apache.solr.client.solrj.SolrRequest;
import org.apache.solr.client.solrj.impl.HttpClientConfigurer;
import org.apache.solr.client.solrj.impl.HttpClientUtil;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.client.solrj.request.QueryRequest;
@ -52,6 +53,8 @@ public abstract class IterativeMergeStrategy implements MergeStrategy {
ModifiableSolrParams params = new ModifiableSolrParams();
params.set(HttpClientUtil.PROP_MAX_CONNECTIONS, 128);
params.set(HttpClientUtil.PROP_MAX_CONNECTIONS_PER_HOST, 32);
HttpClientConfigurer configurer = HttpClientUtil.getConfigurer();
log.info("############### HttpClientConfigurer ##################:"+configurer.getClass());
httpClient = HttpClientUtil.createClient(params);
}