kubernetes/pkg/kubelet/status
Clayton Coleman 8bc5cb01a9
kubelet: Clear the podStatusChannel before invoking syncBatch
The status manager syncBatch() method processes the current state
of the cache, which should include all entries in the channel. Flush
the channel before we call a batch to avoid unnecessary work and
to unblock pod workers when the node is congested.

Discovered while investigating long shutdown intervals on the node
where the status channel stayed full for tens of seconds.

Add a for loop around the select statement to avoid unnecessary
invocations of the wait.Forever closure each time.
2020-03-04 13:34:25 -05:00
..
testing Fix golint failures of pkg/kubelet/status/... 2019-09-21 23:43:37 +08:00
BUILD kubelet: Preserve existing container status when pod terminated 2020-03-04 13:34:24 -05:00
generate_test.go Generate ContainersReady condition 2018-06-05 11:10:38 -07:00
generate.go Fix golint failures of pkg/kubelet/status/... 2019-09-21 23:43:37 +08:00
status_manager_test.go kubelet: Preserve existing container status when pod terminated 2020-03-04 13:34:24 -05:00
status_manager.go kubelet: Clear the podStatusChannel before invoking syncBatch 2020-03-04 13:34:25 -05:00