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

Function skipEndpoint

loadbalancer/algorithm.go:137–145  ·  view source on GitHub ↗
(c *routing.LBContext, index int)

Source from the content-addressed store, hash-verified

135}
136
137func skipEndpoint(c *routing.LBContext, index int) bool {
138 host := c.Route.LBEndpoints[index].Host
139 for i := range c.LBEndpoints {
140 if c.LBEndpoints[i].Host == host {
141 return false
142 }
143 }
144 return true
145}
146
147// Returns index in hash ring with the closest hash to key's hash
148func (ch *consistentHash) searchRing(key string, ctx *routing.LBContext) int {

Callers 2

searchRingMethod · 0.85
boundedLoadSearchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…