MCPcopy Create free account
hub / github.com/zalando/skipper / powerOfRandomNChoices

Struct powerOfRandomNChoices

loadbalancer/algorithm.go:228–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228type powerOfRandomNChoices struct {
229 mu sync.Mutex
230 rnd *rand.Rand
231 numberOfChoices int
232}
233
234// newPowerOfRandomNChoices selects N random backends and picks the one with less outstanding requests.
235func newPowerOfRandomNChoices([]string) routing.LBAlgorithm {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected