postfinance / kubenurse

Kubernetes network monitoring
MIT License
407 stars 39 forks source link

Feat/neighbour limit #120

Closed clementnuss closed 6 months ago

clementnuss commented 6 months ago

instead of querying all (valid) neighbouring pods, we filter and only query KUBENURSE_NEIGHBOUR_LIMIT other neighbours. the algorithm is implemented as follows:

thus at the end, the heap contains the 10 next neighbour nodes for our current node

coveralls commented 6 months ago

Pull Request Test Coverage Report for Build 8282544160

Details


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 Coverage Status
Change from base Build 8154839966: -5.1%
Covered Lines: 424
Relevant Lines: 662

💛 - Coveralls