Skip to content

Commit

Permalink
Add jitter to lease controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Zięba committed May 10, 2021
1 parent 516dfa5 commit 9e227f1
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 9e227f1

Please sign in to comment.