Skip to content

Conversation

valeriy42
Copy link
Contributor

Backports the following commits to 9.1:

…ic#132170)

A follow-up to elastic#131990. This PR ensures that only assigned allocations and not current allocations are used in the memory requirements calculation in AssignmentPlan.

This change led to the simplification of the code in ZoneAwareAssignmentPlanner and TrainedModelRebalancer.

This PR also improves readability by adding comments, code documentation, renaming variables, and making the flow of if statements more straightforward.

Marking is a non-issue since the bug was already documented in elastic#131990.
@valeriy42 valeriy42 added :ml Machine learning >non-issue auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:ML Meta label for the ML team labels Jul 31, 2025
@elasticsearchmachine elasticsearchmachine merged commit 1f8beed into elastic:9.1 Jul 31, 2025
34 checks passed
@valeriy42 valeriy42 deleted the backport/9.1/pr-132170 branch July 31, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :ml Machine learning >non-issue Team:ML Meta label for the ML team v9.1.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants