mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-23 03:17:28 +00:00
Add jitter to lease controller
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user