Skip to content

cold ODCDS on full agent+proxy replacement: ~5s of echo errors per no-local-replica node on every Helm upgrade (observed-only upstreams); persist the observed demand set / annotate the prober #701

Closed

Description

@bpalermo

Summary

With #691 + #698 deployed (rev195, 43e57b4), the #682 reconnect stall is closed: an agent-only restart on a node with no local replica of an upstream now produces zero ODCDS misses and zero prober errors (validated on w01 and w03, counters byte-identical before/after). What is left is a bounded, ~one-bucket cold-start cost when agent and proxy are replaced together — i.e. every Helm upgrade — on nodes where the upstream is an observed-only dependency.

Evidence (rev195 upgrade roll, 14:25:31Z → 14:27:33Z)

node window prober http_error (auth / fwd) timeout correlates with
w01 (prober-5p56l) 14:26:15–14:26:30Z +57 / +58 +6 / +6 new proxy pod created 14:26:24Z
w03 (prober-qqwvb) 14:27:30–14:27:45Z +65 / +65 +8 / +9 new agent pod 14:27:01Z, reassert loop 14:27:09Z

One bucket each, then flat. No observed undeclared upstream (ODCDS miss) line on either agent (control-tested against the rev194 lines at 13:35Z). AetherProberHTTPErrorBurst fired 14:26:54Z → resolved 14:37:04Z. Liveness 0/33,864. Nothing on w02/w04/w05 (they host an echo replica).

Compare the deliberate agent-only deletes on the same nodes ten minutes later: 0 / 0 / 0.

Why it happens, and why no soak ever saw it

Options

  1. Harness/GitOps, trivial: give the prober DaemonSet the config.aether.io/upstreams annotation for its targets (aether-test/echo). Removes the burst on every upgrade and the alert noise, and makes the prober behave like a declared tenant. Downside: the prober then no longer exercises the observed-only path at all — keep ONE prober node unannotated on purpose, or accept that.
  2. Agent, real fix: persist the observed half of the demand set to the agent's local storage (it already persists CNI pod data there) and re-seed from disk on start — so a full replacement restarts warm. The TTL and the fix(xds): alias the ODCDS authority on the mesh port, and re-seed the demand set on a fresh xDS stream (#682) #698 stream re-seed still apply on top. This is the change that makes rollouts cold-start-free for any observed-only upstream, not just the prober's.
  3. Rule tuning: raise AetherProberHTTPErrorBurst's threshold or add a "during a rollout" inhibition. Not recommended — the alert did its job here.

(1) now, (2) as the proper follow-up to #682. Refs #682, #691, #698, #687 (harness blind spots), GitOps #40 (the rule that caught it).

Activity

  1. bpalermo commented on Sep 5, 2026

    @bpalermo
    OwnerAuthor

    Validated on talos-main — full-roll cold-start eliminated (rev196, f06fede, 2026-09-05)

    roll w01 errors w03 errors mechanism that fired
    rev195 upgrade (before, 14:25Z) 127 147 none — cold ODCDS
    rev196 deploy (16:42:58Z) 0 0 #698 only (restored observed upstream from the proxy's held clusters — the outgoing rev195 proxy was still alive); file empty (no persisted observed upstreams; starting cold), then written at the end: 11 entries w01 / 7 w03
    second full roll — THE TEST (16:48:15Z, agent + proxy restarted together) 0 0 #702 only: restored 11 observed upstreams from local storage (w01, incl. aether-test/echo) / restored 7 … (w03, incl. echo); no #698 held-cluster lines on either agent; no observed undeclared upstream for echo after the restore
    agent-only delete w03 (16:52:35Z) – 0 restored 7 … again — the file survives the pod (host-mounted state)

    aether_agent_upstreams_restored_total per node after the test roll: w01 11 · w02 7 · w03 7 · w04 6 · w05 8. AetherProberHTTPErrorBurst never fired; liveness 0/5,390 across the test roll; 0 restarts; taints []; collector flat at ~95MiB with 0 new refusals.

    The deploy roll's 0/0 is not evidence for this change (the file did not exist yet; #698 covered it because the old proxy was alive during the handoff). The second roll isolates #702 cleanly.

    Not observable this run: that restored entries keep their original expires_at — the restore line does not print deadlines and the file cannot be read without exec. The unit test pins it; a future soak's ≥1h15m no-roll window (harness #687) will show whether restored entries expire on the original schedule (they should be gone from the set ~1h after their first observation, not ~1h after the restart).

    Closing on the second-roll evidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions