kubernetes/pkg/controller/garbagecollector
Kubernetes Submit Queue 0d9685b0b5 Merge pull request #32805 from caesarxuchao/more-gc-optimization
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
2016-09-16 00:40:24 -07:00
..
metaonly add generated files 2016-08-22 23:00:23 -07:00
garbagecollector_test.go add the uid in a delete event to the absentOwnerCache 2016-09-15 13:53:47 -07:00
garbagecollector.go Merge pull request #32805 from caesarxuchao/more-gc-optimization 2016-09-16 00:40:24 -07:00
metrics.go add metrics to gc 2016-08-10 12:45:06 -07:00
rate_limiter_helper.go let rate_limiter_helper use sync.Once 2016-08-19 20:32:28 -07:00
uid_cache.go add absent owner cache 2016-08-23 17:21:15 -07:00