workqueue

package
v0.10.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultControllerRateLimiter

func NewDefaultControllerRateLimiter() workqueue.RateLimiter

func NewJitteredFastSlowRateLimiter

func NewJitteredFastSlowRateLimiter(fastDelay, slowDelay time.Duration, maxFastAttempts int) workqueue.RateLimiter

Types

type JitteredRateLimiter

type JitteredRateLimiter struct {
	workqueue.RateLimiter
}

JitteredRateLimiter does a quick retry for a certain number of attempts, then slow retries afterwards. It also adds some jitter to prevent Thundering Herds from happening.

func (*JitteredRateLimiter) When

func (r *JitteredRateLimiter) When(item interface{}) time.Duration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL