Skip to content

Reduce SSH poll interval to 500ms with immediate probe#63

Merged
JAORMX merged 1 commit intomainfrom
jaosorior/faster-ssh-poll
Apr 7, 2026
Merged

Reduce SSH poll interval to 500ms with immediate probe#63
JAORMX merged 1 commit intomainfrom
jaosorior/faster-ssh-poll

Conversation

@JAORMX
Copy link
Copy Markdown
Contributor

@JAORMX JAORMX commented Apr 7, 2026

Summary

  • Reduce sshWaitPollInterval from 2s to 500ms
  • Probe immediately on entry to WaitForReady() before starting the ticker, avoiding wasting up to one full poll interval when SSH is already ready

Problem

The SSH readiness check polled every 2 seconds with no initial probe. When the guest boots in ~1s, the first probe doesn't fire until t+2s, wasting ~1s. With the 2s interval, worst-case waste is ~2s per boot.

Result

Measured with brood-box --trace:

Metric Before After
microvm.SSHWaitReady 2.1s (1 probe at 2s tick) 1.05s (immediate + 1 tick at 500ms)

Test plan

  • go test ./... — all pass
  • Tested end-to-end with brood-box: 6.3s Sandbox ready (down from 7.5s)

🤖 Generated with Claude Code

Change sshWaitPollInterval from 2s to 200ms and probe immediately
on entry before starting the ticker. This avoids wasting up to one
full poll interval when SSH becomes ready between ticks.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JAORMX JAORMX force-pushed the jaosorior/faster-ssh-poll branch from 78b4336 to 23a04e8 Compare April 7, 2026 07:15
@JAORMX JAORMX merged commit b6e791b into main Apr 7, 2026
7 checks passed
@JAORMX JAORMX deleted the jaosorior/faster-ssh-poll branch April 7, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant