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
Feature: --efs-create with --efs-lifecycle ephemeral|durable (shared run dir for MPI cohorts), mirroring --fsx-create #663
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):
Create a mount target in the launch AZ (or each AZ of an AZ-fallback rung, lazily — like the per-AZ placement groups in mpicohort) and wait for available before instances mount.
Mount on every member before --command starts (amazon-efs-utils or plain NFSv4.1 nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,noresvport), so the command sees it.
--estimate-only includes it (storage $/GB-mo is negligible; transfer is the variable part — say so rather than invent a number).
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.
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:
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.
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.
Activity
scttfrdmn commentedon Oct 4, 2026
Manual EFS trial: what
--efs-createwould need to do (measured 2026-10-04, us-east-1a)efs create-file-system(Elastic throughput, encrypted)availableefs create-mount-target(subnet us-east-1a, SG = instance SG)availablemount -t nfs4stanzaBy 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-pendingor 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:
--mpithere's one placement group per AZ, so one mount target, created in the AZ thatGetSubnetForAZresolves. Under AZ fallback, create the mount target only after the AZ is chosen.EnsureLustrePortsisEnsureNFSPort: 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-idsdropped, so the instance is indefaultand 2049 is blocked; thehardmount then hangs silently).delete-file-system. The reaper should reuse thereapFSxRegionrefcount design (instances taggedspawn:efs-id) plusephemeralOrphanGrace, 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-onlyneeds 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)
--security-group-idsis ignored onspawn launch, so--efs-idcan't reach a mount target in a custom SG.--commandruns before the storage mounts, so the workload sees no/efs.--s3-readalone gives a MalformedPolicyDocument.