• Jan Chaloupka's avatar
    jitter period in each run of Until · 3fa29098
    Jan Chaloupka authored
    In order to synchronize the current state of Kubernetes's objects (e.g. pods, containers, etc.),
    periodic synch loops are run. When there is a lot of objects to synchronize with,
    loops increase communication traffic. At some point when all the traffic interfere cpu usage curve
    hits the roof causing 100% cpu utilization.
    
    To distribute the traffic in time, some sync loops can jitter their period in each loop
    and help to flatten the curve.
    
    This commit adds JitterUntil function with jitterFactor parameter.
    JitterUntil generalizes Until which is a special case for jitterFactor being zero.
    3fa29098
wait.go 7.12 KB