Skip to content

Commit

Permalink
[7.x][ML] Include peak memory usage in model snapshots (#1572) (#1575)
Browse files Browse the repository at this point in the history
Ensure that the static counter tracking the peak memory usage for a job
is included in the limited set to be persisted/restored from model state
snapshots.

Relates to elastic/elasticsearch#64154
Backports #1572
  • Loading branch information
edsavage authored Nov 12, 2020
1 parent ba4e091 commit 6102daf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/autodetect/Main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ int main(int argc, char** argv) {
ml::counter_t::E_TSADNumberNewPeopleRecycled,
ml::counter_t::E_TSADNumberApiRecordsHandled,
ml::counter_t::E_TSADMemoryUsage,
ml::counter_t::E_TSADPeakMemoryUsage,
ml::counter_t::E_TSADNumberMemoryUsageChecks,
ml::counter_t::E_TSADNumberMemoryUsageEstimates,
ml::counter_t::E_TSADNumberRecordsNoTimeField,
Expand Down
7 changes: 7 additions & 0 deletions docs/CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@
* Estimate upper bound of potential gains before splitting a decision tree node to avoid
unnecessary computation. (See {ml-pull}1537[#1537].)

== {es} version 7.10.1

=== Bug Fixes

* Fix a bug where the peak_model_bytes value of the model_size_stats object was not
restored from the anomaly detector job snapshots.

== {es} version 7.10.0

=== Enhancements
Expand Down

0 comments on commit 6102daf

Please sign in to comment.