Repository navigation
Closed
Labels
area:costcost estimation, budgets, accountingarea:launchlaunch path: instance-type, AMI, user-data, runarea:storageFSx / EFS / S3 stagingenhancementNew feature or request
Description
Design record + umbrella for letting spawn create an FSx Lustre filesystem (not just mount one), with lifecycle stated explicitly by the user. Drives lagotto#43.
Principle: the user names the lifetime, or it doesn't launch
An FSx Lustre FS costs real money (~$150–200/mo, 1.2 TB PERSISTENT_2) and holds the only copy of results. Its lifetime must never be inferred (e.g. from whether a name field is present) — that's how you get "I didn't realize it would delete that" / "I didn't realize it kept billing." So fsx.create requires an explicit lifecycle; missing it is a hard error, not a default.
The contract
fsx:
create: true
lifecycle: ephemeral # REQUIRED: ephemeral | durable
s3_bucket: aws-buckai
export_path: s3://aws-buckai/.../detections/
# durable also REQUIRES:
# ttl: 30d| User writes | Meaning | Reaped when |
|---|---|---|
create + lifecycle: ephemeral |
make one, throw away with this job | instance terminates (refcount → 0) |
create + lifecycle: durable + ttl: 30d |
persists across launches | refcount 0 AND past TTL |
id: / name: (existing) |
mount what already exists (today's behavior) | not spawn's to reap; refcount-protected while mounted |
create with no lifecycle |
error — choose a lifecycle | — |
- ephemeral — no TTL needed; the instance is the lifetime (refcount via ttl-reaper must reclaim orphaned FSx Lustre filesystems (cost backstop; prerequisite for any FSx auto-create) #192).
- durable —
ttlis required (no death-clock-less durable FS). Reaper reclaims on idle+expired. - CLI mirrors it:
--fsx-createrequires--fsx-lifecycle ephemeral|durable(+--fsx-ttlwhen durable), else error.
Canonical docs (the load-bearing part)
One "Durable storage & FSx" section, canonical in spawn, lagotto's spawn-config docs cross-link to it (single source of truth for the lifetime rules). Outline:
- Pick a lifetime first — the decision table above, before any YAML.
- Cost callout (prominent): FSx bills whether or not a job uses it;
ephemeralties cost to one job,durablebills until TTL — set it deliberately. - What ephemeral guarantees — reaped on terminate; results must reach S3 via the export DRA before teardown (link --pre-stop does not reliably flush before TTL-triggered terminate → data loss on ephemeral storage #184).
- What durable costs — survives crashes / capacity-never-came / everything except its TTL.
- Mount-existing —
fsx.id, no creation, for out-of-band-managed FSx. - The reaper's promise — every spawn-created FSx is refcount-tracked + TTL-backstopped; nothing leaks silently (ttl-reaper must reclaim orphaned FSx Lustre filesystems (cost backstop; prerequisite for any FSx auto-create) #192).
Sub-work
- ttl-reaper must reclaim orphaned FSx Lustre filesystems (cost backstop; prerequisite for any FSx auto-create) #192 — refcount-aware FSx reaper. The gate; build first.
- (this issue) — the
lifecyclecontract surface + docs. - FSx ephemeral path: async-create + spored wait-and-mount (instance-owned, lagotto-safe) #194 — ephemeral path (instance-owned, async create + spored wait-mount). The lagotto#43 use case.
- FSx durable path:
spawn fsx create --name --ttl(standalone, shared, reused across launches) #195 — durable path (spawn fsx create --name --ttl). - lagotto#43 — pass the
fsx:block through once the above land.
Metadata
Metadata
Assignees
Labels
area:costcost estimation, budgets, accountingarea:launchlaunch path: instance-type, AMI, user-data, runarea:storageFSx / EFS / S3 stagingenhancementNew feature or request
Activity
feat(ttl-reaper): reclaim orphaned FSx Lustre filesystems (refcount-a…
feat(fsx): explicit fail-closed lifecycle contract for --fsx-create (#…
chore(release): v0.56.0 (#200)
feat(launcher): ephemeral async FSx-create in Provision (#202) (#203)
fix: don't orphan ephemeral FSx when the launch fails (#210) (#211)
refactor: create ephemeral FSx after RunInstances succeeds (#213) (#215)
fix: Provision tears down instance on post-launch failure (#220)
fix: Provision tears down instance on post-launch failure (#220) (#230)