Skip to content

[7.x][ML] Recalculate memory usage before upgrading model state #1587

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

droberts195
Copy link
Contributor

When a persist control message with arguments is received
by the anomaly detector it doesn't go through the standard
chain of persistence calls, as it unconditionally rewrites
the state (even if no data has been seen) and includes only
the anomaly detector state rather than the categorizer state
too. Because of this the memory usage was not being
recalculated prior to persisting the state as would normally
happen. This PR rectifies that omission.

Fixes one of the problems detailed in
elastic/elasticsearch#64665 (review)

Backport of #1585

When a persist control message with arguments is received
by the anomaly detector it doesn't go through the standard
chain of persistence calls, as it unconditionally rewrites
the state (even if no data has been seen) and includes only
the anomaly detector state rather than the categorizer state
too.  Because of this the memory usage was not being
recalculated prior to persisting the state as would normally
happen.  This PR rectifies that omission.

Fixes one of the problems detailed in
elastic/elasticsearch#64665 (review)

Backport of elastic#1585
@droberts195 droberts195 merged commit 8355930 into elastic:7.x Nov 18, 2020
@droberts195 droberts195 deleted the refresh_memory_before_state_upgrade_7x branch November 18, 2020 12:31
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