Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion mission-control/docs/guide/config-db/concepts/retention.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ sidebar_custom_props:

After scraping we can choose to retain results on the basis of name, age, count and more.

## Default retention periods

Config DB cleanup jobs use the following retention periods by default:

| Record | Default period | Cleanup behavior |
| --------------- | ------------------------------ | -------------------------------------------- |
| Config item | 7 days after soft deletion | Permanently delete soft-deleted config items |
| Config change | 60 days after creation | Delete changes not linked to evidence |
| Config analysis | 60 days after last observation | Delete analysis not linked to evidence |

The cleanup jobs run once per day. The `staleItemAge` field controls when Config DB soft-deletes an unseen config item; the 7-day default controls when Config DB permanently deletes that item.

The retention rules are applied for each unique catalog item. If `changes` is specified with type `X` and count `20`, last 20 changes of `X` type would be kept for each catalog item

| Field | Description | Scheme |
Expand Down Expand Up @@ -53,7 +65,7 @@ metadata:
name: kubernetes-scraper
spec:
retention:
//highlight-next-line
//highlight-next-line
staleItemAge: 30m
kubernetes:
clusterName: local
Expand Down
2 changes: 1 addition & 1 deletion modules/config-db
Submodule config-db updated 167 files
Loading