OpenSearch/x-pack/plugin/ml/qa/ml-with-security
David Roberts 7aa0daaabd
[7.x][ML] More advanced model snapshot retention options (#56194)
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
2020-05-05 14:31:58 +01:00
..
src/test/java/org/elasticsearch/smoketest [7.x] Refactor watcher tests (#52799) (#52844) 2020-02-26 15:57:10 -06:00
build.gradle [7.x][ML] More advanced model snapshot retention options (#56194) 2020-05-05 14:31:58 +01:00
roles.yml Add auto create action (#56122) 2020-05-04 19:10:09 +02:00