Skip to content

Sizing has no floor when a container runtime is needed: threads:1 lands on t4g.nano and wedges in the Docker install #18

Open

Description

@scttfrdmn

Split out of #16, where it was reported alongside the container-passthrough failures. It is not a container bug — it is a sizing-floor bug — and it survives the removal of that feature in v0.4.0 for any future container support.

What happened

A probe rule declaring only threads: 1, with no mem_mb, was sized onto t4g.nano (0.5 GiB). The job then hung in the Docker install: the console reaches

Amazon Linux 2023 repository   56 MB/s | 80 MB
Waiting for process with pid 2213 to finish

and never progresses. The instance had to be force-terminated.

Why sizing from resources alone is wrong once a container is involved

Sizing from the tool's declared needs is correct when the job runs on the host — that is the whole point of mapping threads/mem_mb onto an instance type. But once the job must also install a container runtime and pull an image, it has a floor that the rule's resources know nothing about and cannot be expected to express. The rule author is describing their tool, not our bootstrap.

So the adapter has to supply that floor itself.

Suggested fix

A minimum instance size whenever a container runtime is required, with the reason stated. Two defensible shapes:

  1. Raise the floor silently but log it — "container requested: raising t4g.nano → t4g.medium (Docker install + image pull need ~2 GiB)". Keeps workflows running.
  2. Refuse up front — fail closed with the same message and let the user set resources. Consistent with how spawn itself rejects --mpi on a type that cannot support it, which is a good precedent: it errors before spending, naming the constraint and suggesting a fix.

I lean (1) for a sizing floor and (2) only if the gap is extreme, but (2) is more in keeping with the rest of the suite. Open to the reporter's preference — they hit it, and they have the clearer view of what a workflow author would want.

Either way the current behaviour — size it, launch it, and let it wedge until TTL (or not even then, see spawn#683) — is the one option that costs money and teaches nothing.

Note

This is currently unreachable from the adapter, since v0.4.0 removed container: support entirely. It should be fixed as part of reintroducing containers in the shape agreed in #16 (preamble on the host, rule's shell in a container), not before — but it needs to be written down now so it is not rediscovered the expensive way a second time.

Activity

  1. added this to the Hardening milestone 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