Add jitter to lease controller

This commit is contained in:
Marcel Zięba 2021-04-30 08:29:01 +00:00
parent 6850e0abf2
commit 898cf6eb48

View File

@ -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() {