You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Resuming a hibernated instance takes 3–5 minutes before SSM commands run #1182
Measured in experiment E1 (#1171) on spawn v0.135.1, us-east-1, 2026-10-19. Hibernation was confirmed real in all 7 runs.
Type
Time to first SSM echo ok after spawn start
t3.medium (n=4)
median 174 s, range 54–318 s
c7i.large (n=3)
median 237 s, range 179–238 s
By comparison, a cold launch or a start from stopped reaches first exec in about 20–25 s.
Observations:
EC2 reports running about 15 s after start, and spawn start returns at about 26 s.
On one instance the SSM agent's log shows the agent alive about 60 s after resume, but the first command ran about 5 minutes after start.
There's no explicit reconnect line. One hypothesis is that the agent's connection from before hibernation times out before it reconnects.
Why it matters:
--on-idle hibernate is presented as the fast way to resume. Over SSM, it's the slowest mode.
Anything that execs over SSM right after a resume will see minutes of failures. That includes spawn's own post-start checks, spawn connect via SSM, and the planned sandbox exec.
To do:
Confirm against AWS docs/known issues for the SSM agent after hibernate.
If a restart helps, consider having spored restart amazon-ssm-agent when it detects a resume.
Document the behaviour on the hibernate flag and in the docs.
Activity