Repository navigation
feat(app): SSM-resolved GPU DLAMI base + boot-install DCV (#286/#389) - #587
Merged
Merged
Conversation
…389) spawn app launch no longer depends on an owned/shared per-region 'DCV base AMI' (the dangling/unshared/duplicated table that caused #389). It now resolves the AWS-maintained GPU Deep Learning Base AMI (AL2023, NVIDIA driver preinstalled, every region) via GetRecommendedAMI's SSM lookup, and installs the free, self-licensing Amazon DCV server at boot (idempotent). An optional catalog base_amis pin still wins for custom pre-baked images. Root volume bumped to 100 GiB (floored at the AMI snapshot) for the DLAMI + container images. Refs #286, #389.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 2 of 2 implementing the #286 decision (Part 1 is libs#40). Together they let
spawn app launch paraviewwork in any region with no owned/shared AMI — closing the #389 defect class by construction.What changes (spawn)
spawn app launchnow calls the existingGetRecommendedAMI(region, instanceType)resolver — the AWS Deep Learning Base GPU AMI (AL2023, NVIDIA driver preinstalled, present in every region) for GPU instance types, or standard AL2023 otherwise. The old hard error (no spore-dcv-base AMI for <app> in <region> — build/share it…) is gone. An optional catalogbase_amispin still wins (custom pre-baked image).dcvInstallBlock()), idempotently: downloads the pinned Amazon DCV server (nice-dcv-server+nice-xdcvfor virtual sessions +nice-dcv-glfor GPU OpenGL on x86_64) from the official DCV CloudFront layout, GPG-verified. DCV is free on EC2 and self-licenses via S3, so there's no license/subscription step. Ifdcvis already present (a pinned pre-baked base), the install is skipped.docs/catalog-overlay.example.yaml(base_amis now optional),docs/dcv-streaming-design-review.md(component table + boot sequence).Why this is the right shape
The only bake-worthy GPU component is the NVIDIA driver, and AWS already builds/distributes/maintains it (DLAMI, SSM-resolvable everywhere). DCV installs from a repo in ~1–2 min and is free on EC2. So owning a base AMI — the source of #389 — buys nothing. See the decision record on #286.
Tests
TestDCVInstalledAtBoot: asserts the idempotent guard, the correct pinned tarball/CloudFront path,nice-xdcv/nice-dcv-gl/GPG-key presence, and that the install precedes the cert step anddcvserverstart.TestBuildContainerDCVUserData,TestContainerRunWrapper,TestBuildDCVUserData_LegacyUnchanged,TestCatalogValidstay green (verified locally against the libs#40 catalog via a temporary replace).Dependency / merge order
base_amisfrom the shipped catalog; makes it an optional pin) and release libs v0.44.0.go get github.com/spore-host/[email protected] && go mod tidybump is added to this PR before merge. Until then this PR compiles and all unit tests pass against the current libs (v0.43.3); only the shipped catalog data lags.Not yet verified
End-to-end pixel streaming needs a real GPU instance (no CI integration test for DCV exists). The boot-install follows AWS's documented AL2023 recipe and is unit-tested at the script level, but a cost-controlled real-GPU validation run (TTL + explicit terminate + leak-check) is the required follow-up before calling this "working end to end."
Refs #286, #389.