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

Function newConsistentHash

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

Source from the content-addressed store, hash-verified

127}
128
129func newConsistentHash(endpoints []string) routing.LBAlgorithm {
130 return newConsistentHashInternal(endpoints, 100)
131}
132
133func hash(s string) uint64 {
134 return xxhash.Sum64String(s)

Callers 3

TestApplyFunction · 0.85
TestConsistentHashSearchFunction · 0.85
TestConsistentHashKeyFunction · 0.85

Calls 1

Tested by 3

TestApplyFunction · 0.68
TestConsistentHashSearchFunction · 0.68
TestConsistentHashKeyFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…