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] Calculate model memory limit for Lens created jobs #143456

Merged

Conversation

jgowdyelastic
Copy link
Member

When creating a job from a Lens visualization, we should use the calculate model memory limit api so the default value of 1024mb is not used.
The calculation happens when the user presses the create button, before the job is saved.
If for some reason the calculation fails, the error is ignored (logged to the browser's console) and the job creation continues with the default value.

Fixes #143451

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
ml 3.4MB 3.4MB +522.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
ml 576 577 +1

Total ESLint disabled count

id before after diff
ml 579 580 +1

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @jgowdyelastic

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested and LGTM

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

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

LGTM ⚡

@jgowdyelastic jgowdyelastic merged commit 26a4fe8 into elastic:main Oct 19, 2022
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Oct 19, 2022
@jgowdyelastic jgowdyelastic deleted the calculate-mml-for-lens-created-jobs branch October 19, 2022 07:53
kc13greiner pushed a commit to kc13greiner/kibana that referenced this pull request Oct 19, 2022
* [ML] Calculate model memory limit for Lens created jobs

* check for indices

* more checks

* adding test
guskovaue pushed a commit to guskovaue/kibana that referenced this pull request Oct 22, 2022
* [ML] Calculate model memory limit for Lens created jobs

* check for indices

* more checks

* adding test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Anomaly Detection ML anomaly detection :ml release_note:fix v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Jobs created from Lens visualizations do not calculate model memory limit
6 participants