Skip to content

FSx durable path: spawn fsx create --name --ttl (standalone, shared, reused across launches) #195

Open

Description

@scttfrdmn

Implements lifecycle: durable from #193 — a named FSx that outlives any single instance and is mounted by many launches.

Why standalone (and why blocking-wait is fine here)

Durable FSx is a deliberate human action ("I want standing scratch for this project"), not a reaction in a hot path — so a blocking create-and-wait is acceptable (unlike the ephemeral/lagotto path, #194). It amortizes the ~10-min create cost across many jobs, and the S3 import/export DRA earns its keep (warm reference data stays hot, outputs continuously mirror).

Surface

The fsx command group has list/info/delete but no create today — creation is only bolted onto spawn launch --fsx-create. Add the missing standalone primitive:

spawn fsx create --name prospecting --s3-bucket aws-buckai \
  --export s3://aws-buckai/.../detections/ --ttl 30d
# → creates, waits for AVAILABLE, sets up the DRA, tags:
#   spawn:managed=true, spawn:fsx-name=prospecting,
#   spawn:ttl-deadline=<now+ttl>, spawn:fsx-created=<ts>

--ttl is required (per #193: no death-clock-less durable FS). Reuses the existing CreateFSxLustreFilesystem (pkg/aws/fsx.go) — mostly a cobra subcommand + deadline tagging.

Then jobs mount it by name (fast): fsx: { name: prospecting } in a spawn-config / --fsx-name prospecting, which resolves the name → fs-id and mounts (existing path). The mount writes the spawn:fsx-id lease so the refcount reaper (#192) won't reclaim it while in use; it's reclaimed only when refcount 0 AND past its TTL.

Scope

Blocked by #192 (reaper) and #193 (contract). Lower priority than the ephemeral path — different use case (shared standing storage, not hands-off one-shot).

Activity

  1. added
    enhancement
    area:storage
    area:cost
    on Jun 16, 2026
  2. scttfrdmn commented on Jun 16, 2026

    @scttfrdmn
    ContributorAuthor

    AZ constraint — mounting a durable FSx pins the launch AZ (must be surfaced)

    FSx Lustre is single-AZ and a Lustre mount is same-AZ only, so an instance mounting a durable fs-X MUST launch in fs-X's AZ. This is the real (capacity, not dollar) cost of the durable path, and it's load-bearing for lagotto:

    Required behavior

    1. Resolving --fsx-name/fsx.name (or --fsx-id) to a filesystem also resolves its AZ, and the launch is constrained to that AZ (filter the candidate subnet/AZ to the FSx's).
    2. Fail-closed validation: reject a launch that mounts fs-X (AZ a) but also requests a conflicting AZ b — a contradiction that would otherwise silently fail to mount. (Same fail-closed spirit as the FSx auto-create: explicit lifecycle contract (ephemeral|durable), fail-closed, + canonical docs #193 lifecycle contract.)
    3. lagotto must surface the pinning: a watch mounting a durable FSx should report "AZ-pinned to <az> (mounts fs-X)" so the capacity-breadth tradeoff is explicit, not a silent loss of spawn launch fails with "failed to parse JSON" when stdin is a pipe (non-interactive) #34 fallback.
  3. added this to the Later milestone on Oct 19, 2026
  4. 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

    area:costarea:storageenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions