Skip to content

Commit dbc4734

Browse files
committed
Update global cache timestamp more frequently
There are some cases where a pod worker is woken up without a cache update by the PLEG such as a pod termination. Then, the worker gets stuck in `cache.GetNewerThan()` till the global cache timestamp is updated by the PLEG. In order to unblock the stuck worker as early as the Generic PLEG, this fix makes the Evented PLEG update the global cache as frequently as the Generic PLEG.
1 parent 7612858 commit dbc4734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kubelet/pleg/evented.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
// The frequency with which global timestamp of the cache is to
3535
// is to be updated periodically. If pod workers get stuck at cache.GetNewerThan
3636
// call, after this period it will be unblocked.
37-
const globalCacheUpdatePeriod = 5 * time.Second
37+
const globalCacheUpdatePeriod = 1 * time.Second
3838

3939
var (
4040
eventedPLEGUsage = false

0 commit comments

Comments
 (0)