Skip to content

Commit

Permalink
Merge pull request kubernetes#101861 from marseel/automated-cherry-pi…
Browse files Browse the repository at this point in the history
…ck-of-#101652-upstream-release-1.20

Automated cherry pick of kubernetes#101652: Add jitter to lease controller
  • Loading branch information
k8s-ci-robot authored Jun 8, 2021
2 parents 9e001aa + 9e227f1 commit 9c5dee0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 9c5dee0

Please sign in to comment.