Merge pull request #101652 from marseel/fix/fix_synchronizing_leases

Add jitter to lease controller
This commit is contained in:
Kubernetes Prow Robot 2021-05-05 04:11:14 -07:00 committed by GitHub
commit f94e8ba908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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