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

Function newRoundRobin

loadbalancer/algorithm.go:59–63  ·  view source on GitHub ↗
(endpoints []string)

Source from the content-addressed store, hash-verified

57}
58
59func newRoundRobin(endpoints []string) routing.LBAlgorithm {
60 return &roundRobin{
61 index: rand.Int64N(int64(len(endpoints))), // #nosec
62 }
63}
64
65// Apply implements routing.LBAlgorithm with a roundrobin algorithm.
66func (r *roundRobin) Apply(ctx *routing.LBContext) routing.LBEndpoint {

Callers 1

TestApplyFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestApplyFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…