mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Add jitter to lease controller
This commit is contained in:
parent
6850e0abf2
commit
898cf6eb48
@ -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