Skip to content

Revert Revert "[ML] Use perAllocation and perDeployment memory usage in the model assignment planner" #101853

Merged
valeriy42 merged 6 commits intoelastic:mainfrom
valeriy42:revert-revert-98874
Nov 7, 2023
Merged

Revert Revert "[ML] Use perAllocation and perDeployment memory usage in the model assignment planner" #101853
valeriy42 merged 6 commits intoelastic:mainfrom
valeriy42:revert-revert-98874

Conversation

@valeriy42
Copy link
Copy Markdown
Contributor

The original PR #98874 missed the memory overhead adjustment from #86416. As it caused some BWC test failures on the CI, I reverted it in #101834.

This PR reintegrates the functionality and extends the BWC integration test with the memory constant depending on the version of the old cluster.

…signment planner (elastic#98874)

Building upon elastic#98139, this PR extends the model assignment planning algorithms and the linear solver to use the extended memory fields. It also adds unit tests to verify the new behavior.

I needed to adjust the old unit tests since we use the estimateMemoryUsage routine, which would compute 2*memoryBytes + 240 MB as the memory requirement. Previously, in the unit tests, we were simply using memoryBytes field value.
@valeriy42 valeriy42 added >enhancement :ml Machine learning Team:ML Meta label for the ML team v8.12.0 labels Nov 7, 2023
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning >non-issue Team:ML Meta label for the ML team v8.12.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants