Closed clementnuss closed 6 months ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/servicecheck/neighbours.go | 51 | 54 | 94.44% | ||
internal/kubenurse/server.go | 7 | 11 | 63.64% | ||
internal/servicecheck/httptrace.go | 3 | 13 | 23.08% | ||
<!-- | Total: | 65 | 82 | 79.27% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
internal/servicecheck/httptrace.go | 1 | 38.64% | ||
internal/servicecheck/neighbours.go | 1 | 88.17% | ||
<!-- | Total: | 2 | --> |
Totals | |
---|---|
Change from base Build 8154839966: | -5.1% |
Covered Lines: | 424 |
Relevant Lines: | 662 |
instead of querying all (valid) neighbouring pods, we filter and only query KUBENURSE_NEIGHBOUR_LIMIT other neighbours. the algorithm is implemented as follows:
neighbourhood_limit
, we pop the max elementthus at the end, the heap contains the 10 next neighbour nodes for our current node