• Kubernetes Submit Queue's avatar
    Merge pull request #32805 from caesarxuchao/more-gc-optimization · 0d9685b0
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Add the uid in a delete event to the absentOwnerCache
    
    This is a small optimization to further reduce the traffic sent by the GC.
    
    In #31167, GC caches the non-existent owners when it processes the dirtyQueue. As discovered in #32571, there is still small inefficiency, because there are multiple goroutines processing the dirtyQueue, many of them might send a GET to the apiserver before the cache gets populated.
    
    This PR populates the cache when GC observes an object gets deleted, which happens before the processing of the dirtyQueue, so it avoids the simultaneous GET sent by the GC workers.
    
    cc @lavalamp
    0d9685b0
Name
Last commit
Last update
..
metaonly Loading commit data...
garbagecollector.go Loading commit data...
garbagecollector_test.go Loading commit data...
metrics.go Loading commit data...
rate_limiter_helper.go Loading commit data...
uid_cache.go Loading commit data...