Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions internal/cli/home.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -68,9 +68,13 @@ const (
// Detection is bounded so bare `tracebloc` stays snappy even when the cluster or
// backend is unreachable. homeProbeTimeout caps each individual probe;
// homeDetectBudget caps the whole detection regardless of any single probe.
// These must clear a COLD round-trip: the heartbeat hits the backend and every
// `tb` run is a fresh process (fresh DNS+TCP+TLS, ~1s), so the old 1200ms cap
// made a healthy "· Online" flicker to "couldn't confirm" (cli#357) — don't
// lower them back. Fast path is unaffected: collectProbes returns once both report.
const (
homeDetectBudget = 1500 * time.Millisecond
homeProbeTimeout = 1200 * time.Millisecond
homeDetectBudget = 3500 * time.Millisecond
homeProbeTimeout = 3000 * time.Millisecond
)

// gpuResource is the allocatable key NVIDIA's device plugin advertises; summed
Expand Down
2 changes: 1 addition & 1 deletion scripts/file-budget.sh
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,7 +24,7 @@ BUDGETS="
internal/push/preflight.go:1700
internal/cli/data.go:500
internal/cli/client.go:1050
internal/cli/home.go:850
internal/cli/home.go:855
"

status=0
Expand Down
Loading