Skip to content

[ML] Add effective max model memory limit to ML info#55581

Merged
droberts195 merged 1 commit intoelastic:7.xfrom
droberts195:add_current_mem_limit_to_info_7x
Apr 22, 2020
Merged

[ML] Add effective max model memory limit to ML info#55581
droberts195 merged 1 commit intoelastic:7.xfrom
droberts195:add_current_mem_limit_to_info_7x

Conversation

@droberts195
Copy link
Copy Markdown

The ML info endpoint returns the max_model_memory_limit setting
if one is configured. However, it is still possible to create
a job that cannot run anywhere in the current cluster because
no node in the cluster has enough memory to accommodate it.

This change adds an extra piece of information,
limits.effective_max_model_memory_limit, to the ML info
response that returns the biggest model memory limit that could
be run in the current cluster assuming no other jobs were
running.

The idea is that the ML UI will be able to warn users who try to
create jobs with higher model memory limits that their jobs will
not be able to start unless they add a bigger ML node to their
cluster.

Backport of #55529

The ML info endpoint returns the max_model_memory_limit setting
if one is configured.  However, it is still possible to create
a job that cannot run anywhere in the current cluster because
no node in the cluster has enough memory to accommodate it.

This change adds an extra piece of information,
limits.effective_max_model_memory_limit, to the ML info
response that returns the biggest model memory limit that could
be run in the current cluster assuming no other jobs were
running.

The idea is that the ML UI will be able to warn users who try to
create jobs with higher model memory limits that their jobs will
not be able to start unless they add a bigger ML node to their
cluster.

Backport of elastic#55529
@droberts195 droberts195 merged commit 2dc5586 into elastic:7.x Apr 22, 2020
@droberts195 droberts195 deleted the add_current_mem_limit_to_info_7x branch April 22, 2020 11:28
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.

1 participant