Skip to content
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] Move method to compute current memory scale into NativeMemoryCap… #89240

Conversation

dimitris-athanasiou
Copy link
Contributor

…acity

This commit moves method currentScale from MlAutoscalingDeciderService
to NativeMemoryCapacity as it allows for easier reuse without coupling
to the autoscaling service.

…acity

This commit moves method `currentScale` from `MlAutoscalingDeciderService`
to `NativeMemoryCapacity` as it allows for easier reuse without coupling
to the autoscaling service.
@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Aug 10, 2022
@elasticsearchmachine
Copy link
Collaborator

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

@@ -27,14 +31,6 @@ public class NativeMemoryCapacity {

private static final Logger logger = LogManager.getLogger(NativeMemoryCapacity.class);

static NativeMemoryCapacity from(NativeMemoryCapacity capacity) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This method was not used anywhere

Copy link
Contributor

@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

@dimitris-athanasiou dimitris-athanasiou merged commit a278594 into elastic:main Aug 10, 2022
@dimitris-athanasiou dimitris-athanasiou deleted the move-current-scale-to-NativeMemoryCapacity branch August 10, 2022 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ml Machine learning >refactoring Team:ML Meta label for the ML team v8.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants