KEYCLOAK-2436 Better defaults
This commit is contained in:
parent
c2fa0e5c6d
commit
6c39810ba7
3 changed files with 11 additions and 10 deletions
|
@ -396,7 +396,7 @@ bin/add-user.[sh|bat] -r master -u <username> -p <password>
|
|||
<term>connection-pool-size</term>
|
||||
<listitem>
|
||||
<para>
|
||||
How many connections can be in the pool (200 by default).
|
||||
How many connections can be in the pool (128 by default).
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -404,7 +404,7 @@ bin/add-user.[sh|bat] -r master -u <username> -p <password>
|
|||
<term>max-pooled-per-route</term>
|
||||
<listitem>
|
||||
<para>
|
||||
How many connections can be pooled per host (100 by default).
|
||||
How many connections can be pooled per host (64 by default).
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -412,7 +412,7 @@ bin/add-user.[sh|bat] -r master -u <username> -p <password>
|
|||
<term>connection-ttl-millis</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Maximum connection time to live in milliseconds
|
||||
Maximum connection time to live in milliseconds. Not set by default.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -420,7 +420,8 @@ bin/add-user.[sh|bat] -r master -u <username> -p <password>
|
|||
<term>max-connection-idle-time-millis</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Maximum time the connection might stay idle in the connection pool. Will start background cleaner thread if set (by default it's not set)
|
||||
Maximum time the connection might stay idle in the connection pool (900 seconds by default). Will start background cleaner thread of Apache HTTP client.
|
||||
Set to -1 to disable this checking and the background thread.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -119,10 +119,10 @@ public class DefaultHttpClientFactory implements HttpClientFactory {
|
|||
if (httpClient == null) {
|
||||
long socketTimeout = config.getLong("socket-timeout-millis", -1L);
|
||||
long establishConnectionTimeout = config.getLong("establish-connection-timeout-millis", -1L);
|
||||
int maxPooledPerRoute = config.getInt("max-pooled-per-route", 100);
|
||||
int connectionPoolSize = config.getInt("connection-pool-size", 200);
|
||||
int maxPooledPerRoute = config.getInt("max-pooled-per-route", 64);
|
||||
int connectionPoolSize = config.getInt("connection-pool-size", 128);
|
||||
long connectionTTL = config.getLong("connection-ttl-millis", -1L);
|
||||
long maxConnectionIdleTime = config.getLong("max-connection-idle-time-millis", -1L);
|
||||
long maxConnectionIdleTime = config.getLong("max-connection-idle-time-millis", 900000L);
|
||||
boolean disableCookies = config.getBoolean("disable-cookies", true);
|
||||
String clientKeystore = config.get("client-keystore");
|
||||
String clientKeystorePassword = config.get("client-keystore-password");
|
||||
|
|
|
@ -92,11 +92,11 @@ public class HttpClientBuilder {
|
|||
protected boolean disableTrustManager;
|
||||
protected HostnameVerificationPolicy policy = HostnameVerificationPolicy.WILDCARD;
|
||||
protected SSLContext sslContext;
|
||||
protected int connectionPoolSize = 200;
|
||||
protected int maxPooledPerRoute = 100;
|
||||
protected int connectionPoolSize = 128;
|
||||
protected int maxPooledPerRoute = 64;
|
||||
protected long connectionTTL = -1;
|
||||
protected TimeUnit connectionTTLUnit = TimeUnit.MILLISECONDS;
|
||||
protected long maxConnectionIdleTime = -1;
|
||||
protected long maxConnectionIdleTime = 900000;
|
||||
protected TimeUnit maxConnectionIdleTimeUnit = TimeUnit.MILLISECONDS;
|
||||
protected HostnameVerifier verifier = null;
|
||||
protected long socketTimeout = -1;
|
||||
|
|
Loading…
Reference in a new issue