Skip to content

feat(agent): demand-scoped snapshot from declared upstreams (004 Phase 1) - #158

Merged
bpalermo merged 1 commit into
mainfrom
feat/demand-scoped-phase1
Jun 12, 2026
Merged

bpalermo merged 1 commit into
mainfrom
feat/demand-scoped-phase1

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Phase 1 of proposal 004 (demand-scoped service distribution).

  • New config.aether.io/upstreams pod annotation (comma-separated service names) — what the pod consumes, distinct from endpoint.aether.io/* registration facts.
  • The agent unions local pods' declared upstreams + their own services into the node dependency set; LoadClustersFromRegistry scopes CDS/EDS/RDS to it.
  • Dependency-set changes (pod add/remove, changed declarations) signal the registry refresher through the existing debounced reload path; the service retention grace doubles as drop hysteresis.
  • Gauges: aether.agent.snapshot.clusters, aether.agent.upstreams.declared.

Breaking (decided in the proposal): undeclared upstreams 404 until Phase 3 lands ODCDS; the e2e workloads get annotations before deploy. No fallback flag — reverting the phase is the rollback path.

🤖 Generated with Claude Code

…e 1)

A node's proxy now carries clusters/endpoints/vhosts only for its
dependency set: the union of local pods' config.aether.io/upstreams
annotations plus their own services. LoadClustersFromRegistry filters
the registry listing by that set; the outbound RDS vhost set shrinks
identically. Pod add/remove and changed declarations signal the
registry refresher (coalesced) to rebuild the scoped snapshot; the
service retention grace doubles as drop hysteresis.

Breaking per proposal 004: undeclared upstreams 404 until Phase 3
lands ODCDS.

New gauges: aether.agent.snapshot.clusters (headline per-node number),
aether.agent.upstreams.declared.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@bpalermo
bpalermo enabled auto-merge (squash) June 12, 2026 12:33
@bpalermo
bpalermo merged commit 0e80103 into main Jun 12, 2026
9 checks passed
@bpalermo
bpalermo deleted the feat/demand-scoped-phase1 branch June 12, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant