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

Function addInflightRequests

loadbalancer/algorithm_test.go:477–482  ·  view source on GitHub ↗
(registry *routing.EndpointRegistry, endpoint routing.LBEndpoint, count int)

Source from the content-addressed store, hash-verified

475}
476
477func addInflightRequests(registry *routing.EndpointRegistry, endpoint routing.LBEndpoint, count int) {
478 for i := 0; i < count; i++ {
479 endpoint.Metrics.IncInflightRequest()
480 registry.GetMetrics(endpoint.Host).IncInflightRequest()
481 }
482}
483
484// Measures how fair the hash ring is to each endpoint.
485// i.e. Of the possible hashes, how many will go to each endpoint. The lower the standard deviation the better.

Callers 1

Calls 2

GetMetricsMethod · 0.80
IncInflightRequestMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…