You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2021/03/10 14:39:02 UTC
[lucene-solr] branch reference_impl updated: @1445 Config tweaks
for load.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/reference_impl by this push:
new 4bcf82f @1445 Config tweaks for load.
4bcf82f is described below
commit 4bcf82f618d4c28ec6770fcacb4343ea310c164c
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Wed Mar 10 08:38:39 2021 -0600
@1445 Config tweaks for load.
Took 10 minutes
---
.../src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java | 6 +++---
.../java/org/apache/solr/client/solrj/impl/SolrClientBuilder.java | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java
index 2b6ed44..d4e7cdc 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java
@@ -1142,7 +1142,7 @@ public class Http2SolrClient extends SolrClient {
public static class Builder {
- public static int DEFAULT_MAX_THREADS = Integer.getInteger("solr.maxHttp2ClientThreads", Math.max(32, 512));
+ public static int DEFAULT_MAX_THREADS = Integer.getInteger("solr.maxHttp2ClientThreads", 256);
private static final Integer DEFAULT_IDLE_TIME = Integer.getInteger("solr.http2solrclient.default.idletimeout", 120000);
public int maxThreadPoolSize = DEFAULT_MAX_THREADS;
public int maxRequestsQueuedPerDestination = 1600;
@@ -1150,10 +1150,10 @@ public class Http2SolrClient extends SolrClient {
private SSLConfig sslConfig = defaultSSLConfig;
private Integer idleTimeout = DEFAULT_IDLE_TIME;
private Integer connectionTimeout;
- private Integer maxConnectionsPerHost = 16;
+ private Integer maxConnectionsPerHost = 32;
private boolean useHttp1_1 = Boolean.getBoolean("solr.http1");
protected String baseSolrUrl;
- protected Map<String,String> headers = new HashMap<>(6);
+ protected Map<String,String> headers = new HashMap<>(12);
protected boolean strictEventOrdering = false;
private Integer maxOutstandingAsyncRequests;
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientBuilder.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientBuilder.java
index 956ffa2..046f878 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientBuilder.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientBuilder.java
@@ -22,7 +22,7 @@ import org.apache.solr.client.solrj.impl.HttpSolrClient.Builder;
public abstract class SolrClientBuilder<B extends SolrClientBuilder<B>> {
public static final int DEFAULT_CONNECT_TIMEOUT = Integer.getInteger("solr.httpclient.defaultConnectTimeout", 10000);
- public static final int DEFAULT_SO_TIMEOUT = Integer.getInteger("solr.httpclient.defaultSoTimeout", 30000);
+ public static final int DEFAULT_SO_TIMEOUT = Integer.getInteger("solr.httpclient.defaultSoTimeout", 120000);
protected HttpClient httpClient;
protected ResponseParser responseParser;