Deploy Attic on lyra against shared PostgreSQL and NAS storage #7
Labels
No labels
host:electra
host:fleet
host:lyra
host:vega
host:vega
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:declarative-purity-cleanup
project:external-review
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
service:auto-update
service:mem0
service:sillytavern
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Add
atticdtolyraonly aftervegais stable on PostgreSQL-backed metadata.Scope
This issue covers the work from
projects/attic-postgres-lyra-rollout.mdPhase 3.Acceptance Checklist
lyra.lyrathrough the repo/module path.lyraat the same PostgreSQL database asvega.lyrathe same token/secret material needed to serve the same cache.atticdsuccessfully onlyra.lyracan serve known-good cache metadata locally.Implementation Outline
lyra.lyra.Verification
Success means both nodes can start and serve the same cache metadata while reading the same shared storage.
Notes
Starting implementation.
Current repo state before changes:
lyradoes not currently import the shared Attic module.vegais already running successfully on the reset PostgreSQL-backed cache.Planned repo change for this phase:
modules/services/atticd.nixmodule onlyra,Repo-side enablement for
lyrais done.Implemented:
hosts/lyra/default.nixnow imports the sharedmodules/services/atticd.nixmodule.lyrahost tags now includeatticso inventory reflects the new role.nix flake checkpasses with the change.This means the remaining work for #7 is deployment/validation on the host itself:
lyra,atticdstarts there against the shared PostgreSQL DB and NAS storage,127.0.0.1:8081/nixos/nix-cache-infofromlyra.Host-side validation on
lyrais largely successful.Observed after test deployment:
atticd.servicestarts successfully onlyra./srv/attic/storage.atticdstarts against the same checked config shape asvega, runs migrations, and listens on0.0.0.0:8081.curl -i http://127.0.0.1:8081/nixos/nix-cache-infoonlyrareturns200 OKwith public cache visibility.This confirms
lyrais serving the shared PostgreSQL-backed Attic cache locally. The only remaining nice-to-have before closing this issue is a local.narinfobehavior check onlyra(either a known present object once the cache is repopulated, or the expected clean miss for an old historical path while the cache is still empty).Final local data-path verification on
lyrapassed.curl http://127.0.0.1:8081/nixos/4da5p6rwzj366cfsq0xslgqi1q7j5nbr.narinfoonlyrareturned a valid.narinfopayload, not justnix-cache-info.lyracan resolve real cache metadata against the shared PostgreSQL DB and shared NAS-backed Attic storage.Issue outcome:
lyrais now successfully running Attic against the shared backend stack and can serve the same cache locally.