Skip to content

[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

Merged
merged 7 commits into from
Feb 24, 2025
Merged

Conversation

prwhelan
Copy link
Member

@prwhelan prwhelan commented Feb 24, 2025

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.

Reduced connection timeout from infinite to a system configurable
setting that defaults to 5s.

Increased EIS auth token timeout from 30s to 1m.
@prwhelan prwhelan added >bug :ml Machine learning Team:ML Meta label for the ML team auto-backport Automatically create backport pull requests when merged v9.0.0 v8.18.0 v8.18.1 v8.19.0 v9.0.1 v9.1.0 labels Feb 24, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @prwhelan, I've created a changelog YAML for you.

@prwhelan prwhelan marked this pull request as ready for review February 24, 2025 14:52
@elasticsearchmachine
Copy link
Collaborator

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(
Copy link
Contributor

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(
Copy link
Contributor

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.

@prwhelan prwhelan enabled auto-merge (squash) February 24, 2025 16:51
@prwhelan prwhelan merged commit 4c3ceae into elastic:main Feb 24, 2025
17 checks passed
prwhelan added a commit to prwhelan/elasticsearch that referenced this pull request Feb 24, 2025
Reduced connection timeout from infinite to a system configurable
setting that defaults to 5s.

Increased EIS auth token timeout from 30s to 1m.
prwhelan added a commit to prwhelan/elasticsearch that referenced this pull request Feb 24, 2025
Reduced connection timeout from infinite to a system configurable
setting that defaults to 5s.

Increased EIS auth token timeout from 30s to 1m.
prwhelan added a commit to prwhelan/elasticsearch that referenced this pull request Feb 24, 2025
Reduced connection timeout from infinite to a system configurable
setting that defaults to 5s.

Increased EIS auth token timeout from 30s to 1m.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.0
8.18
8.x

elasticsearchmachine pushed a commit that referenced this pull request Feb 24, 2025
Reduced connection timeout from infinite to a system configurable
setting that defaults to 5s.

Increased EIS auth token timeout from 30s to 1m.
elasticsearchmachine pushed a commit that referenced this pull request Feb 24, 2025
Reduced connection timeout from infinite to a system configurable
setting that defaults to 5s.

Increased EIS auth token timeout from 30s to 1m.
elasticsearchmachine pushed a commit that referenced this pull request Feb 24, 2025
Reduced connection timeout from infinite to a system configurable
setting that defaults to 5s.

Increased EIS auth token timeout from 30s to 1m.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged >bug :ml Machine learning Team:ML Meta label for the ML team v8.18.0 v8.18.1 v8.19.0 v9.0.0 v9.0.1 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants