Skip to content

chore(chart): the dispatcher's grace period and memory, measured (#820) - #1353

Merged
athvin merged 1 commit into
mainfrom
chore/820-dispatcher-measured
Nov 28, 2026
Merged

athvin merged 1 commit into
mainfrom
chore/820-dispatcher-measured

Conversation

@athvin

@athvin athvin commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Closes #820

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

The dispatcher block in values.yaml records the measured grace drain and memory peak beside the settings they justify. No setting changes.

#820: #645's 60s grace and 256Mi/768Mi were argued from mechanism; the ticket asks for a measurement, recorded in the comment.

Proof

Measured on er-dev ci, 2026-11-28 14:34–14:47 UTC:

  • Memory. The dispatcher's cgroup working set (memory.current − inactive_file), sampled every 3s by kubectl exec, over run_all_full at S (63s wall), M (58s) and L (107s, runner-l c5ad.4xlarge), plus a fourth run with the restart below. Peak 8.5 MiB on every dispatcher pod the window saw (5 pods, as deploys and the restart rolled it; ~5,200 samples).
  • Grace. kubectl rollout restart deploy/er-dispatcher at 14:46:08 while ingest was running; new pod serving at 14:46:12; the run settled succeeded in 52s with all eight stages succeeded and launches == 1; the org's job list then held no running/dispatching job (8 succeeded, and one failed from 2026-11-27 — the pre-run_all_full fails at init on a lake behind the catalog — the job does not reconcile the lake first #1288 stale-lake error, before this window).

Risk & rollback

Comments only. git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:24d16c2e-fec6-49d8-9797-060338df4848 on brians-MacBook-Pro · 2026-11-28T22:20:32Z

  • main is green with this change on it — the merge SHA, and the run
    that proves it. A later head SHA with this commit as an ancestor counts;
    a cancelled run with zero jobs does not: — abe153c, rust 46193244848 + frontend 46193244834 success
  • images built, or correctly never ran because nothing that goes into
    an image changed: — success, run 46193244865 (a chart-values comment, no code change)
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion: — run 46193261519 success; the settings are unchanged, only their comments
  • the push-only surface no pull request can pre-test (deploy, drift,
    kind's nightly leg) is green, or knowingly red for a reason that is not
    this change: — infra, devcontainer success on abe153c
  • the board card reached Done through the automation rather than by
    hand, and the issue closed: — Verify the dispatcher's reduced resources under load (grace 60s, memory 768Mi) #820 CLOSED by chore(chart): the dispatcher's grace period and memory, measured (#820) #1353 via automation
  • follow-ups are open for everything deferred here — numbers: — none
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned: — the dispatcher's whole resident set is ~8.5 MiB; a linked-but-unused DuckDB costs nothing resident

Specific to this change

Context — plan, discoveries, measurements, files

Plan

Discoveries

  • The resident cost of linking DuckDB into the multicall image is nil for this arm: 8.5 MiB is the whole process.
  • The window used dev org p3live, resumed for the measurement and suspended again afterwards.

Measurements

Files

🤖 Generated with Claude Code

#645 lowered er-dispatcher's grace to 60s and memory to 256Mi/768Mi by
reasoning. Measured on er-dev: across four run_all_full runs (S, M, L and
one more) the cgroup working set peaked at 8.5 MiB; a rollout restart
mid-ingest was serving again in 4s, the run finished every stage succeeded
with one launch each, and nothing was left dispatching or running. Both
settings stand; the comments now record the measurement.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@athvin
athvin merged commit abe153c into main Nov 28, 2026
44 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 28, 2026 21:46 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — b318bde4 Deployed Nov 28, 2026 by athvin via remove closed PR previews #120
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.

Verify the dispatcher's reduced resources under load (grace 60s, memory 768Mi)

2 participants