mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #101652 from marseel/fix/fix_synchronizing_leases
Add jitter to lease controller
This commit is contained in:
commit
f94e8ba908
@ -95,7 +95,7 @@ func (c *controller) Run(stopCh <-chan struct{}) {
|
||||
klog.Infof("lease controller has nil lease client, will not claim or renew leases")
|
||||
return
|
||||
}
|
||||
wait.Until(c.sync, c.renewInterval, stopCh)
|
||||
wait.JitterUntil(c.sync, c.renewInterval, 0.04, true, stopCh)
|
||||
}
|
||||
|
||||
func (c *controller) sync() {
|
||||
|
Loading…
Reference in New Issue
Block a user