Skip to content

Conversation

@droberts195
Copy link

This PR implements the following changes to make ML model snapshot
retention more flexible in advance of adding a UI for the feature in
an upcoming release.

  • The default for model_snapshot_retention_days for new jobs is now
    10 instead of 1
  • There is a new job setting, daily_model_snapshot_retention_after_days,
    that defaults to 1 for new jobs and model_snapshot_retention_days
    for pre-7.8 jobs
  • For days that are older than model_snapshot_retention_days, all
    model snapshots are deleted as before
  • For days that are in between daily_model_snapshot_retention_after_days
    and model_snapshot_retention_days all but the first model snapshot
    for that day are deleted
  • The retain setting of model snapshots is still respected to allow
    selected model snapshots to be retained indefinitely

Backport of #56125

This PR implements the following changes to make ML model snapshot
retention more flexible in advance of adding a UI for the feature in
an upcoming release.

- The default for `model_snapshot_retention_days` for new jobs is now
  10 instead of 1
- There is a new job setting, `daily_model_snapshot_retention_after_days`,
  that defaults to 1 for new jobs and `model_snapshot_retention_days`
  for pre-7.8 jobs
- For days that are older than `model_snapshot_retention_days`, all
  model snapshots are deleted as before
- For days that are in between `daily_model_snapshot_retention_after_days`
  and `model_snapshot_retention_days` all but the first model snapshot
  for that day are deleted
- The `retain` setting of model snapshots is still respected to allow
  selected model snapshots to be retained indefinitely

Backport of elastic#56125
@droberts195 droberts195 merged commit 7aa0daa into elastic:7.x May 5, 2020
@droberts195 droberts195 deleted the daily_model_snapshot_retention_7x branch May 5, 2020 13:32
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