Skip to content

feat(agent): ODCDS cold path for undeclared upstreams (004 Phase 3) - #160

Merged
bpalermo merged 2 commits into
mainfrom
feat/demand-scoped-phase3
Jun 12, 2026
Merged

bpalermo merged 2 commits into
mainfrom
feat/demand-scoped-phase3

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Phase 3 of proposal 004 (stacked on #159).

  • envoy.filters.http.on_demand with odcds → agent ADS on the outbound HCM; catch-all * vhost with cluster_header: ":authority" so undeclared bare-name calls become well-formed cluster references.
  • Agent observes named delta-CDS subscriptions (wildcard otherwise) via a callbacks combiner around the ACK tracker → ObserveDependency: TTL'd membership (1h idle), refresher prunes every minute; expiry drops the cluster and the next use re-warms via ODCDS.
  • Observed clusters ride the normal snapshot path, so the per-source mTLS transport-socket matcher and connection_pool_per_downstream_connection apply to them identically (the two flagged interactions — validated in vivo in the final e2e).
  • Metrics: aether.agent.upstreams.miss, aether.agent.upstreams.observed.

🤖 Generated with Claude Code

@bpalermo
bpalermo force-pushed the feat/demand-scoped-phase2 branch from 855fe20 to e878380 Compare June 12, 2026 13:01
Base automatically changed from feat/demand-scoped-phase2 to main June 12, 2026 13:11
bpalermo and others added 2 commits June 12, 2026 10:11
The outbound HCM gains the on_demand filter (ODCDS over the node-local
ADS) and the outbound route config a lowest-priority catch-all vhost
routing unmatched authorities to the cluster named by :authority. A
request to an undeclared upstream therefore pauses (instead of 404ing)
while Envoy requests the cluster on demand; the agent observes the
named delta-CDS subscription — Envoy's CDS is otherwise wildcard —
adds the service to the node dependency set with a TTL'd membership
(1h idle, refreshed on re-request, pruned by the refresher), and the
scoped reload delivers cluster+EDS+vhost, resuming the request. The
on-demand cluster goes through the same snapshot path as declared
ones, so it carries the per-source mTLS transport-socket matcher.

Cold-path requests must use bare service names (no port, no FQDN).
Nonexistent services fail at the 5s ODCDS timeout.

New: aether.agent.upstreams.miss counter (promote-to-annotation
signal), aether.agent.upstreams.observed gauge.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@bpalermo
bpalermo force-pushed the feat/demand-scoped-phase3 branch from 07cbc9a to a7a7dee Compare June 12, 2026 13:12
@bpalermo
bpalermo merged commit 50d0062 into main Jun 12, 2026
15 checks passed
@bpalermo
bpalermo deleted the feat/demand-scoped-phase3 branch June 12, 2026 13:22
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