Load-balance Attic across vega and lyra #8
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#8
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
Switch the public Attic endpoint from a single backend to dual backends only after both nodes are healthy.
Scope
This issue covers the work from
projects/attic-postgres-lyra-rollout.mdPhase 4.Acceptance Checklist
vega:8081andlyra:8081as upstreams.Implementation Outline
Verification
Rollback
If dual-backend serving is unstable:
lyrafrom the proxy upstream set.vegaas the sole public backend.lyraonly through direct/local access until the fault is understood.Diagnosed the current dual-backend proxy failure.
Root cause:
lyraAttic itself is healthy and servesnix-cache-infolocally.allowed-hostslist in the shared module only whitelistedattic.nimmog.uk, loopback, andvega's backend IP host (192.168.8.108:8081).lyraby backend IP/port (192.168.8.146:8081), Attic rejects the request with400 Bad Host.Evidence:
curl -H 'Host: 192.168.8.146:8081' http://127.0.0.1:8081/nixos/nix-cache-infoonlyrareturned400 Bad Host.curl -H 'Host: attic.nimmog.uk' ...returned200 OK.curl http://192.168.8.146:8081/nixos/nix-cache-infofromvegaalso returned400 Bad Host.Repo fix in progress:
allowed-hostslist to include192.168.8.146:8081so Pangolin can treatlyraas healthy over the LAN backend path.After redeploying the shared Attic
allowed-hostsfix, bothvegaandlyranow report healthy in Pangolin/newt for the public Attic route.This confirms the earlier
lyrahealth-check failure was caused by Attic rejecting the backend-IP Host header, and that the fix to whitelist192.168.8.146:8081resolved it.Remaining verification for this issue is now just endpoint stability under repeated public fetches, not backend reachability.
Final public-endpoint verification passed.
Observed:
curl -I https://attic.nimmog.uk/nixos/nix-cache-inforeturned200 OK..narinfofetches for a known path completed successfully without backend instability.Issue outcome:
vegaandlyra.lyra's backend-IP Host header; once the sharedallowed-hostslist was updated, Pangolin/newt health checks and public serving both stabilized.This completes the dual-backend serving phase.