Skip to content

More aggressive Revision GC settings #8208

@mattmoor

Description

@mattmoor

In what area(s)?

/area API
/kind spec

Describe the feature

An issue was recently raised around the volume of Revisions that are produced (and retained) in tight edit loops (think: fsnotify).

Today we have 3 knobs that control the GC of Revisions:

  1. The minimum depth of revisions to retain (stale-revision-minimum-generations ),
  2. The minimum duration of time to keep a Revision (stale-revision-create-delay ), and
  3. How long to keep a Revision after it was last routable (stale-revision-timeout ).

The defaults for these is to keep Revisions for two days after creation, 15 hours since last routable, or 20 revisions, whichever keeps more, but today (in part given how we implement things currently) the lowest we allow on the duration is the controller resync period (10 hours) because of how it's implemented.

However, for systems that don't take advantage of the Revision mechanism, it would be nice to be able to set the durations to O(minutes) (or seconds) and the retention window to 1-2 revisions.

cc @michal-hudy @evankanderson @dprotaso

Metadata

Metadata

Assignees

Labels

area/APIAPI objects and controllerskind/featureWell-understood/specified features, ready for coding.kind/specDiscussion of how a feature should be exposed to customers.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions