-
Notifications
You must be signed in to change notification settings - Fork 25.4k
[ML] Set Connect Timeout to 5s #123272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ML] Set Connect Timeout to 5s #123272
Conversation
Reduced connection timeout from infinite to a system configurable setting that defaults to 5s. Increased EIS auth token timeout from 30s to 1m.
Hi @prwhelan, I've created a changelog YAML for you. |
Pinging @elastic/ml-core (Team:ML) |
@@ -89,6 +91,12 @@ public class HttpClientManager implements Closeable { | |||
Setting.Property.Dynamic | |||
); | |||
|
|||
public static final Setting<TimeValue> CONNECTION_TIMEOUT = Setting.timeSetting( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be added to getSettingsDefinitions
?
@@ -89,6 +91,12 @@ public class HttpClientManager implements Closeable { | |||
Setting.Property.Dynamic | |||
); | |||
|
|||
public static final Setting<TimeValue> CONNECTION_TIMEOUT = Setting.timeSetting( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about we move this into HttpSettings
. I don't think we need to add a addSettingsUpdateConsumer
because we'd have to close the client and recreate it but I think that class was for the settings for the client.
Reduced connection timeout from infinite to a system configurable setting that defaults to 5s. Increased EIS auth token timeout from 30s to 1m.
Reduced connection timeout from infinite to a system configurable setting that defaults to 5s. Increased EIS auth token timeout from 30s to 1m.
Reduced connection timeout from infinite to a system configurable setting that defaults to 5s. Increased EIS auth token timeout from 30s to 1m.
Reduced connect timeout from system default to a system configurable setting that defaults to 5s. This value controls the time waiting for a connection to be established.
Increased EIS auth token timeout from 30s to 1m.