mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #105272 from wojtek-t/add_jittering_for_kubelet
Add jittering for Kubelet status computing
This commit is contained in:
commit
9005160245
@ -1468,8 +1468,10 @@ func (kl *Kubelet) Run(updates <-chan kubetypes.PodUpdate) {
|
|||||||
go kl.volumeManager.Run(kl.sourcesReady, wait.NeverStop)
|
go kl.volumeManager.Run(kl.sourcesReady, wait.NeverStop)
|
||||||
|
|
||||||
if kl.kubeClient != nil {
|
if kl.kubeClient != nil {
|
||||||
// Start syncing node status immediately, this may set up things the runtime needs to run.
|
// Introduce some small jittering to ensure that over time the requests won't start
|
||||||
go wait.Until(kl.syncNodeStatus, kl.nodeStatusUpdateFrequency, wait.NeverStop)
|
// accumulating at approximately the same time from the set of nodes due to priority and
|
||||||
|
// fairness effect.
|
||||||
|
go wait.JitterUntil(kl.syncNodeStatus, kl.nodeStatusUpdateFrequency, 0.04, true, wait.NeverStop)
|
||||||
go kl.fastStatusUpdateOnce()
|
go kl.fastStatusUpdateOnce()
|
||||||
|
|
||||||
// start syncing lease
|
// start syncing lease
|
||||||
|
Loading…
Reference in New Issue
Block a user