describe probes contexts sequentially, so latency is additive #7

Closed
opened 2026-08-11 10:25:48 +00:00 by aav · 0 comments
Owner

gather_hints (src/skill.rs:31) probes every context and target strictly sequentially, each guarded by a 10s timeout.

Failure scenario: with three contexts unreachable (VPN down), silta describe blocks for 30+ seconds before printing anything, and even with live clusters the total wall time is the sum of every round trip.

Fix direction: probe contexts concurrently (one task per context via JoinSet, forwards for that context in series), capping the wait at the slowest single context.

Source: high-effort code review, CONFIRMED. Area: skill/describe.

`gather_hints` (src/skill.rs:31) probes every context and target strictly sequentially, each guarded by a 10s timeout. **Failure scenario:** with three contexts unreachable (VPN down), `silta describe` blocks for 30+ seconds before printing anything, and even with live clusters the total wall time is the sum of every round trip. **Fix direction:** probe contexts concurrently (one task per context via JoinSet, forwards for that context in series), capping the wait at the slowest single context. Source: high-effort code review, CONFIRMED. Area: skill/describe.
aav self-assigned this 2026-08-11 10:27:24 +00:00
aav closed this issue 2026-08-11 11:10:37 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
carvers/silta#7
No description provided.