You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
proxy roll: a new Envoy epoch served 404 NR (route_not_found) on the egress listener for 2.8 s before it was Ready — first non-zero liveness since 08-02 #817
Found on the rev221 deploy (talos-main, 2026-09-19, 0.92.26-fba248c). Single observation; reproducibility unknown.
What happened
During the aether-proxy DaemonSet roll, on main-worker-02 only, the node's prober logged in one export batch (16:09:30→16:09:45Z):
liveness 2 / 7,500http_error on target egress — a newly appeared series; the first non-zero liveness since 2026-08-02 (rev220's roll 90 minutes earlier: 0 / 16,201);
mesh_dns http_error +15 on both targets (authoritative and forwarded); timeouts flat; no dns_* series → the resolver is not involved.
The other four nodes rolled through the same sequence with zero errors.
Mechanism (observed)
All 30 non-200 access-log lines fleet-wide in the window are 404 NR route_not_found, reporter: source, upstream_cluster: "-", from that prober on w02, spanning 16:09:05.214Z → 16:09:08.032Z (2.818 s). w02's replacement proxy pod reported Ready at 16:09:08 — the 404s stop at that instant. So the new Envoy epoch was accepting connections on the shared egress listener (:18081) with a route table that did not yet contain the service vhosts, for ~2.8 s before the supervisor's ready marker. The 2 liveness errors have no access-log line (connection-level).
Questions
Why was the new epoch reachable before its routes? With hot restart the new process takes over the listen sockets; LDS activates the egress listener as soon as it is warm, while its RDS route config (or the vhosts inside it, which are demand-scoped / ODCDS-backed) may still be in flight. Is the egress listener's RDS an init target of the listener (it should warm until RDS arrives), or is the route config delivered but initially empty/partial (the rev-66 "missing vhosts → 404s until the next refresh" class the initial-snapshot wait in agent/internal/xds/server/server.go exists for)?
Why only w02, and why not on rev217–rev220's rolls? The agent on w02 had itself restarted ~115 s earlier in the same deploy (agent Ready 16:07:1x, proxy roll reached w02 ~16:08:4x) — check whether the agent's snapshot for the NEW proxy node/epoch was complete when that Envoy connected (first-snapshot content per ADS stream).
Should the old epoch keep serving until the new one's RDS is non-empty — i.e. is the supervisor's readiness/handoff criterion "listeners active" when it should be "listeners active AND routes loaded"? The catch-all NR responses came from the NEW epoch, so the handoff had already moved the sockets.
Evidence to gather next
Re-roll the proxy DaemonSet a few times and count NR 404s per node per roll (log_name:"aether_access_logs" with response_flags:"NR"); correlate with agent restart recency on that node.
envoy_http_rds_*update* / envoy_listener_manager_* / rds.<route>.update_success timing for the new epoch vs the first NR.
The supervisor's handoff log for w02 at 16:08:4x–16:09:08Z (branch, durations).
Related: #815 (every pod event re-warms every cluster — different mechanism, but the same "new config reachable before it is complete" family), #812.
Data points since filing: the rev222 roll (17:30Z), and on rev224 the deploy's proxy roll plus a deliberate rollout restart ds/aether-proxy (19:06Z, all five nodes) produced 0NR 404 access-log lines, each control-tested against the 30 from rev221. So 1 occurrence in 4 proxy rolls × 5 nodes today; still a single observation on w02, still unexplained.
Measured: 0 / 55 node-rolls — and this is not a proxy-roll defect at all
A deliberate loop of 11 rollout restart ds/aether-proxy (55 node-rolls, 50 clean) on rev225 / 0.92.28-e4af095 produced zero404 NR route_not_found. Zero DC, zero UC fleet-wide across the whole window.
Both prior occurrences happened during deploys that rolled the agent too. A proxy-only roll never disturbs the agent's xDS snapshot, so it structurally cannot reproduce this. On the original w02 occurrence the agent had restarted ~115 s earlier. Re-ranking: this is an agent-roll / xDS-availability defect, not a proxy-handoff defect.
The mechanism, measured on the real occurrence
RDS counters are exported with the route-config name baked into the metric name, labelled by node only:
envoy_http_outbound_http_rds_out_http_{update_success,update_attempt,update_failure,config_reload}_total
envoy_http_outbound_http_rds_out_http_update_time # gauge, exact ms
envoy_http_outbound_http_rds_out_http_version
Note for anyone reading the original brief: there is no RDS update_empty and no update_rejected — only envoy_cluster_update_empty_total exists. update_time is the discriminator.
Applied to the 16:09Z w02 occurrence:
event
timestamp
new-epoch LDS update_time
16:08:50.558Z
404 NR lines
16:09:05.214 → 16:09:08.032Z
first out_http RDS update
16:09:08.123Z
The first RDS update landed 91 ms after the last NR. listeners_warming was 0 throughout. The egress listener served traffic for ~17.5 s before its route table existed.
Why the route table can be missing
out_http is RDS-over-ADS with no initial_fetch_timeout anywhere in the repo, and agent/internal/xds/cache/snapshot.go:141 emits the route config only when len(vhosts) > 0 — unlike the edge and capture route configs, which are always emitted so their RDS resolves. A local-only agent start (agent/internal/xds/server/server.go:216-289, 15 s budget) yields zero vhosts, so no route config is published at all; the on-demand catch-all vhost is appended inside the builder, so it cannot rescue the empty case. server.go:230-234 already names this exact failure mode in a comment.
With no initial_fetch_timeout, Envoy does not wait — the listener goes active with an unresolved route table and 404s everything until RDS arrives.
The healthy regime, for contrast
Across 25 node-rolls, RDS update_time versus the old epoch's closing and draining listeners was positive every time, 33–321 ms, median ≈90 ms (w01 80–321, w02 52–163, w03 33–87, w04 45–157, w05 36–133). Ordering is guaranteed by the hot-restart sequence, so this is init-to-drain latency, not a race that occasionally loses. The incident is a genuinely different regime — an agent that had nothing to publish, not a proxy that started too fast.
Fix direction
Always emit the out_http route config, even with zero vhosts, exactly as edge and capture already do (snapshot.go:141). An empty route table 404s the same way, so this alone is not sufficient — but it makes RDS resolve, which is the precondition for anything else.
Set an initial_fetch_timeout on the egress RDS config source so the listener does not go active with an unresolved route table.
Make the local-only start path publish the on-demand catch-all vhost rather than appending it inside the builder, so a zero-vhost start still yields a route table that absorbs mesh-shaped authorities.
Reproduction
A proxy-only loop provably cannot reproduce this. The decisive measurement is to roll the agent DaemonSet (or agent and proxy together) and watch envoy_http_outbound_http_rds_out_http_update_time against the listener going active.
Measured under load: healthy on a proxy roll, and a new observation on an agent roll
From the rev226 8-hour soak (T0 2026-09-19T23:11:22Z), sampling the proxy roll at 00:11:22Z and the agent roll at 00:23:22Z.
Proxy roll — the only roll where the race is actually live
A fresh epoch means an empty route-config provider, so this is where the gap can open. Interval = envoy_http_outbound_http_rds_out_http_update_time − envoy_listener_manager_lds_update_time, both exact-ms gauges:
node
LDS
first RDS
interval
w01
00:11:30.318
00:11:30.490
172 ms
w04
00:11:52.947
00:11:53.071
124 ms
w05
00:12:17.797
00:12:17.961
164 ms
w02
00:12:41.540
00:12:41.724
184 ms
w03
00:13:02.397
00:13:02.414
17 ms
Median 164 ms; w03's 17 ms is faster than the prior observed minimum and benign. Nothing near the 17.5 s failure. Zero NR 404s, on a control-tested filter — response_flags:"NR" returns 0 over the window while the same selector without the filter returns plenty of 200s, and response_flags:"-" returns lines, so the field filter demonstrably works.
Epoch count was taken from the data rather than assumed: envoy_cluster_ssl_handshake_total shows exactly one counter reset per node, 5 epochs, no double hot-restart this time (unlike the deploy roll, where w03 and w05 each showed two).
The agent roll produced the more interesting result
LDS update_time advanced on all five nodes (w05 00:23:39.754 → w01 00:24:54.950), but RDS update_time did not move at all — every node still reads its proxy-roll value from ~12 minutes earlier. Alongside that: update_attempt+6 per node, update_success+0, config_reload_total held at 1.
So on an agent-only roll the listener is re-pushed while the route table is not re-delivered, and Envoy keeps serving the table cached from the previous epoch.
That is benign here only because no new epoch was created — the agent roll creates none, confirmed independently by the absence of any ssl_handshake counter reset. But it is precisely the latent shape of this issue: had a proxy restarted in the same window, there would have been no cached table to fall back on, and with out_http carrying no initial_fetch_timeout the listener would have gone active and 404'd until RDS arrived.
The decisive test, and it is already scheduled
The interleaving that would actually close this is a proxy roll overlapping an agent roll — a fresh epoch with no cached route table while the new agent is still settling. Neither roll in this run produced it separately.
The soak's TRIPLE at 2026-09-20T04:11:22Z rolls agent + proxy + svc-3 concurrently, which is exactly that interleaving. It is the instrument this issue has been waiting for, and it fires on its own.
Caveats
lds_update_time was used as the proxy for "listener going active"; no separate listener-active signal was measured. rds …_update_failure_total is not reported — the series showed gaps and non-monotonic jumps (w02 7→6, w04 11→6, all nodes landing on exactly 6) that could not be reconciled as a clean counter. The NR-zero and config_reload evidence stands independently of it.
Soak result: benign at the TRIPLE, but two nodes are in a regime the healthy band does not describe
rev226 8-hour soak, T0 2026-09-19T23:11:22Z, 31 rolls including the TRIPLE (agent + proxy + svc-3 concurrent) at 04:11:22Z — the interleaving flagged earlier as the instrument this issue needs.
The documented agent-roll signature reproduced exactly on all five nodes: update_attempt rose while update_success stayed at 1 and config_reload stayed at 1 — the route table was not re-delivered, and Envoy kept serving the cached one. No new epoch was created, which is why it stayed benign.
Settled RDS − LDS intervals at the TRIPLE:
node
interval
w01
+192 ms
w02
+63 ms
w05
+89 ms
w03
−2,393 ms
w04
−77,046 ms
w01/w02/w05 sit in the healthy 33–321 ms band. w03 and w04 are negative — LDS was re-pushed after RDS — and w04's 77 seconds is the widest LDS-after-RDS gap recorded to date.
Benign by the stated criterion, because no new epoch meant a cached route table was always available. But it is worth being explicit that a negative interval is not the same regime as a small positive one, and the healthy band does not describe it. The failure mode this issue is about is a listener going active with no route table; on these two nodes the listener was (re-)pushed long after the routes, which is the opposite ordering and has simply never been characterised. Whether 77 s of LDS-after-RDS is harmless in all cases, or only harmless when an epoch survives to hold the cache, is not established by this run.
Zero NR 404s across the soak — though note the grade ran out of window before completing the per-node NR count, so that figure is from the earlier sampling passes rather than the full 8 hours.
Also carried forward from the same run: the proxy RSS band in the July archive (aged 90–110 MiB) is stale for this build. Age-matched samples at T+1800 s after each of 6 proxy rolls gave w01 178–200, w02 254–282, w03 173–217, w04 210–270, w05 236–273 MiB, oscillating with no monotonic growth, and corroborated by envoy_server_memory_allocated being flat across 8 h. That is not a regression, it is a band that needs updating.
Correcting the mechanism I filed above: Envoy did wait, and the cause is delta ADS silence
The analysis in this issue says "no initial_fetch_timeout anywhere, so Envoy does not wait". That is wrong.initial_fetch_timeoutdefaults to 15 s, and Envoy waited exactly that long: on the measured w02 occurrence, LDS update_time 16:08:50.558Z → first 404 at 16:09:05.214Z is 14.656 s. That is the timeout expiring, not a listener that never warmed.
Why RDS was silent for the whole 15 s rather than answering with an empty table
The proxy uses delta ADS (api_type: DELTA_GRPC, charts/aether/templates/agent-proxy-configmap.yaml:338). In go-control-plane v0.14.0:
createDeltaResponse (pkg/cache/v3/delta.go) adds a subscribed name to removedResources only in an else if found branch — i.e. only if it was previously returned on that stream. A brand-new epoch's first out_http subscription has found == false, so a snapshot that omits out_http yields neither a resource nor a removal.
respondDelta (pkg/cache/v3/simple.go:596-618) then writes nothing at all: it requires len(resources) > 0 || len(removedResources) > 0 || (wildcard && nonce == ""), and RDS is not wildcard.
So the watch stays open and silent, the out_http init target never fires, and the listener warms out and activates with a null route table. The red test makes this visible: map[string]types.Resource(nil) — the RouteType set is absent, not empty, and absent is exactly what delta answers with silence.
The consequence that matters for the fix
initial_fetch_timeout is a fail-open bound, not a gate. Its expiry is what activates the listener. No value of it can prevent activation with an unresolved table. So of the two things proposed earlier:
"always emit the route config" is the fix;
"set an initial_fetch_timeout" is a pin, not a remedy.
PR #839 does both, with the timeout set to 15 s — Envoy's own default, so it changes no behaviour, but it makes the mesh's warming budget protocol-visible, test-assertable and immune to upstream default drift. It is also deliberately equal to the agent's registryReadyTimeout (server.go:353): anything shorter lets a fresh epoch activate while the agent feeding it is still inside its own initial-snapshot budget, reopening this exact window. 0 (wait forever) was rejected — it would wedge the listener in warming for the life of the process and the proxy would never report Ready, turning a degraded route table into a total node data-plane outage.
The negative-interval regime: benign by construction, and grading it against the healthy band is a category error
Earlier I flagged w03 (−2,393 ms) and w04 (−77,046 ms) as an uncharacterised regime. It is characterised now, and it needs no fix.
Envoy's RouteConfigProviderManagerImpl keys route-config providers by (route_config_name, config_source hash) and shares them across listeners. A listener re-push re-uses the existing out_http provider, whose local_init_target_ is already ready and whose last-delivered table is already in hand — it does not warm on RDS at all. The cache is provider-scoped, not epoch-scoped, so a listener update cannot invalidate it.
The corollary is the useful part: the negative regime and the failure regime are structurally disjoint. Across an epoch boundary the provider manager starts empty, so the interval is necessarily positive — subscription begins after the listener is created, giving the healthy 33–321 ms band. A negative interval can only ever be observed inside a surviving process, which is precisely where the cached table is guaranteed present. So it is not "benign because an epoch happened to survive"; it cannot be otherwise.
And w04's −77 s is not a risk magnitude at all — it measures how long the agent was absent (agent and proxy rolled together: socket gone, ADS stream broken, update_time only advances on reconnect-and-push). Envoy served fail-static throughout, which is correct behaviour. That matches the agent-roll signature already recorded here: update_attempt rising while update_success and config_reload stay flat means content unchanged, no reload.
So a negative RDS−LDS interval is a control-plane-absence measurement, not a data-plane-risk one, and any dashboard or runbook that grades it against the positive band is measuring the wrong thing.
Correcting my own "benign by construction" claim above — the conclusion holds, the reason was wrong, and the difference is load-bearing.
I argued the negative RDS−LDS regime is benign because the route-config provider cache is provider-scoped rather than epoch-scoped, so a surviving process always has the table in hand. That is true but it is not what makes the path safe.
Providers are held WEAKLY.source/common/rds/route_config_provider_manager.h:73-74 is a node_hash_map<uint64_t, pair<weak_ptr<RouteConfigProvider>, const Init::Target*>>, and no caching layer outlives the last strong reference. aether's egress listener is per-pod (outbound_http_<pod>), so a node draining to zero meshed pods drops the last reference and the provider is torn down. Teardown is merely deferred by the drain window — and Envoy's default --drain-time-s is 600 s, which would hide this entirely, while aether sets 10 s, so the cold path is genuinely reachable in ordinary churn.
So the correct statement is: negative intervals are benign within a provider's lifetime, and that lifetime is bounded by --drain-time-s, not by the process.
The part that matters more: drain-to-zero was a second entry point into this issue
Not a cold-start variant — a way into the same silence on a running proxy whose control plane had just been made to forget.
Envoy's delta mux really does send resource_names_unsubscribe (delta_subscription_state.cc:98, :331). go-control-plane v0.14.0 then forgets it ever served the resource: the non-wildcard branch does delete(s.returnedResources, resource) (pkg/server/stream/v3/subscription.go:154-156). That restores exactly the found == false precondition described earlier in this issue — so on re-subscription a snapshot omitting out_http would yield neither a resource nor a removal, and respondDelta would write nothing.
#839 closes this path too, because snapshot.go:162 now emits out_http on every snapshot regardless of pod count. That was not the motivation for the change, and it is a better one than the motivation was.
The precondition is therefore explicit and must stay that way: the path is safe because the snapshot always emits out_http, not because the provider survives. If "always emit" is ever made conditional again, this reopens — and it reopens on running proxies, not just fresh ones.
Verified from source at the pinned build; #844 is closed with the full trace.
Activity
bpalermo commentedon Sep 19, 2026
Data points since filing: the rev222 roll (17:30Z), and on rev224 the deploy's proxy roll plus a deliberate
rollout restart ds/aether-proxy(19:06Z, all five nodes) produced 0NR404 access-log lines, each control-tested against the 30 from rev221. So 1 occurrence in 4 proxy rolls × 5 nodes today; still a single observation on w02, still unexplained.bpalermo commentedon Sep 19, 2026
Measured: 0 / 55 node-rolls — and this is not a proxy-roll defect at all
A deliberate loop of 11
rollout restart ds/aether-proxy(55 node-rolls, 50 clean) on rev225 /0.92.28-e4af095produced zero404 NR route_not_found. ZeroDC, zeroUCfleet-wide across the whole window.Both prior occurrences happened during deploys that rolled the agent too. A proxy-only roll never disturbs the agent's xDS snapshot, so it structurally cannot reproduce this. On the original w02 occurrence the agent had restarted ~115 s earlier. Re-ranking: this is an agent-roll / xDS-availability defect, not a proxy-handoff defect.
The mechanism, measured on the real occurrence
RDS counters are exported with the route-config name baked into the metric name, labelled by
nodeonly:Note for anyone reading the original brief: there is no RDS
update_emptyand noupdate_rejected— onlyenvoy_cluster_update_empty_totalexists.update_timeis the discriminator.Applied to the 16:09Z w02 occurrence:
update_time404 NRlinesout_httpRDS updateThe first RDS update landed 91 ms after the last NR.
listeners_warmingwas 0 throughout. The egress listener served traffic for ~17.5 s before its route table existed.Why the route table can be missing
out_httpis RDS-over-ADS with noinitial_fetch_timeoutanywhere in the repo, andagent/internal/xds/cache/snapshot.go:141emits the route config only whenlen(vhosts) > 0— unlike the edge and capture route configs, which are always emitted so their RDS resolves. A local-only agent start (agent/internal/xds/server/server.go:216-289, 15 s budget) yields zero vhosts, so no route config is published at all; the on-demand catch-all vhost is appended inside the builder, so it cannot rescue the empty case.server.go:230-234already names this exact failure mode in a comment.With no
initial_fetch_timeout, Envoy does not wait — the listener goes active with an unresolved route table and 404s everything until RDS arrives.The healthy regime, for contrast
Across 25 node-rolls, RDS
update_timeversus the old epoch'sclosing and draining listenerswas positive every time, 33–321 ms, median ≈90 ms (w01 80–321, w02 52–163, w03 33–87, w04 45–157, w05 36–133). Ordering is guaranteed by the hot-restart sequence, so this is init-to-drain latency, not a race that occasionally loses. The incident is a genuinely different regime — an agent that had nothing to publish, not a proxy that started too fast.Fix direction
out_httproute config, even with zero vhosts, exactly as edge and capture already do (snapshot.go:141). An empty route table 404s the same way, so this alone is not sufficient — but it makes RDS resolve, which is the precondition for anything else.initial_fetch_timeouton the egress RDS config source so the listener does not go active with an unresolved route table.Reproduction
A proxy-only loop provably cannot reproduce this. The decisive measurement is to roll the agent DaemonSet (or agent and proxy together) and watch
envoy_http_outbound_http_rds_out_http_update_timeagainst the listener going active.bpalermo commentedon Sep 20, 2026
Measured under load: healthy on a proxy roll, and a new observation on an agent roll
From the rev226 8-hour soak (T0 2026-09-19T23:11:22Z), sampling the proxy roll at 00:11:22Z and the agent roll at 00:23:22Z.
Proxy roll — the only roll where the race is actually live
A fresh epoch means an empty route-config provider, so this is where the gap can open. Interval =
envoy_http_outbound_http_rds_out_http_update_time−envoy_listener_manager_lds_update_time, both exact-ms gauges:Median 164 ms; w03's 17 ms is faster than the prior observed minimum and benign. Nothing near the 17.5 s failure. Zero
NR404s, on a control-tested filter —response_flags:"NR"returns 0 over the window while the same selector without the filter returns plenty of 200s, andresponse_flags:"-"returns lines, so the field filter demonstrably works.Epoch count was taken from the data rather than assumed:
envoy_cluster_ssl_handshake_totalshows exactly one counter reset per node, 5 epochs, no double hot-restart this time (unlike the deploy roll, where w03 and w05 each showed two).The agent roll produced the more interesting result
LDS
update_timeadvanced on all five nodes (w05 00:23:39.754 → w01 00:24:54.950), but RDSupdate_timedid not move at all — every node still reads its proxy-roll value from ~12 minutes earlier. Alongside that:update_attempt+6 per node,update_success+0,config_reload_totalheld at 1.So on an agent-only roll the listener is re-pushed while the route table is not re-delivered, and Envoy keeps serving the table cached from the previous epoch.
That is benign here only because no new epoch was created — the agent roll creates none, confirmed independently by the absence of any
ssl_handshakecounter reset. But it is precisely the latent shape of this issue: had a proxy restarted in the same window, there would have been no cached table to fall back on, and without_httpcarrying noinitial_fetch_timeoutthe listener would have gone active and 404'd until RDS arrived.The decisive test, and it is already scheduled
The interleaving that would actually close this is a proxy roll overlapping an agent roll — a fresh epoch with no cached route table while the new agent is still settling. Neither roll in this run produced it separately.
The soak's TRIPLE at 2026-09-20T04:11:22Z rolls agent + proxy + svc-3 concurrently, which is exactly that interleaving. It is the instrument this issue has been waiting for, and it fires on its own.
Caveats
lds_update_timewas used as the proxy for "listener going active"; no separate listener-active signal was measured.rds …_update_failure_totalis not reported — the series showed gaps and non-monotonic jumps (w02 7→6, w04 11→6, all nodes landing on exactly 6) that could not be reconciled as a clean counter. The NR-zero andconfig_reloadevidence stands independently of it.bpalermo commentedon Sep 20, 2026
Soak result: benign at the TRIPLE, but two nodes are in a regime the healthy band does not describe
rev226 8-hour soak, T0 2026-09-19T23:11:22Z, 31 rolls including the TRIPLE (agent + proxy + svc-3 concurrent) at 04:11:22Z — the interleaving flagged earlier as the instrument this issue needs.
The documented agent-roll signature reproduced exactly on all five nodes:
update_attemptrose whileupdate_successstayed at 1 andconfig_reloadstayed at 1 — the route table was not re-delivered, and Envoy kept serving the cached one. No new epoch was created, which is why it stayed benign.Settled RDS − LDS intervals at the TRIPLE:
w01/w02/w05 sit in the healthy 33–321 ms band. w03 and w04 are negative — LDS was re-pushed after RDS — and w04's 77 seconds is the widest LDS-after-RDS gap recorded to date.
Benign by the stated criterion, because no new epoch meant a cached route table was always available. But it is worth being explicit that a negative interval is not the same regime as a small positive one, and the healthy band does not describe it. The failure mode this issue is about is a listener going active with no route table; on these two nodes the listener was (re-)pushed long after the routes, which is the opposite ordering and has simply never been characterised. Whether 77 s of LDS-after-RDS is harmless in all cases, or only harmless when an epoch survives to hold the cache, is not established by this run.
Zero
NR404s across the soak — though note the grade ran out of window before completing the per-node NR count, so that figure is from the earlier sampling passes rather than the full 8 hours.Also carried forward from the same run: the proxy RSS band in the July archive (aged 90–110 MiB) is stale for this build. Age-matched samples at T+1800 s after each of 6 proxy rolls gave w01 178–200, w02 254–282, w03 173–217, w04 210–270, w05 236–273 MiB, oscillating with no monotonic growth, and corroborated by
envoy_server_memory_allocatedbeing flat across 8 h. That is not a regression, it is a band that needs updating.bpalermo commentedon Sep 20, 2026
Correcting the mechanism I filed above: Envoy did wait, and the cause is delta ADS silence
The analysis in this issue says "no
initial_fetch_timeoutanywhere, so Envoy does not wait". That is wrong.initial_fetch_timeoutdefaults to 15 s, and Envoy waited exactly that long: on the measured w02 occurrence, LDSupdate_time16:08:50.558Z → first 404 at 16:09:05.214Z is 14.656 s. That is the timeout expiring, not a listener that never warmed.Why RDS was silent for the whole 15 s rather than answering with an empty table
The proxy uses delta ADS (
api_type: DELTA_GRPC,charts/aether/templates/agent-proxy-configmap.yaml:338). In go-control-plane v0.14.0:createDeltaResponse(pkg/cache/v3/delta.go) adds a subscribed name toremovedResourcesonly in anelse if foundbranch — i.e. only if it was previously returned on that stream. A brand-new epoch's firstout_httpsubscription hasfound == false, so a snapshot that omitsout_httpyields neither a resource nor a removal.respondDelta(pkg/cache/v3/simple.go:596-618) then writes nothing at all: it requireslen(resources) > 0 || len(removedResources) > 0 || (wildcard && nonce == ""), and RDS is not wildcard.So the watch stays open and silent, the
out_httpinit target never fires, and the listener warms out and activates with a null route table. The red test makes this visible:map[string]types.Resource(nil)— the RouteType set is absent, not empty, and absent is exactly what delta answers with silence.The consequence that matters for the fix
initial_fetch_timeoutis a fail-open bound, not a gate. Its expiry is what activates the listener. No value of it can prevent activation with an unresolved table. So of the two things proposed earlier:initial_fetch_timeout" is a pin, not a remedy.PR #839 does both, with the timeout set to 15 s — Envoy's own default, so it changes no behaviour, but it makes the mesh's warming budget protocol-visible, test-assertable and immune to upstream default drift. It is also deliberately equal to the agent's
registryReadyTimeout(server.go:353): anything shorter lets a fresh epoch activate while the agent feeding it is still inside its own initial-snapshot budget, reopening this exact window.0(wait forever) was rejected — it would wedge the listener in warming for the life of the process and the proxy would never report Ready, turning a degraded route table into a total node data-plane outage.The negative-interval regime: benign by construction, and grading it against the healthy band is a category error
Earlier I flagged w03 (−2,393 ms) and w04 (−77,046 ms) as an uncharacterised regime. It is characterised now, and it needs no fix.
Envoy's
RouteConfigProviderManagerImplkeys route-config providers by (route_config_name, config_source hash) and shares them across listeners. A listener re-push re-uses the existingout_httpprovider, whoselocal_init_target_is already ready and whose last-delivered table is already in hand — it does not warm on RDS at all. The cache is provider-scoped, not epoch-scoped, so a listener update cannot invalidate it.The corollary is the useful part: the negative regime and the failure regime are structurally disjoint. Across an epoch boundary the provider manager starts empty, so the interval is necessarily positive — subscription begins after the listener is created, giving the healthy 33–321 ms band. A negative interval can only ever be observed inside a surviving process, which is precisely where the cached table is guaranteed present. So it is not "benign because an epoch happened to survive"; it cannot be otherwise.
And w04's −77 s is not a risk magnitude at all — it measures how long the agent was absent (agent and proxy rolled together: socket gone, ADS stream broken,
update_timeonly advances on reconnect-and-push). Envoy served fail-static throughout, which is correct behaviour. That matches the agent-roll signature already recorded here:update_attemptrising whileupdate_successandconfig_reloadstay flat means content unchanged, no reload.So a negative RDS−LDS interval is a control-plane-absence measurement, not a data-plane-risk one, and any dashboard or runbook that grades it against the positive band is measuring the wrong thing.
fix(agent): always publish out_http so the egress listener's RDS reso…
bpalermo commentedon Sep 20, 2026
Correcting my own "benign by construction" claim above — the conclusion holds, the reason was wrong, and the difference is load-bearing.
I argued the negative RDS−LDS regime is benign because the route-config provider cache is provider-scoped rather than epoch-scoped, so a surviving process always has the table in hand. That is true but it is not what makes the path safe.
Providers are held WEAKLY.
source/common/rds/route_config_provider_manager.h:73-74is anode_hash_map<uint64_t, pair<weak_ptr<RouteConfigProvider>, const Init::Target*>>, and no caching layer outlives the last strong reference. aether's egress listener is per-pod (outbound_http_<pod>), so a node draining to zero meshed pods drops the last reference and the provider is torn down. Teardown is merely deferred by the drain window — and Envoy's default--drain-time-sis 600 s, which would hide this entirely, while aether sets 10 s, so the cold path is genuinely reachable in ordinary churn.So the correct statement is: negative intervals are benign within a provider's lifetime, and that lifetime is bounded by
--drain-time-s, not by the process.The part that matters more: drain-to-zero was a second entry point into this issue
Not a cold-start variant — a way into the same silence on a running proxy whose control plane had just been made to forget.
Envoy's delta mux really does send
resource_names_unsubscribe(delta_subscription_state.cc:98,:331). go-control-plane v0.14.0 then forgets it ever served the resource: the non-wildcard branch doesdelete(s.returnedResources, resource)(pkg/server/stream/v3/subscription.go:154-156). That restores exactly thefound == falseprecondition described earlier in this issue — so on re-subscription a snapshot omittingout_httpwould yield neither a resource nor a removal, andrespondDeltawould write nothing.#839 closes this path too, because
snapshot.go:162now emitsout_httpon every snapshot regardless of pod count. That was not the motivation for the change, and it is a better one than the motivation was.The precondition is therefore explicit and must stay that way: the path is safe because the snapshot always emits
out_http, not because the provider survives. If "always emit" is ever made conditional again, this reopens — and it reopens on running proxies, not just fresh ones.Verified from source at the pinned build; #844 is closed with the full trace.
fix(proxy): a hot-restart successor waits for CDS+LDS instead of goin…