Skip to content

Resuming a hibernated instance takes 3–5 minutes before SSM commands run #1182

Open

Description

@scttfrdmn

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:

  1. Confirm against AWS docs/known issues for the SSM agent after hibernate.
  2. If a restart helps, consider having spored restart amazon-ssm-agent when it detects a resume.
  3. Document the behaviour on the hibernate flag and in the docs.

Activity

  1. added this to the Later milestone on Oct 19, 2026
  2. modified the milestones: Later, Hardening on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions