INNER CODE UNIT · Go
manifestPollEvery
ClickDevTech/CELERITY-panel · probe/main.go:236
const manifestPollEvery = 5 * time.Minute
func interval(seconds, fallback int) time.Duration {
if seconds <= 0 {
seconds = fallback
}
return time.Duration(seconds) * time.Second
}
// Two measurements never run closer together than this, whatever the operator
// asks for: back-to-back downloads would drain the daily budget in minutes and
// would also be measuring each other's congestion.
const speedMinStep = 30 * time.Second
// speedStep is the gap between two individual measurements. The operator sets
// how often a single node should be measured; the probe walks the fleet
// round-robin, so the gap is that period divided by the number of inbounds.
// Zero means throughput measurement is off.