You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area/APIAPI objects and controllerskind/featureWell-understood/specified features, ready for coding.kind/specDiscussion of how a feature should be exposed to customers.
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:
The minimum depth of revisions to retain (stale-revision-minimum-generations ),
The minimum duration of time to keep a Revision (stale-revision-create-delay ), and
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.
The fsnotify case where "deploy" is basically being used in the development inner-loop is interesting.
A few different approaches:
Reduce the number of revisions via more aggressive GC. We probably want to keep (at a minimum) all working revisions since the one assigned traffic, as well as the most recent failed deployment (for debugging).
More aggressively collapse Revisions older than the oldest in-service Revision, such that we don't provision a Deployment, Service, etc for them. This would add some additional state to the Revision lifecycle, and would make it take longer for those Revisions to be put back into active usage. There's a potential risk here of making it slightly slower to "roll back quickly" if you're doing 100% traffic shifts as your day-to-day routine, but that may be an acceptable tradeoff, or maybe we can have some more-clever heuristics.
area/APIAPI objects and controllerskind/featureWell-understood/specified features, ready for coding.kind/specDiscussion of how a feature should be exposed to customers.
Activity
evankanderson commentedon Jun 4, 2020
The
fsnotifycase where "deploy" is basically being used in the development inner-loop is interesting.A few different approaches:
Reduce the number of revisions via more aggressive GC. We probably want to keep (at a minimum) all working revisions since the one assigned traffic, as well as the most recent failed deployment (for debugging).
More aggressively collapse Revisions older than the oldest in-service Revision, such that we don't provision a Deployment, Service, etc for them. This would add some additional state to the Revision lifecycle, and would make it take longer for those Revisions to be put back into active usage. There's a potential risk here of making it slightly slower to "roll back quickly" if you're doing 100% traffic shifts as your day-to-day routine, but that may be an acceptable tradeoff, or maybe we can have some more-clever heuristics.
whaught commentedon Jun 16, 2020
/assign