Skip to content

Feature: --efs-create with --efs-lifecycle ephemeral|durable (shared run dir for MPI cohorts), mirroring --fsx-create #663

Open

Description

@scttfrdmn

Use case: multi-node MPI cohorts (--mpi --count N) need a small shared, writable run directory (config files every rank reads, logs, model output, restart checkpoints). Today the options are --fsx-create (1.2 TiB minimum, PERSISTENT_2, ~$0.20/hr floor, and #613: ephemeral reaping currently leaks it) or --efs-id (an EFS you must create, mount-target and SG yourself, outside spawn's lifecycle). For a run dir of a few GB, EFS Elastic is the right shape: no minimum size, pay per GB-hour stored + per GB transferred, mount in ~seconds.

Today: spawn only mounts an existing EFS (pkg/storage/efs.go, --efs-id/--efs-mount-point/--efs-profile). No create, no mount target, no SG wiring, no reaping.

Proposed (same contract as FSx so the reaper logic is shared):

Acceptance: a 2-node --mpi --efs-create --efs-lifecycle ephemeral launch where both nodes write to the same path, the launch terminates, and the filesystem + mount targets are gone afterwards with no manual step.

Context: GCHP benchmarking port from ParallelCluster (scttfrdmn/aws-gchp). Interim we NFS-export node 0's EBS to the others, which works but makes node 0 a special, non-replaceable member.

Activity

  1. scttfrdmn commented on Oct 4, 2026

    @scttfrdmn
    ContributorAuthor

    Manual EFS trial: what --efs-create would need to do (measured 2026-10-04, us-east-1a)

    Step Manual call Wall
    efs create-file-system (Elastic throughput, encrypted) → available 7 s
    efs create-mount-target (subnet us-east-1a, SG = instance SG) → available 86 s
    Total, create → mountable 93 s
    NFS mount from the instance (once SG is right) spawn's own mount -t nfs4 stanza ~seconds
    t4g.small dd 512 MiB write (fsync) / read (drop_caches) 525 / 524 MB/s (burst-limited by t4g.small)

    By comparison, spawn's FSx path says ~10 min async, and a gcgrid-import FSx in our own work has taken ~33 min. EFS is about 6x faster to provision than FSx, and fast enough to create synchronously before launch. That makes the ephemeral path simpler than FSx: no spawn:fsx-pending or agent-side late mount is needed, and the mount can sit in user-data. That only works once #668 is fixed.

    How it maps onto the FSx capability

    Mostly 1:1, with three differences:

    1. Mount target per AZ. FSx is one subnet. EFS needs a mount target in each AZ the cohort lands in. With --mpi there's one placement group per AZ, so one mount target, created in the AZ that GetSubnetForAZ resolves. Under AZ fallback, create the mount target only after the AZ is chosen.
    2. SG. The analogue of EnsureLustrePorts is EnsureNFSPort: TCP 2049 self-ref on the instance SG, and put the mount target in that same SG. Blocked today by --security-group-ids is silently dropped on spawn launch: instances always get the default SG (breaks --efs-id) #667 (--security-group-ids dropped, so the instance is in default and 2049 is blocked; the hard mount then hangs silently).
    3. Teardown order. Delete the mount targets first and wait for them to be gone, then delete-file-system. The reaper should reuse the reapFSxRegion refcount design (instances tagged spawn:efs-id) plus ephemeralOrphanGrace, and must not inherit --fsx-lifecycle ephemeral did not reap the filesystem when the instance terminated (1.2 TiB left AVAILABLE and billing) #613.

    Estimate: EFS bills per GB-month stored plus Elastic per-GB read/write, with no provisioned size. So --estimate-only needs an expected-bytes input, or should just state the rate. The rate is cheap for a run dir: GCHP C24 is a few GB.

    Bugs this trial hit (filed)

  2. added this to the Later milestone on Oct 19, 2026
  3. modified the milestones: Later, Post-1.0 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