Register the TCP_CONNECT_TIMEOUT setting (#36663)

This commit registers the TCP_CONNECT_TIMEOUT setting in the
ClusterSettings.
This commit is contained in:
Tim Brooks 2018-12-14 18:06:48 -07:00 committed by GitHub
parent 2dd56cf945
commit 4e4022b7ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -325,6 +325,7 @@ public final class ClusterSettings extends AbstractScopedSettings {
TransportSettings.OLD_TRANSPORT_COMPRESS,
TransportSettings.TRANSPORT_COMPRESS,
TransportSettings.PING_SCHEDULE,
TransportSettings.TCP_CONNECT_TIMEOUT,
TransportSettings.CONNECT_TIMEOUT,
TransportSettings.DEFAULT_FEATURES_SETTING,
TransportSettings.OLD_TCP_NO_DELAY,

View File

@ -71,6 +71,7 @@ public final class TransportSettings {
// the scheduled internal ping interval setting, defaults to disabled (-1)
public static final Setting<TimeValue> PING_SCHEDULE =
timeSetting("transport.ping_schedule", TimeValue.timeValueSeconds(-1), Setting.Property.NodeScope);
// TODO: Deprecate in 7.0
public static final Setting<TimeValue> TCP_CONNECT_TIMEOUT =
timeSetting("transport.tcp.connect_timeout", NetworkService.TCP_CONNECT_TIMEOUT, Setting.Property.NodeScope);
public static final Setting<TimeValue> CONNECT_TIMEOUT =