Skip to content

Conversation

jan-elastic
Copy link
Contributor

No description provided.

@jan-elastic jan-elastic added >non-issue :ml Machine learning Team:ML Meta label for the ML team v8.16.0 v9.0.0 labels Oct 23, 2024
@jan-elastic jan-elastic requested a review from davidkyle October 23, 2024 11:21
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)


AdaptiveAllocationsScaler scaler = scalers.get(assignment.getDeploymentId());
if (scaler != null) {
scaler.resetTimeWithoutRequests();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If starting an allocation takes too long (longer than the inference request timeout of 10secs), the inference request fails prematurely, and never reaches the allocation. This means that it isn't counted in the node stats, the "timeWithoutRequests" of the autoscaler keeps ticking, and the new allocation is stopped too soon.

Copy link
Member

@davidkyle davidkyle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jan-elastic jan-elastic added v8.17.0 auto-backport Automatically create backport pull requests when merged labels Oct 23, 2024
@jan-elastic jan-elastic merged commit 728ac0c into main Oct 23, 2024
17 checks passed
@jan-elastic jan-elastic deleted the aa-reset-timer branch October 23, 2024 13:07
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

The backport operation could not be completed due to the following error:

An unexpected error occurred when attempting to backport this PR.

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 115400

jan-elastic added a commit that referenced this pull request Oct 23, 2024
jan-elastic added a commit that referenced this pull request Oct 23, 2024
smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Oct 23, 2024
georgewallace pushed a commit to georgewallace/elasticsearch that referenced this pull request Oct 25, 2024
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Nov 4, 2024
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 backport pending :ml Machine learning >non-issue Team:ML Meta label for the ML team v8.16.0 v8.17.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants