-
Notifications
You must be signed in to change notification settings - Fork 1.2k
More aggressive Revision GC settings #8208
Copy link
Copy link
Labels
area/APIAPI objects and controllersAPI objects and controllerskind/featureWell-understood/specified features, ready for coding.Well-understood/specified features, ready for coding.kind/specDiscussion of how a feature should be exposed to customers.Discussion of how a feature should be exposed to customers.
Metadata
Metadata
Assignees
Labels
area/APIAPI objects and controllersAPI objects and controllerskind/featureWell-understood/specified features, ready for coding.Well-understood/specified features, ready for coding.kind/specDiscussion of how a feature should be exposed to customers.Discussion of how a feature should be exposed to customers.
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:
stale-revision-minimum-generations),stale-revision-create-delay), andstale-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