Skip to content

soak: the readings the next run still owes, plus the k6/access-log reconciliation #846

Closed

Description

@bpalermo

Successor to #814, which the rev226 run answered six of eight. These are the three that remain, plus one reading that run showed we should have been taking all along.

Still unanswered from #814

  1. Does unchanged ever fire over 8 h? (feat(agent): count healthy SVID and trust-bundle updates; seed the sweep counters (#799) #806) Dropped from the rev226 grading pass under time pressure and not recovered. Note the trap: a counter never incremented does not exist as a series, so this has to be answered by testing for the series' appearance, never by reading a zero.
  2. SVID rotation cadence from the counter, excluding minutes with a spire-agent restart on the node — a restart re-mints and counts rotated. Four cycles expected at the 4 h TTL. Not separately measured on rev226.
  3. Proxy handoff duration distribution. worker-02 took 34.4 s on the rev216 roll against a 16–26 s band, zero cost, unexplained. rev226 handoffs looked textbook wherever inspected, but no per-roll distribution was collected.

New, and it should be standing

  1. Reconcile k6's http_req_failed against the source proxies' access logs, per node. On rev226 this was the single most informative reading of the run and it was not on anyone's list:
node access-log failures k6 http_req_failed unlogged
w01 107 107 0
w02 9 9 0
w03 22 148 126
w04 10 140 130
w05 10 264 254

~510 failures produced no access-log line at any proxy — the request never reached something that could log it. It also exposed that the prober is the wrong instrument for handoff cost, because it rides a single keep-alive connection while k6's 60 VUs see a refused dial each. That is now on #823, and it turned an earlier "0 in 55 node-rolls" result into "0 visible to the prober".

Why w01 and w02 reconcile at exactly zero across six equal proxy rolls, while the other three sit at 126–254, is unexplained and is the most interesting open question the run produced.

Two reference values the run corrected

  • Proxy aged-RSS band. The July archive's "aged RSS 90–110 MiB" is stale for this build. Six age-matched samples at T+1800 s gave w01 178–200, w02 254–282, w03 173–217, w04 210–270, w05 236–273 MiB — oscillating, no monotonic growth, corroborated by envoy_server_memory_allocated flat across 8 h. Grade against the new band, not the old one.
  • Prober rates. liveness 25/s fleet; mesh_dns 50/s fleet = 25/s per target. result is a label, so count(aether_probe_requests_total{tier="mesh_dns"}) is 14 series, not 10 — any avg or count-based normalisation assuming 10 is wrong.

Grading discipline worth carrying forward

Every zero in the rev226 grade was control-tested, and that is what made the verdict defensible rather than merely clean:

  • the collector series was flat and responsive — the only movement in 926 samples was the TRIPLE, so a dead sampler was excluded;
  • UNHEALTHY→HEALTHY counted 13 on w01 while its sibling held 0, proving the transition instrument records;
  • the result!="success" filter returned three other classes, proving the absent DNS classes are genuinely absent;
  • the dead-man's-switch heartbeat fired inside the graded window, which is what makes "no other alert fired" evidence rather than silence.

A grade built only on zeros is indistinguishable from a grade built on broken queries. Check the heartbeat fired in-window before claiming a clean alert record.

Activity

  1. self-assigned this
    on Sep 20, 2026
  2. bpalermo commented on Sep 20, 2026

    @bpalermo
    OwnerAuthor

    Plan for the next 8 h soak — how #846 gets discharged

    Written 2026-09-20 ~18:08–18:15Z against the live cluster (read-only). Every metric
    name, label name and field name below was confirmed by an actual query in that window,
    not recalled; where a query came back empty that is stated as a finding rather than
    smoothed over. No workload was rolled and nothing was mutated.


    0. Two corrections to the premises before anything else

    (a) The build is helm revision 230, not 229. helm -n aether-system list at 18:12Z:

    aether  aether-system  230  2026-09-20 14:38:46.342258883 -0300  deployed
            aether-0.93.1-8d0d5da683f7055acebf5f9d3318f10b82ce81e0
    

    The chart string and the timestamp (14:38:46 -03 = 17:38:46Z) match the deploy the
    brief describes exactly, so it is the same event — only the revision number is off by
    one. Worth fixing now, because the revision number is the primary key these run records
    are filed under and rev229 would not resolve.

    (b) #846's stated trap for unchanged no longer applies on this build — the counter is
    seeded.
    The issue says the reading "has to be answered by testing for the series'
    appearance, never by reading a zero". That was true when it was written; it is not true
    now. At 18:11Z all six identity × update combinations exist on all five nodes:

    aether_agent_spire_svid_updates_total{aether_spire_identity="pod",aether_spire_update="unchanged",node="main-worker-0N"} = 0   (×5)
    aether_agent_spire_svid_updates_total{aether_spire_identity="pod",aether_spire_update="rotated",  node="main-worker-0N"} = 0   (×5)
    aether_agent_spire_svid_updates_total{aether_spire_identity="pod",aether_spire_update="initial"} = 11 / 9 / 8 / 8 / 6  (w01…w05, 42 pods)
    

    So on rev230 a zero on unchanged is a readable zero, not an absent series, and
    initial being non-zero on the same node is the built-in control proving the instrument
    records. This changes the reading from "watch for a series to be born" to "read the value,
    and separately establish whether the precondition ever occurred" — see R1.

    Label names, confirmed live and easy to get wrong: aether_spire_identity and
    aether_spire_update (not identity/update), plus node and job.


    1. Grading criteria, stated up front

    PASS bar (unchanged from the rev226 grade; these are not renegotiated here)

    Reading Bar
    liveness error % 0.000% — any non-zero is a finding, not a rounding
    mesh_dns dns_error / dns_nxdomain / dns_timeout, split by target zero on both targets
    mesh_dns http_error / timeout / connection_error attributed to a mechanism before being reported; cross-node backend path (http_error) is a different failure domain from the resolver classes
    k6 http_req_failed < 1% (the script threshold); reference is rev192 0.00645%, rev226 not measured
    restarts on aether pods 0
    max_over_time(aether_mesh_dns_snapshot_age_seconds[8h]) per-node constant, no climb (~55–61 s is normal phase luck)
    proxy aged RSS @ T+1800 s against the rev226 band, not the July archive: w01 178–200 · w02 254–282 · w03 173–217 · w04 210–270 · w05 236–273 MiB, non-monotonic
    alerts in #alerts (C0BKTQSPX9T) report every firing with fire/resolve timestamps, or "none" — and prove the dead-man's switch fired in-window

    UNGRADEABLE conditions — declare these instead of producing a verdict

    The run is not gradeable and must say so plainly if any of these hold. Precedent:
    project_soak_20260902_run.md, where Prometheus restarted 70× and the honest output was
    "no valid grade".

    1. Prometheus restarted in-window. Check, don't assume:
      changes(process_start_time_seconds{job="prometheus"}[8h]) must be 0.
      Baseline at 18:14Z: process_start_time_seconds{job="prometheus",instance="prometheus-server.prometheus.svc.cluster.local:80"} = 1789917666.58 (≈15:21Z, up 2.9 h).
    2. Alertmanager restarted in-window — the 09-02 companion failure. If it did, alert
      silence is absence of evidence and the alert section reports "not established".
    3. OtelCollectorRefusingData fired in-window → the gauge-based readings
      (snapshot_age_seconds, records, ready, watch_active, upstream_rq_active,
      envoy_server_memory_allocated) are suspect for that period. Counters survive;
      gauges lose coverage. Grade the counter half, mark the gauge half.
    4. otelcol_receiver_refused_metric_points_total > 0 on either collector replica.
    5. A k6 runner restarted inside the window (loses that node's summary and breaks
      the reconciliation for that node) — the PriorityClass exists to prevent this; verify
      rather than trust it.
    6. Access-log ingest loss (see §3's control C1) → the reconciliation is
      ungradeable even if the rest of the run is fine. Report the halves separately.
    7. Any window contaminated by a second churn driver, a stray roll, or a kill -TERM on
      churn.sh (which does not stop it — it fires the next roll early; use kill -9
      on the PID, never pkill -f "soak/churn.sh").

    Never

    Never restart the otel-collector mid-soak. Never roll echo (it is the prober's target).
    Never trust increase[8h] across a scrape gap; prefer raw cumulative deltas between two
    endpoints where all series exist, and say which method was used.


    2. The owed readings, with exact queries

    All PromQL against datasourceUid: "prometheus". All LogsQL against the victorialogs
    datasource (https://victorialogs.nas.palermo.dev:9428), reachable read-only via
    /api/datasources/proxy/uid/victorialogs/select/logsql/query?query=…&start=…&end=….

    R1 — Does update="unchanged" ever fire over 8 h? (#806, carried from #814)

    Query (instant, at T0 and at T0+8h; plus a range at step 60 s to place any event):

    aether_agent_spire_svid_updates_total{aether_spire_identity="pod", aether_spire_update="unchanged"}
    aether_agent_spire_svid_updates_total{aether_spire_identity="node",aether_spire_update="unchanged"}
    

    Range form for placement: same selector, queryType=range, stepSeconds=60, T0 → T0+8h.

    The reading is a pair, and reporting only the first half is the failure mode.
    unchanged needs a stream failure followed by redelivery of the same chain. So also
    take the precondition:

    aether_agent_spire_stream_failures_total
    aether_agent_spire_stream_reconnects_total
    

    ⚠️ These two are NOT seeded. Both names are in the Prometheus index but returned
    no data at all at 18:13Z — so for these, and only these, the appearance test is the
    correct one. Record "series absent" / "series appeared at HH:MM:SSZ with value N".

    Verdict grammar:

    • unchanged > 0 → answered: yes, record node, time, count, and the accompanying
      stream-failure event.
    • unchanged == 0 and stream failures > 0 → answered: no — the path ran and
      classified as something else. This is the informative negative.
    • unchanged == 0 and no stream-failure series ever appeared → NOT ANSWERED, the
      precondition never occurred.
      Say exactly that. Do not write "unchanged never fires".

    Expectation: no prediction. rev219 established the mechanism can only be reached by a
    broker-socket blip without agent re-attestation, which nothing in the churn schedule
    induces.

    R2 — SVID rotation cadence from the counter, excluding spire-agent restarts

    aether_agent_spire_svid_updates_total{aether_spire_identity="pod", aether_spire_update="rotated"}
    aether_agent_spire_svid_updates_total{aether_spire_identity="node",aether_spire_update="rotated"}
    

    queryType=range, stepSeconds=60, T0 → T0+8h, then count positive step-ups per node.

    Three things will produce a wrong number if not handled:

    1. The counter resets twice. The churn schedule rolls aether-agent at T0+72m and
      again in the TRIPLE at T0+5h. Each roll is a new agent process: rotated returns
      to 0 and the node's SVIDs re-enter as initial. So do not use
      increase(...[8h]) — walk the range and sum positive deltas within each generation,
      naming the two reset timestamps. Expected observable count is therefore fewer than
      the 4 nominal cycles
      , because each roll restarts the counting clock (not SPIRE's
      actual rotation clock).
    2. A spire-agent restart re-mints SVIDs and counts as rotated (the rev219 finding).
      Exclude those minutes. Two instruments, use both:
      • in-band: any minute where aether_agent_spire_stream_failures_total{node=…} appears
        or increments;
      • out-of-band: kubectl --context talos-main -n spire-system get pods -o wide at T0
        and at grade, comparing RESTARTS and AGE per node.
        ⚠️ kube-state-metrics is not available on this Prometheus —
        count(kube_pod_container_status_restarts_total) returned no data at 18:14Z.
        Any restart check written as PromQL will silently return "no data", which reads as
        clean. Restarts come from kubectl, full stop.
        Baseline at 18:15Z: all five spire-agent pods Running, 0 restarts, ages 158–160 m
        (started ≈15:30Z, i.e. before the 17:38Z deploy).
    3. TTL. default_x509_svid_ttl = 4 h ⇒ SPIRE rotates at half-life ≈ 2 h. Confirm
      it is still 4 h at T0 from the spire-server ConfigMap rather than assuming.

    Pass/fail: this is a characterisation, not a gate. Report cadence per node and the
    excluded minutes. A rotation that costs SLI error is the finding; the count itself is not
    pass/fail.

    R3 — Proxy handoff duration distribution (carried from #814 item 7)

    The instrument exists and I confirmed it live. Exported names (OTLP → Prometheus renames
    dots to underscores and appends the unit):

    aether_supervisor_handoff_duration_seconds_bucket{le="1|5|10|30|60|120|300|+Inf", node, job="aether-proxy-supervisor"}
    aether_supervisor_handoff_duration_seconds_count
    aether_supervisor_handoff_duration_seconds_sum
    

    Only labels are node and job. Explicit bucket boundaries are 1, 5, 10, 30, 60, 120, 300 seconds — at 7 buckets these are far too coarse for a 16–34 s question
    (everything interesting lands in the single 10 < x ≤ 30 bucket). Do not use the
    histogram buckets or histogram_quantile for this.

    Use _sum with _count == 1 instead — it is exact. Each proxy pod is a fresh
    supervisor process, so after its first (and normally only) handoff, _count == 1 and
    _sum is that handoff's duration to the millisecond. Measured at 18:11Z, from the
    17:38Z deploy, _count = 1 on all five nodes and _sum =

    node handoff
    main-worker-01 3.011 s
    main-worker-02 18.012 s
    main-worker-03 2.014 s
    main-worker-04 3.019 s
    main-worker-05 2.023 s

    (Resolution is ~1 s — the values are admin-probe-poll-quantised, so 18.012 means "between
    the 17th and 18th poll", not 18.012 ± 0.001.)

    Procedure: at T+90 s after each of the 6 proxy rolls (T0+60m, and the five
    following ones incl. the TRIPLE), read per node:

    aether_supervisor_handoff_duration_seconds_count
    aether_supervisor_handoff_duration_seconds_sum
    

    Duration for that generation = _sum when _count == 1; if _count > 1 (an in-place
    hot restart happened too) use Δ_sum / Δ_count and say so. That yields 30 samples
    (6 rolls × 5 nodes)
    — the per-roll distribution #814 asked for and never got.

    ⚠️ The series carries only node, so during a handoff the outgoing and incoming
    supervisor collide on the same series. The T+90 s offset exists to be clear of that;
    a _count that is still moving is not a final number.

    Pass/fail expectation: band 2–20 s from the two runs we now have age-matched
    values for. Flag any sample > 30 s (the rev216 worker-02 34.4 s outlier, unexplained)
    and any sample that lands in the le="60" bucket or beyond. Pair every outlier with:

    aether_supervisor_shutdown_branch_total          # seeded: all 4 branches = 0 on all 5 nodes at 18:14Z
    aether_supervisor_epoch
    aether_supervisor_ready_transitions_total
    aether_supervisor_admin_probes_total             # ready:server_info ratio, ~14:1 expected
    

    drain_fallback > 0 during a rolling upgrade means the surge replacement never arrived
    (#795) and turns a slow handoff into a defect.

    ⚠️ Absent siblings. aether_supervisor_wedges_total,
    aether_supervisor_config_validation_failures_total and
    aether_supervisor_drain_duration_seconds_* are not in the index at all on this
    build. Report them as "metric absent", never as zero. shutdown_branch by contrast is
    explicitly seeded in code, so its zeros are real zeros.

    R4 — k6 http_req_failed reconciled against source access logs, per node

    Full procedure in §3. This is now a standing reading, not a one-off.

    R5 — NEW: the per-identity SDS stream count on agent_xds (#815 release two)

    Baseline, measured 18:11Z (34 min after the deploy):

    envoy_cluster_upstream_rq_active{aether_cluster="agent_xds"}
    # w01 = 5 · w02 = 3 · w03 = 3 · w04 = 3 · w05 = 3   →   sum = 17
    

    The #842 selector opens one lazy SotW SDS stream per originating identity per node,
    on top of the node's ADS stream. The agent's server cap is
    grpc.MaxConcurrentStreams(1000). Whether this grows under 8 h of churn is unmeasured
    and is a genuine soak question — a stream that is not released when a source identity's
    last pod leaves the node is a slow leak that only a long run with pod churn exposes.

    ⚠️ The trap, stated so the next run does not re-hit it:
    envoy_cluster_upstream_cx_active{aether_cluster="agent_xds"} does not measure
    streams. gRPC multiplexes every stream over one HTTP/2 connection, so it sits flat at 5
    fleet-wide no matter how many streams exist. Use upstream_rq_active.

    ⚠️ Second trap: the series carries only node, so during a proxy handoff the old and new
    Envoy collide and the value transiently doubles. Sample away from rolls.

    Sampling plan:

    • at T0 (the pre-churn baseline);
    • age-matched at T+1800 s after each of the 6 proxy rolls — reuse the exact sample
      points sample-proxy-rss.sh --at-age 1800 already produces, so RSS and stream count
      share a timeline and a leak in one can be cross-read against the other;
    • every 15 min across the whole no-roll window (T0+6h → T0+7h30m) — this is the
      decisive window, because nothing is being created or destroyed, so any slope at all is
      a leak;
    • at grade (T0+8h).

    Report alongside it, so a number has a denominator:

    count by (node) (aether_agent_spire_svid_updates_total{aether_spire_identity="pod",aether_spire_update="initial"})
    

    and the per-node distinct-ServiceAccount count from kubectl -n aether-test get pods -o wide.

    Pass/fail expectation:

    • PASS — per-node value stays bounded by 1 (ADS) + number of distinct originating ServiceAccounts with managed pods on that node, i.e. roughly ≤ 12 on w01 and ≤ 10
      elsewhere; and slope across the 90-minute no-roll window is zero; and the grade-time
      fleet sum is within ~2× of the 17 measured today.
    • FAIL (leak) — any positive slope sustained across the no-roll window, or a value
      that does not fall back after the SHRINK (svc-5 4→0→4) removes an identity's pods.
      A leak that survives an identity's last pod leaving the node is the specific defect.
    • Headroom note, not a gate: even ~12/node is ~1.2% of the 1000-stream cap; the
      finding would be the shape, not the absolute number. Say that explicitly so a "17/1000,
      fine" headline does not bury a leak.

    3. The k6 / access-log reconciliation — what, why, and the procedure

    What is being reconciled against what

    Two independent counts of the same failures, from the two ends of the same hop:

    • k6's http_req_failed, per runner pod. One runner per node (DaemonSet), so runner
      pod ⇒ source node. It exists only in the end-of-test summary — k6 publishes nothing
      to Prometheus here — and the runner restarts once after exiting, so the summary is in
      kubectl logs --previous.
    • the source-reporter access log of the node-local aether-proxy, i.e. the very
      proxy that k6's request traverses first.

    Why they disagreed on rev226

    The rev226 table is 107/107, 9/9, 22/148, 10/140, 10/264 — ~510 failures produced no
    access-log line at any proxy.
    The reason a missing line is meaningful at all is a
    config fact I re-verified in source today:

    • logWorthyFilter() logs a line on any response flag OR status ≥ 500
      (accessLogMinStatus = 500), plus a SuccessSampleRate sample of everything else;
    • AccessLogSuccessSampleRate defaults to 100 (agent/internal/cmd/root.go:191) and
      the live release does not override it (helm get values shows only
      accessLogsEnabled: true).

    So every non-probe request that reaches an HCM is logged, successes included. I
    confirmed this against live data at 18:07Z — prober success lines with
    response_code: "200", response_flags: "-" are present, ~2,990 lines / 5 min / node
    = 9.98/s, exactly the 10/s per node the mesh_dns tier drives. Therefore "no access-log
    line" really does mean "no Envoy HTTP stream ever existed"
    , and the residual is a
    statement about the data path, not about log verbosity.

    Four hypotheses fit the residual. They are separable:

    • H1 — refused dial at the outbound listener. The socket is gone during the
      source node's own proxy roll; k6's 60 VUs each eat a connection refused with no stream,
      hence no log. This is the proxy DaemonSet roll: ~1.4 s of connection_error on one node's egress during the pod handoff (36 prober errors on w01, rev225 deploy) #823 story, and it is why the prober is the wrong instrument
      for handoff cost: it rides a single keep-alive connection and sees one event where k6
      sees 60.
    • H2 — k6-side DNS failure during one of the 3 mesh-dns rolls. k6 resolves
      *.aether.internal itself; a failed resolve never produces a request. Weak prior: the
      prober's dns_* classes have been zero on every recent run, but the prober's resolve
      path is not k6's.
    • H3 — access-log ingest loss. ~300 req/s × 5 nodes at 100% sampling ≈ 8.6 M lines
      over 8 h
      , plus ~288 k prober lines per node. If VictoriaLogs or the collector shed, the
      "unlogged" residual is a measurement artifact. This must be excluded before any
      data-path conclusion is drawn
      — see C1.
    • H4 — a 4xx with no response flag, which k6 counts as failed (its default expected
      range is 200–399) but which is below accessLogMinStatus = 500 and carries no flag, so
      it is not log-worthy. Narrow, but it is a real hole in the filter and it would show up
      as unlogged.

    The exactly-zero/126–254 split across five identically-rolled nodes is the open question,
    and none of the above yet explains why w01 and w02 sit at exactly 0.

    The procedure that settles it

    Step 0 — one additive harness change, before T0. The current
    e2e/soak/k6-mesh-soak.js cannot answer this: k6's text summary aggregates across tags,
    so error_code is invisible. Add per-class Counters plus handleSummary emitting JSON
    to stdout:

    import { Counter } from 'k6/metrics';
    const failDNS  = new Counter('fail_dns');    // error_code 1100–1199
    const failDial = new Counter('fail_dial');   // 1200–1299 (1211 = connection refused)
    const failTLS  = new Counter('fail_tls');    // 1300–1399
    const failTO   = new Counter('fail_timeout');// 1000–1099 incl. request timeout
    const fail5xx  = new Counter('fail_http_5xx');
    const fail4xx  = new Counter('fail_http_4xx');

    This adds no load and does not change the request profile — it only classifies failures
    that already happen. Without it, H1/H2/H4 cannot be separated and the reconciliation
    produces another unexplained residual.
    Flag it as a precondition for the run, not a
    nice-to-have.

    Step 1 — k6 side, after the runners self-exit (~T0+8h26m, never at T0+8h sharp):

    for p in $(kubectl --context talos-main -n aether-test get pods -o name | grep k6-soak-loader); do
      echo "== $p"; kubectl --context talos-main -n aether-test get "$p" -o jsonpath='{.spec.nodeName}{"\n"}'
      kubectl --context talos-main -n aether-test logs --previous "$p" \
        | grep -E 'http_req_failed|http_reqs|iterations|dropped_iterations|fail_(dns|dial|tls|timeout|http_)'
    done

    Record per node: http_reqs total, http_req_failed count and rate, dropped_iterations,
    and the six class counters.

    Step 2 — access-log side, per node, over exactly T0 → T0+8h. Field names confirmed
    live at 18:07Z: node_name, pod_name, reporter, response_code,
    response_flags, upstream_cluster, upstream_transport_failure_reason, x_request_id.

    Failures attributable to k6 (and only k6 — pod_name on a source line is the source
    pod, which is what excludes the prober's 10/s):

    log_name:"aether_access_logs" AND reporter:"source" AND pod_name:"k6-soak-loader*"
      AND (response_flags:!"-" OR response_code:>=500 OR response_code:>=400)
    | stats by (node_name) count() as failures
    

    Break down the mechanism in the same pass:

    log_name:"aether_access_logs" AND reporter:"source" AND pod_name:"k6-soak-loader*"
      AND (response_flags:!"-" OR response_code:>=400)
    | stats by (node_name, response_flags, response_code, upstream_transport_failure_reason) count() as n
    

    Step 3 — subtract, per node. unlogged = k6 http_req_failed − access-log failures.
    Then attribute the residual with the Step 1 class counters:
    fail_dial ≈ unlogged ⇒ H1; fail_dns ≈ unlogged ⇒ H2; fail_4xx non-zero with
    no matching log line ⇒ H4. A residual that matches none of them ⇒ H3 or something
    genuinely new, and it gets reported as unexplained rather than attributed.

    Step 4 — place the residual in time. For the nodes with a non-zero residual, bucket
    the k6 failures against the roll timeline (the 6 proxy rolls, 2 agent rolls, 3 mesh-dns
    rolls, TRIPLE, SHRINK) using the 1-minute access-log histogram as the clock:

    log_name:"aether_access_logs" AND reporter:"source" AND pod_name:"k6-soak-loader*"
      AND (response_flags:!"-" OR response_code:>=400)
    | stats by (_time:1m, node_name) count() as n
    

    If the unlogged residual is H1, the k6-side classes concentrate in the ~20–30 s windows
    around that node's own proxy roll. That would also answer the w01/w02-exactly-zero
    question — or refute it, which is just as useful.

    Controls, without which this reading is worthless

    C1 — ingest completeness (excludes H3, and this is the one that can invalidate the whole
    reconciliation).
    Since sampling is 100%, the count of all k6 source lines must
    approximately equal k6's own http_reqs per node (nominal 60/s × 28,800 s ≈ 1,728,000):

    log_name:"aether_access_logs" AND reporter:"source" AND pod_name:"k6-soak-loader*"
    | stats by (node_name) count() as lines
    

    Plus the pipeline's own drop counters over the window:

    increase(vl_rows_dropped_total[8h])
    increase(vl_too_long_lines_skipped_total[8h])
    increase(vl_errors_total[8h])
    increase(otelcol_exporter_send_failed_log_records_total[8h])
    increase(otelcol_receiver_refused_log_records_total[8h])
    changes(process_start_time_seconds{job="victorialogs-nas"}[8h])
    

    If lines is materially below http_reqs, or any drop counter moved, the residual is
    ingest loss and the reconciliation is UNGRADEABLE
    — report it as such and do not
    attribute the residual to the data path.

    C2 — the query is not vacuous. The same failure query with pod_name:"prober*" must
    return a non-zero, independently-known count (the prober's own http_error/timeout
    counters). If both k6 and prober filters return zero, the filter is broken, not the mesh.

    C3 — runner completeness. All 5 runners must have completed (0 restarts during the
    window, 1 restart after exit is clean completion by policy). A missing summary means
    that node's row is "not measured", never 0.


    4. Vacuity register — readings whose gate could not fail

    Per the #853 lesson (a lint gate that linted zero files) and the "absent counter reads as
    no series" trap. Each row below is a claim the report might make, and the control that
    makes it falsifiable.

    Claim Why it could be vacuous Control that must accompany it
    "0 restarts" via PromQL kube-state-metrics is absent — count(kube_pod_container_status_restarts_total) returned no data at 18:14Z. Any kube_pod_* restart query silently reads as clean. Restart counts come from kubectl get pods RESTARTS/AGE only. Never from PromQL.
    "dns_error/dns_nxdomain/dns_timeout were zero" Those series do not exist when never incremented; a broken selector looks identical aether_probe_requests_total{tier="mesh_dns",result!="success"} must return the classes that did occur (today: http_error and timeout on both targets). Zero other classes returned ⇒ selector suspect
    "unchanged never fired" The precondition may never have occurred Pair with aether_agent_spire_stream_failures_total / _reconnects_total — both currently absent, so these are appearance-tested. No stream failure ⇒ "not exercised", not "never fires"
    "no supervisor wedges / no config rejections / no drain fallback" aether_supervisor_wedges_total, ..._config_validation_failures_total, ..._drain_duration_seconds_* are absent from the index entirely Only aether_supervisor_shutdown_branch_total is code-seeded (verified: 4 branches × 5 nodes, all 0, 18:14Z). Its zeros are real; the other three are "metric absent"
    "SDS stream count is fine" upstream_cx_active is flat at 5 by construction and would read as "no growth" forever Must use upstream_rq_active; and the no-roll-window slope, not the endpoint value, is the gate
    "handoffs were in band" The histogram's coarse buckets put 10–30 s in one bucket, so a 29 s and a 11 s handoff are indistinguishable Use _sum with _count == 1 per generation, 30 samples
    "no alerts fired" A dead Alertmanager is indistinguishable from a quiet one; there is still no healthchecks.io canary The AetherAlertingDeadMansSwitch heartbeat must be shown to have fired inside the graded window. Slack renders −03; convert before quoting
    "collector was flat" A dead sampler is flat too Show the instrument responded — the TRIPLE should move working-set/RSS within 2–4 min, as it did across 926 samples on rev226
    "~510 failures were unlogged" Could be ingest loss Control C1 above
    "envoy_cluster_ssl_fail_verify_san_total was zero" (#829) A cleared/absent series after a proxy roll reads as zero Confirm a live sibling — envoy_cluster_ssl_handshake_total and ssl_session_reused_total non-zero on the same node in the same window. And isolate #829 by upstream_transport_failure_reason:"CERTIFICATE_VERIFY_FAILED", not by response_flags:"UF" (which overcounted by 12 on rev226)

    5. What I judge not answerable as currently specified

    • The k6 failure-class split cannot be obtained from the harness as it stands. Without
      the §3 Step-0 script change, H1/H2/H4 are indistinguishable and the reconciliation will
      produce another unexplained residual. This is the single blocking precondition.
    • unchanged (R1) may well come back "not exercised" rather than answered. Nothing in
      the churn schedule induces a broker-socket blip without agent re-attestation. If an
      answer is actually wanted this run, it needs a deliberate, separately-authorised
      stimulus; it is not in scope for the standing rollout authorization and I have not
      assumed one.
    • The rev226 "unlogged" figures cannot be re-derived retrospectively — the access-log
      retention window has long passed. The reconciliation starts fresh from this run's T0.
    • Per-attempt attribution inside a failing request remains impossible: the access log
      has no attempt field (the open caveat from the rev226 Back-to-back proxy rolls make pods serve another workload's SVID (three nodes, 65s, silent) #829 work).

    Every figure above traces to a query run 2026-09-20 18:07–18:15Z, or is labelled as a
    reference value carried from a named prior run record. Nothing in this comment was
    inferred from a remembered sample.

  3. bpalermo commented on Sep 20, 2026

    @bpalermo
    OwnerAuthor

    Proof for correction (a) in the plan above — the #842-fix build is helm revision 230, and
    229 is the rollback, so "rev229" currently names the wrong release:

    $ helm --kube-context talos-main history aether -n aether-system --max 6
    REVISION  UPDATED                   STATUS      CHART                                                   DESCRIPTION
    225       Sat Sep 19 17:33:48 2026  superseded  aether-0.92.28-e4af095…                                 Upgrade complete
    226       Sat Sep 19 20:00:10 2026  superseded  aether-0.92.29-cff8beb8…                                Upgrade complete
    227       Sun Sep 20 10:44:48 2026  superseded  aether-0.92.33-91c34cd2…                                Upgrade complete
    228       Sun Sep 20 13:03:41 2026  superseded  aether-0.93.0-297db48a…                                 Upgrade complete
    229       Sun Sep 20 13:13:27 2026  superseded  aether-0.92.33-91c34cd2…                                Rollback to 227
    230       Sun Sep 20 14:38:46 2026  deployed    aether-0.93.1-8d0d5da683f7055acebf5f9d3318f10b82ce81e0  Upgrade complete
    

    Revision 229 is the 13:13:27Z rollback to 227 after the rev228 #842 failure — i.e. it is
    0.92.33, the build without the fix. The build carrying PR #865 that the soak will run
    against is rev230 / 0.93.1-8d0d5da6, applied 14:38:46 -03 = 17:38:46Z, matching the
    17:38:44Z deploy time in the brief.

    Filing the upcoming run as "rev229" would point at the rollback. It should be rev230.

  4. bpalermo commented on Sep 23, 2026

    @bpalermo
    OwnerAuthor

    rev234 run (2026-09-22, T0 17:07:18Z) — item 4 answered, and this time it reconciles at 100%

    A VictoriaLogs query path now exists. The datasource is registered as victoriametrics-logs-datasource, not Loki, so the Loki tooling does not reach it; it is queryable with LogsQL through the Grafana datasource proxy:

    /api/datasources/proxy/uid/victorialogs/select/logsql/query
      ?query=log_name:aether_access_logs ... | stats by (node_name, reporter, response_code, response_flags) count()
      &start=<T0>&end=<T0+8h>
    

    Item 4 — k6 ↔ access-log reconciliation, per node

    node reporter response_code response_flags count
    main-worker-01 source 504 UT 31
    main-worker-03 source 504 UT 2

    k6 reported 31 failures on one runner and 2 on another, 33 total across 9,180,004 requests.

    33 = 33. Zero unlogged. Contrast rev226, where ~510 failures produced no access-log line at any proxy. Whatever caused that gap, it did not occur here.

    The residual is ONE episode

    All 33 share an authority — svc-3.aether-test.aether.internal:18081 — and all 33 fall in a single 10-minute bucket, 2026-09-22T22:00:00Z. The churn log:

    2026-09-22T22:07:18Z CONCURRENT triple begin
    2026-09-22T22:07:19Z ROLLED aether-test/deployment/svc-3
    2026-09-22T22:07:19Z ROLLED aether-system/daemonset/aether-proxy
    2026-09-22T22:07:19Z ROLLED aether-system/daemonset/aether-agent
    

    So the entire residual of the run is the TRIPLE at T0+300m: source proxies timing out upstream to the very service being rolled, while the agent and proxy roll underneath them. Graded as its own episode, per this issue's instruction, the steady-state k6 error rate for the run is zero.

    mixed-svc — the new proposal-037 multi-protocol target — contributed no failures.

    This confirms the prober-blindness claim in this issue

    The prober recorded 0 errors across all 2,159,996 probes for the same window, including this episode. A 33-request, 10-minute upstream-timeout burst was completely invisible to it. That is the structural blindness described above (single keep-alive connection vs k6's 60 VUs), now demonstrated rather than inferred.

    It also found a real bug in the classifier — see #887

    Those 33 were 504 responses, yet k6 filed them under other, not http_5xx. classify() traps its status checks inside the ec === 0 branch, so they are unreachable whenever k6 assigns a non-zero error_code — which it does for HTTP error responses. The residual of the last two soaks was never mysterious; it was misfiled. Being fixed in #887.

    Item 1 (#806, does unchanged ever fire over 8h?) — YES

    Answered by testing for the series' appearance, per this issue's own warning:

    sum(aether_agent_spire_svid_updates_total{aether_spire_update="unchanged"})
    17:00Z 39 → 0 (agent-roll reset) → 22:00Z 52 → 0
    

    It fires repeatedly. And the series is present at value 0 between bursts, meaning the counter is seeded — so a zero reading there is meaningful, unlike the unseeded udp_unsupported in #882.

    Correction: the aged-RSS band in this issue is stale AGAIN

    This issue replaced the July "90–110 MiB" band with rev226's 173–282 MiB. Age-matched samples at T+1800s since then:

    run range
    rev226 (this issue) 173–282 MiB
    rev231 70–87 MiB
    rev234 74–97 MiB

    The drop happened between rev226 and rev231. Grading against 173–282 would now hide a 3× regression. Suggest recording the band per-build rather than pinning a number that has been wrong three times.

    Still open

    • Item 2 — SVID rotation cadence excluding spire-agent restart minutes. Not separately measured this run.
    • Item 3 — proxy handoff duration distribution. Not collected this run.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

  5. bpalermo commented on Sep 27, 2026

    @bpalermo
    OwnerAuthor

    Items 1–3 answered from the 2026-09-26 rev239 soak (window A, 13:16–21:16Z) and the running 2026-09-27 rev242 soak (window B, from 09:55Z). Item 4 follows at today's grade.

    1. Does unchanged ever fire over 8 h? Yes — once, fleet-wide, and not via the path #806 assumed. Window A: aether_agent_spire_svid_updates_total{aether_spire_identity="pod",aether_spire_update="unchanged"} rose 0 → 61 between 16:05:00Z and 16:05:30Z (w01 15, w02 11, w03 10, w04 13, w05 12 = every subscribed pod at once), coinciding with spire-server JWT key prepared at 16:05:00.93Z: a trust-bundle change makes the broker re-send the same SVID bytes. No stream failure was involved (_stream_failures_total has no series on w01–w04 for that agent generation; w05's 14 were flat from the generation's first scrape). The X509 CA events (activated 14:43Z, prepared 18:43Z) did not trigger it. Window B: 0 so far, readable (the series are seeded at 0 on all nodes); the next JWT-key prepare is due ~16:05Z today, inside the window — prediction: ~1 unchanged per pod then. Caveats: identity="node",update="unchanged" can never fire (bridge.go uses initialOrRotated) — a zero there is vacuous; the stream-failure → re-subscribe → unchanged path itself is still unexercised (needs a broker-socket blip without re-attestation).

    2. SVID rotation cadence: ~1 h 50 m per pod, i.e. 4–5 rotations per 8 h, not the nominal 4. No spire-agent restarts in either window (all 5 at rc=0 since 09-20), so nothing to exclude. Window A: 240 pod rotations from the counter (summed per agent generation with max_over_time, never increase across a roll) = 240 "pod SVID rotated" log lines exactly; 35 long-lived pods rotated 5× each, intervals 109.4–109.9 min; default-SA pods 4× at ~109.3 min. Node identity: 4 per node, all nodes within the same 2-minute step (13:42, 16:22, 18:12, 20:08Z; the 2 h 40 m gap is the 14:28 agent roll re-minting). Window B: 89 rotations = 89 log lines, 41 pods with two rotations 1 h 48–51 m apart. The SDS-gauge cross-check explains the ~260–283 changes() I saw: it is bimodal — originating-client identities (aether_agent, prober, mp_dialer, default, …) change in bursts of ~12 at every svc roll (258–283 over 8 h), every other secret 5–18 = rotations + one per proxy roll (echo on w02: 11 = 5 rotations + 6 proxy rolls). The originators' version gauge is not a rotation signal (filed separately).

    3. Handoff duration distribution: nothing above 21 s in 45 handoffs; the rev216 34.4 s outlier did not recur. aether_supervisor_handoff_duration_seconds measures fork → admin LIVE: window A 30/30 captured, min 2.35 / p50 3.08 / p90 4.02 / max 4.04 s; window B (15 so far) min 4.01 / p50 4.27 / p90 6.21 / max 6.28 s. From the logs, fork → starting workers 2.2–3.5 s (A) / 3.2–6.0 s (B); pod Ready at +18.0 s every time (the gate); fork → shutting down parent after drain 17.1–18.4 s (A, median 17.65) / 18.2–21.0 s (B, median 18.95); overlap ≈ 14.95 s. Whether the rev216 band measured the same thing as today's metric was not re-derived. Two side observations filed as their own issues: rev242 reaches starting workers 1–2 s later than rev239, and on rev242 7 of 15 old supervisors got SIGTERM mid-handoff 6–11 s after the fork, before the successor's +18 s readiness gate (once in 30 on rev239).

  6. bpalermo commented on Sep 27, 2026

    @bpalermo
    OwnerAuthor

    Item 4 (k6 / access-log reconciliation) is done on the rev242 proving QUIC soak (2026-09-27, T0 09:55:25Z), and item 1 was confirmed on the same run.

    Item 4 — exact. k6 (5 loaders, logs --previous after they exited on their own at 18:25Z): http_reqs=9,179,950 failed=1,154 (1.26e-4). Source-proxy access logs, reporter=source, UA k6, over the same 8h30m:

    class count
    503/NC (svc-1 521, svc-2 539, all inside 09:54:32–43Z) 1,060
    504/UT (svc-3, the triple) 92
    503/UC (twins, destination rolls) 2
    sum 1,154

    Zero unaccounted. Total k6 source lines 9,192,083 across the six k6 targets (svc-1..4, mixed-svc, echo), i.e. logging is complete. The 74 200/DC + 11 0/DC lines on the twins are not in k6's count, so DC on a completed response is not a client failure and must not be graded as one (#1009).

    Item 1 — confirmed. aether_agent_spire_svid_updates_total{aether_spire_update="unchanged"} stepped 0 → 60 at 16:05:30–16:06:15Z, one per subscribed pod (15/11/9/14/11 by node), at the JWT-key prepare, as predicted.

    The 1,060 NC are one defect with a clear mechanism, filed as #1008; it blocks #979.

    Closing: everything this issue owed has been read.

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

Metadata

Metadata

Assignees

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