Skip to content

Call the new _estimate_memory_usage API endpoint on df analytics _start #45536

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

Conversation

przemekwitek
Copy link
Contributor

@przemekwitek przemekwitek commented Aug 14, 2019

This PR integrates the new _estimate_memory_usage API endpoint into df analytics.
_estimate_memory_usage is called early during df analytics _start in order to detect whether user-provided model memory limit is sufficient taking into account memory usage estimation. If not, error is thrown and the user can retry the request with different (higher) value of model_memory_limit.

Relates #44699
Closes #45544

@przemekwitek przemekwitek force-pushed the call_memory_estimation_on_start branch 2 times, most recently from 80402eb to 66d6172 Compare August 14, 2019 10:01
@przemekwitek przemekwitek force-pushed the call_memory_estimation_on_start branch from 66d6172 to 2df1f74 Compare August 14, 2019 11:59
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

@przemekwitek przemekwitek marked this pull request as ready for review August 14, 2019 12:00
@przemekwitek przemekwitek force-pushed the call_memory_estimation_on_start branch from 2df1f74 to b5ec18f Compare August 19, 2019 08:03
@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/1

Copy link
Contributor

@dimitris-athanasiou dimitris-athanasiou left a comment

Choose a reason for hiding this comment

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

Looks good! Left a few minor comments

Copy link
Contributor

@dimitris-athanasiou dimitris-athanasiou left a comment

Choose a reason for hiding this comment

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

LGTM

@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/1

2 similar comments
@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/1

@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/1

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

Successfully merging this pull request may close these issues.

Memory usage estimation process finishes with error.
4 participants