Skip to content

feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535

Closed

Description

@dan-petty

Refreshed plan (2026-10-17, unblocking review)

This section supersedes any text below that conflicts with it.

Decisions

Scope

Delivery

  1. One PR (M), "Fixes feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535". It contains:

Acceptance criteria

  • The chart Application pins argo-helm's argo-workflows chart at an exact version, and the release is registered in _HELM_RELEASES_BY_STACK["infra"]. test_helm_sources_pinned_versions therefore checks its pin, namespace and values file, and devops k8s deploy-stack --stack all installs it.
  • k8s/namespaces.yaml adds argo-workflows with Pod Security restricted and Prune=false,Delete=false.
  • The homelab AppProject lists argo-workflows as a destination.
  • A test asserts that every Application's destination namespace is one its project allows.
  • An offline test checks the controller values:
    • one replica, LEADER_ELECTION_DISABLE=true, and a rollout that never runs two controllers;
    • it watches only its own namespace;
    • no argo-server, no database and no workflow archive;
    • its CRDs are the minimal ones (crds.full: false) with crds.keep: true, and carry the same ServerSideApply=true,Prune=false,Delete=false sync options as Argo CD's;
    • the controller pod has a RuntimeDefault seccomp profile, and the executor's init and wait containers run with allowPrivilegeEscalation: false and all capabilities dropped, so restricted admits every pod.
  • The executor ServiceAccount's Role grants only create and patch on workflowtaskresults, and the template runs as that ServiceAccount.
  • An offline test checks the WorkflowTemplate:
    • it runs the Service image with args ["--version"] only;
    • it has the cluster job template's pod and container securityContext;
    • it has no envFrom, no Secret volume and no Secret env;
    • it sets DEVOPS_CLI_TELEMETRY_ENABLED=false and an activeDeadlineSeconds;
    • finished Workflows and their pods are garbage-collected.
  • An offline test asserts that no object in k8s/argo-workflows/ (rendered with kubectl kustomize) and nothing in the chart's values references Secret devops-cli.
  • deploy-stack applies the WorkflowTemplate after the Helm releases, teardown-stack deletes it, and the dry run lists it.
  • k8s/argo-workflows/networkpolicy.yaml is listed in _MANIFESTS_BY_STACK["infra"], and an offline test checks its rules:
    • ingress only for the metrics scrape from monitoring;
    • egress only to DNS and to the API server on 6443, through an ipBlock that excludes the cloud metadata address;
    • no public HTTPS.
  • The controller's metrics are scraped through a ServiceMonitor, and the Scrape Ownership table names that scrape.
  • The argo CLI pin matches the chart's app version.
  • The ADR records the engine choice (from the research summary below) and the go/no-go thresholds.
  • k8s/README.md gains the install, the measurement procedure and the new directory entries.
  • changelog.d/1535.md exists, and devops docs check and uv run devops ci pass.
  • Cluster checks after Argo CD syncs the merge (an agent may run them on the homelab):
    • both Applications are Synced and Healthy;
    • the controller runs one replica;
    • the argoproj.io Workflow CRDs exist;
    • nothing in namespace devops changed, and roadmap-service is still at 0 replicas.
  • Go/no-go measurement (an agent may run it on the homelab), recorded as a comment on feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535:
    • submit 20 sequential Workflows from the template with the argo CLI (no argo-server), reporting the cold first run separately;
    • submit a burst of 20;
    • record creation-to-Succeeded p50 and p95;
    • record API-server requests per Workflow, from apiserver_request_total (read with kubectl get --raw /metrics) before and after each batch;
    • record the controller's CPU and memory;
    • record the verdict against the thresholds above.
  • Pending a person: after a go, file steps 2-6 with devops roadmap intake --title "<title>" --body-file <file> --confirm, with the dependencies listed in Scope.
  • Pending a person: after a no-go, the owner chooses between re-scoping the engine and the runner-up in the research summary.

Current references

  • devops roadmap subcommands (none is metrics): src/devops_cli/commands/roadmap.py:156-600.
  • The metrics job reads its clone (:631) and GitHub (:634, :641): src/devops_cli/roadmap/run.py:611-645.
  • The eager --version callback: src/devops_cli/main.py:219-224, made eager at :235. The tracer is built only when a subcommand runs: src/devops_cli/main.py:119-124.
  • The telemetry switch: src/devops_cli/config/env.py:83.
  • Cluster job template: securityContext at k8s/devops/cronjob.yaml:30-47, --version at :41, and the devops-cli Secret that step 1 must not mount at :48-50.
  • Application shape: k8s/argocd/apps/argocd-image-updater.yaml:8-33. A path Application: k8s/argocd/apps/otel.yaml:10-13. A path Application that skips the dry run for another Application's custom resources: k8s/argocd/apps/ingress.yaml:27-28.
  • Homelab AppProject destinations, which have no argo-workflows yet: k8s/argocd/apps/projects.yaml:22-38.
  • The devops namespace's restricted labels: k8s/namespaces.yaml:88-98.
  • API-server egress through an ipBlock: k8s/cloudflared/networkpolicy.yaml:43-53.
  • deploy-stack:
    • the argo repository in infra: src/devops_cli/commands/k8s/stack_lifecycle.py:56;
    • chart releases: :79-172;
    • infra manifests: :177-180;
    • the devops restart: :734-739;
    • manifests applied before charts: :1080-1094.
  • Tests:
    • project and destination: tests/test_k8s_argocd_apps.py:52-69;
    • chart pin: :104-142;
    • namespace safety, rendered offline with kubectl kustomize: :277-309;
    • Argo CD's CRD sync options: :332-342.
  • argo CLI pin (v4.1.4 at :112): src/devops_cli/tools_lock/tools.lock:104-125.
  • Container CPU and memory, already scraped: k8s/monitoring/k8s-monitoring-values.yaml:36-37. ServiceMonitors scraped by Alloy: :146-148.
  • Scrape Ownership table: k8s/README.md:151. Roadmap Service suspension notice: k8s/README.md:361-363.
  • docs/adr/ holds 0001-0005.
  • For steps 2-6, these replace the body's stale line references:
    • DEFAULT_DUE_TABLE is src/devops_cli/roadmap/run.py:704 (not :619), with the lanes at :657 and :683 and SERVICE_JOBS at :1035;
    • in src/devops_cli/server/service.py: TriggerBatch at :45, RoundPause at :79, RepoWorker at :130, _tick_loop at :350;
    • DeliveryLRUCache is src/devops_cli/server/routes/webhooks.py:52.

Dependencies and order


Requested by the owner, 2026-10-09:

the services is ultimately going to need to manage both event drive triggers and scheduled tasks in order to integrate well with external services and maintain a consistent picture of state

It would be nice to leverage an existing workflow engine or queue implementation rather than trying to implement our own cleanly

I'm also picturing [...] issue enhancement processes that can truly run in the background without blocking releases and triage, while doing investigation, validation, enhancement, and correlation.

Problem

Checked at release/v0.2.33.

Decision (owner, 2026-10-09)

Proposed design

Install. An Argo CD Application, shaped like k8s/argocd/apps/argocd-image-updater.yaml:

  • argo-helm's argo-workflows chart, pinned at an exact version (2.0.12 / app v4.1.5 on 2026-10-09).
  • workflow-controller only: one replica, LEADER_ELECTION_DISABLE=true, and a rollout that never runs two controllers.
  • No argo-server, no Argo Events and no database. Locks are ConfigMap-based, and the workflow archive is not used.
  • Controller metrics go to Prometheus and traces to the OTel collector.

Jobs as templates (k8s/devops/roadmap-workflows/):

Schedules. CronWorkflows replace the due table's intervals and the 5-minute poll:

  • reconcile every 5 minutes (service.poll_interval_seconds);
  • close, intake and refine hourly;
  • metrics every 15 minutes;
  • reprioritize daily.

Each uses concurrencyPolicy: Forbid plus its lane mutex, and startingDeadlineSeconds so that a run missed during a controller restart is replayed. The due rules that read state (reprioritize.is_due, _intake_due) stay in the jobs.

Events.

GraphQL hold (replaces RoundPause):

  • Every template that spends GraphQL takes a ConfigMap semaphore, github-graphql.
  • A job that finds the budget exhausted sets the limit to 0. It then submits a workflow that suspends until the reset time and restores the limit.
  • The controller re-reads the limit at every check, and a limit of 0 holds every waiter.

State.

  • Task pods mount the existing roadmap-service PVC (local-path, ReadWriteOnce). local-path's node affinity schedules them onto that volume's node, and ReadWriteOnce allows several pods on one node.
  • schedule.json and intake.json are written atomically per job.

Background enhancement lane. One WorkflowTemplate per item, on the enhance mutex and devops-background. It has four steps, each its own retry boundary:

  1. Investigation: refine's research step (code, docs, public search).
  2. Validation: checks the item's file:line references and stated facts against the current release branch, and marks stale ones.
  3. Enhancement: refine's proposal (scope, acceptance criteria, Feasibility).
  4. Correlation: links duplicates and related items, from the embedding neighbours intake already computes.

Its writes are comments and field edits. A second run with no change writes nothing.

Retries. retryStrategy goes only on read-only or idempotent steps. A step that writes to GitHub gets no retry, as backoffLimit: 0 in k8s/devops/cronjob.yaml does today.

Migration, mapped onto open items

Item Change
#1532 (v0.2.33) Ships as the thread split. Its acceptance tests become the lane-mutex checks here, and its worker code is deleted here.
#1534 Its triage lane becomes the triage mutex. If it lands before this item, it extends #1532's lanes.
#1386 A consumer declares its events, its schedules (CronWorkflows) and its lane. Delivery to a consumer is a Workflow submit, so the router needs no dispatch queue or threads.
#1533 Each scoped update is a Workflow on the lane its table names, and the reconcile CronWorkflow is the poll. Its new ADR also records the engine.
#1400 (shipped) RoundPause is replaced by the semaphore.
#1387, #1389, #1395 Later consumers declare a template, a lane and their schedules.

Acceptance criteria

  • Engine install:
    • tests/test_k8s_argocd_apps.py covers the new Application (an exact chart pin, as test_helm_sources_pinned_versions checks).
    • On the cluster, Argo CD syncs it, the controller runs one replica, and the argoproj.io Workflow CRDs exist.
  • Offline rendering tests:
    • Every WorkflowTemplate names exactly one lane mutex, and no release or triage template names the enhance mutex.
    • Every template that spends GraphQL names the github-graphql semaphore.
    • No template whose step writes to GitHub has a retryStrategy.
  • Router test (fake Kubernetes API, no network): a delivery creates exactly one Workflow, named from its delivery ID, before the 2xx; a repeated delivery creates none.
  • Cluster checks (an agent may run them on the homelab):
    • With an enhancement workflow waiting on a slow model, a merged pull request's close workflow starts and finishes within one minute.
    • With the semaphore at 0, GraphQL workflows wait, and they start once it is raised.
  • Deleted: RepoWorker, TriggerBatch coalescing, _tick_loop, RoundPause's wait, DeliveryLRUCache, and the due table's intervals.
  • Docs and changelog:

Feasibility

Does not fit one PR. Proposed split, filed in order when this item is refined:

  1. Install and measure. The controller (Application, values, NetworkPolicy, metrics) and one template (devops roadmap metrics). Measure task start-up time and API-server load on k3s. Go/no-go before step 2.
  2. Release and triage lanes. Templates, mutexes and CronWorkflows; the Service stops running those jobs in-process.
  3. Router submits Workflows. feat(service): one webhook router verifies each provider its own way, parses a typed payload and delivers each event only to the consumers subscribed to it #1386 builds on it; DeliveryLRUCache is deleted.
  4. GraphQL semaphore. RoundPause is deleted.
  5. Background enhancement lane: the four steps.
  6. Cleanup. The hand-rolled worker and the due table's intervals are deleted.

Risks:

  • A pod per task. Start-up takes seconds instead of milliseconds (an estimate, not measured), and k3s's API server sees more churn. Step 1 measures both.
  • No coalescing. N deliveries make N Workflows. Scoped updates must be cheap enough to repeat, and the reconcile CronWorkflow uses concurrencyPolicy: Forbid.
  • At-least-once runs. A retried or replayed step runs again, so steps that write to GitHub stay unretried.
  • The hold is our glue. Setting the semaphore to 0 and back takes a few lines plus a suspend workflow.
  • More to keep current. One more controller and about 8 CRDs; the chart pin is bumped like the others.

Research summary (2026-10-09)

Requirements:

  • events and schedules;
  • one round at a time per repository lane;
  • a global hold until the GraphQL reset;
  • durable queued work;
  • observability;
  • reputable and actively maintained.

Candidates:

  • Argo Workflows (chosen):
    • v4.1.5 and v4.0.13 released 2026-10-09; CNCF graduated; Apache-2.0.
    • Templated mutexes, CronWorkflows and retryStrategy with backoff.
    • ConfigMap semaphores, where a limit of 0 holds every waiter.
    • No database needed.
  • DBOS Transact in-process (runner-up): no new server, but no queue pause and a small community.
  • RQ on Valkey: rq suspend matches the hold, but it needs a persistent Valkey and about 16 worker processes, and its keyed concurrency is unreleased.
  • Not chosen:
    • Temporal and Hatchet: each needs a new Postgres plus 3-6 pods.
    • Argo Events: adds NATS without providing serialization or a hold.
    • Celery, Dramatiq, Taskiq, Prefect, Restate, Inngest, Huey, SAQ, arq, APScheduler 4.

Sources: the argo-workflows docs on synchronization, cron workflows, retries, high availability and telemetry (https://github.com/argoproj/argo-workflows/tree/main/docs), and the argo-helm releases (https://github.com/argoproj/argo-helm/releases).

Related: #1532, #1534, #1386, #1533, #1400, #1387, #1389, #1395.

Activity

  1. added
    type/feature
    scope/k8s
    scope/infra
    scope/roadmap
    on Oct 9, 2026
  2. added this to the v0.2.34 milestone on Oct 10, 2026
  3. added
    priority/p0-critical
    on Oct 10, 2026
  4. dan-petty commented on Oct 10, 2026

    @dan-petty
    OwnerAuthor

    The owner made this P0 on 2026-10-10 ("Turn this refactor into p0 work as it is blocking workflow") and placed it in v0.2.34, with Status Ready.

    This item does not fit one pull request as written, so it will be re-scoped to its first pull request: install the engine and measure, with a go/no-go. The remaining steps will be filed as P0 items in v0.2.34, each saying "Depends on" the step before it. This body will be updated when they are filed.

  5. added
    status/blocked
    on Oct 11, 2026
  6. removed this from the v0.2.34 milestone on Oct 11, 2026
  7. dan-petty commented on Oct 11, 2026

    @dan-petty
    OwnerAuthor

    Blocked by #1562: the roadmap Service's machine account is suspended, and the Service is held at 0 replicas. This item develops the Service or can only be checked on it, so it waits until the account is reinstated or the jobs act as a GitHub App.


    Generated by Claude Code

  8. added this to the v0.2.38 milestone on Oct 17, 2026
  9. changed the title [-]feat(service): roadmap jobs run as argo workflows, with a mutex per repository lane, cronworkflows for schedules, webhook deliveries submitted as workflows, and a background enhancement lane[/-] [+]feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it[/+] on Oct 18, 2026
  10. modified the milestones: v0.2.38, v0.2.39 on Oct 21, 2026
  11. removed
    status/blocked
    on Oct 21, 2026
  12. added a commit that references this issue on Oct 22, 2026
    33fe70f
  13. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1819, merged into release/v0.2.39 as 33fe70f.

    The Argo Workflows controller runs in its own namespace under Argo CD and deploy-stack, with one --version WorkflowTemplate to measure start-up and API-server load for the go/no-go on moving the roadmap jobs onto it. This is step 1 of #1535 (decision D4); steps 2 to 6 are filed after a go.

    22 file(s) changed.

    How it was verified

    Check runs at cdba7ce:

    • Prune PR DevContainer Images: pass
    • Audit Defect PR Hardening: skipping
    • DevContainer Image: skipping
    • Service Image: skipping
    • Tests & Coverage: pass
    • Dependency Freshness: skipping
    • zizmor: pass
    • devops-cli: pass
    • bandit: pass
    • CodeQL: pass
    • Rule Pack Tests: pass
    • Changed-Test Independence: pass
    • Static Analysis: pass
    • Fail-to-Pass Self-Check: pass
    • Analyze (python): pass
    • Fail-to-Pass Check: pass
    • Analyze (actions): pass

    Acceptance Criteria of docs/agent/tasks/task-1535-argo-workflows-controller.md:

    • The chart Application pins argo-workflows at 2.0.13, and the release is registered in _HELM_RELEASES_BY_STACK["infra"], so test_helm_sources_pinned_versions checks its pin, namespace and values file, and devops k8s deploy-stack --stack all installs it.
    • k8s/namespaces.yaml adds argo-workflows with Pod Security restricted and Prune=false,Delete=false, and the homelab AppProject lists it as a destination. A test asserts that every Application's destination namespace is one its project allows.
    • The controller values are checked offline: one replica, no LEADER_ELECTION_* override, a single watched namespace, no argo-server, database or archive, minimal CRDs with crds.keep and Argo CD's sync options, a RuntimeDefault seccomp profile on the controller pod, and an executor securityContext that disallows privilege escalation and drops all capabilities.
    • The executor ServiceAccount's Role grants only create and patch on workflowtaskresults, and the template runs as that ServiceAccount.
    • The WorkflowTemplate runs the Service image with args ["--version"] only, has the cluster job template's pod and container securityContext, has no envFrom, Secret volume or Secret env, sets DEVOPS_CLI_TELEMETRY_ENABLED=false and an activeDeadlineSeconds, and garbage-collects finished Workflows and their pods.
    • Nothing in k8s/argo-workflows/ (rendered with kubectl kustomize) and nothing in the chart's values references Secret devops-cli.
    • deploy-stack applies the WorkflowTemplate after the Helm releases, teardown-stack deletes it before they uninstall, and the dry run lists it.
    • k8s/argo-workflows/networkpolicy.yaml is in _MANIFESTS_BY_STACK["infra"], and a test checks that it admits only the metrics scrape from monitoring, reaches only DNS and the API server on 6443 through an ipBlock that excludes the cloud metadata address, and admits no public HTTPS.
    • The controller's metrics are scraped through a ServiceMonitor, monitoring/networkpolicy.yaml allows that scrape, and the Scrape Ownership entry in k8s/README.md names it.
    • The argo CLI pin matches the chart's app version, and a test ties it to images.tag.
    • ADR 0008 records the engine choice and the go/no-go thresholds, and k8s/README.md gains the install section, the measurement procedure and the directory entries.
    • Pending a person: after Argo CD syncs the merge, devops argo cd apps status argo-workflows and devops argo cd apps status argo-workflows-manifests are both Synced and Healthy.
    • Not done: teardown-stack on a cluster without the Workflow CRDs stops at its first step, the same way the llm ServiceMonitor entry does; the follow-up is #1818.
    • Pending a person: kubectl -n argo-workflows get deploy,pods shows one workflow-controller replica, Running, and kubectl get crd workflows.argoproj.io workflowtemplates.argoproj.io workflowtaskresults.argoproj.io lists the Workflow CRDs.
    • Pending a person: kubectl auth can-i create workflowtaskresults.argoproj.io -n argo-workflows --as=system:serviceaccount:argo-workflows:argo-workflows-executor prints yes, which no offline test can prove, since the Role is the chart's.
    • Pending a person: devops prometheus query 'up{namespace="argo-workflows"}' shows the controller's metrics target at 1 in Alloy.
    • Pending a person: kubectl -n devops get deploy roadmap-service -o jsonpath='{.spec.replicas}' prints 0, and nothing else in namespace devops changed.
    • Pending a person: the first Workflow reaches Succeeded and carries the template's settings, with argo submit --from workflowtemplate/devops-cli-version -n argo-workflows --wait and then kubectl -n argo-workflows get workflow <name> -o jsonpath='{.status.storedWorkflowTemplateSpec.ttlStrategy} {.status.storedWorkflowTemplateSpec.podGC} {.status.storedWorkflowTemplateSpec.activeDeadlineSeconds}'.
    • Pending a person: the go/no-go measurement from the "Measurement" section of k8s/README.md (20 sequential Workflows, then a burst of 20 with seq 20 | xargs -P 20 -I{} argo submit --from workflowtemplate/devops-cli-version -n argo-workflows --wait), recorded as a comment on feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535: the cold first run apart, the warm p50 and p95, the API-server requests per Workflow from apiserver_request_total, the controller's CPU and memory, and the verdict against the thresholds in ADR 0008 (warm p95 of at most 30 seconds from creation to Succeeded, and a burst of 20 with no 429 or 5xx).
    • Pending a person: after a go, file steps 2-6 with devops roadmap intake --title "<title>" --body-file <file> --confirm, each with the dependencies in feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535's scope; after a no-go, the owner chooses between re-scoping the engine and the runner-up in ADR 0008.
  14. added a commit that references this issue on Oct 23, 2026
    f209f6c
  15. dan-petty commented on Nov 7, 2026

    @dan-petty
    OwnerAuthor

    Answer from project standards: this issue closed with no recorded verdict. #3105 (implement as an Argo Workflow with resubmit of one group) waits on a go verdict of ADR 0008. No comment on this issue holds a measured value of the form warm p95 <N> s. The threshold text of ADR 0008 is the only match.

    A person records the verdict here. Use one comment with the measured number and the word go or no-go, for example warm p95 18 s - go.

    The measurement is in k8s/README.md, section Measurement.

    • It uses the batch function with argo submit --from workflowtemplate/devops-cli-version -n argo-workflows --wait.
    • It uses the argo CLI from devops install-tools --tool argo.
    • A jq line prints the warm p50 and p95.

    An agent on the homelab can run the measurement. A person records the verdict.

    The go rule of ADR 0008 has two parts. The warm p95 is at most 30 s over the 19 runs after the first of 20 sequential Workflows. A burst of 20 Workflows gives no 429 and no 5xx.

    Acceptance. Both commands print a line only after the verdict exists. They print nothing today.

    • uv run devops gh api repos/dan-petty/devops-cli/issues/1535/comments --paginate --jq '.[].body' | grep -E 'warm p95 [0-9]+ ?s'
    • uv run devops gh api repos/dan-petty/devops-cli/issues/1535/comments --paginate --jq '.[].body' | grep -E 'warm p95 [0-9]+ ?s.*(go|no-go)'

    Do not build a stage-level Argo change before the verdict.

  16. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    ADR 0008 measurement, run 2026-11-11 (03:36Z to 03:46Z)

    An agent ran the measurement in k8s/README.md, section Measurement on cluster homelab-k3s (k3s v1.37.2+k3s1). It used argo CLI v4.1.5 (the pin in src/devops_cli/tools_lock/tools.lock), controller chart 2.0.13 (app v4.1.5), and WorkflowTemplate devops-cli-version in namespace argo-workflows. The run submitted 40 Workflows: 20 one at a time, then 20 at once. All 40 Workflows Succeeded.

    Value Measured ADR 0008 limit
    Cold run, creation to Succeeded (first sequential Workflow, image pull on hog included) 54 s reported apart
    Warm p50, creation to Succeeded (other 19 sequential Workflows) 10 s not used
    Warm p95, creation to Succeeded (nearest rank, position 19 of 19) 11 s at most 30 s
    Burst p50, creation to Succeeded (20 at once) 14 s not used
    Burst p95, creation to Succeeded 24 s not used
    Change in the 429 and 5xx counter of apiserver_request_total across the burst 0 (177 before, 177 after) must be 0
    argo submit calls that failed with a 429 or a 5xx 0 of 40 (stderr empty, xargs exit 0 for both batches) must be 0
    API-server requests per Workflow, sequential 78.4 ((3681 - 2113) / 20) not used
    API-server requests per Workflow, burst 56.0 ((1363 - 244) / 20) not used
    Controller CPU, peak 2-minute rate of container_cpu_usage_seconds_total idle 2 m, sequential 8.7 m, burst 14.8 m not used
    Controller memory, container_memory_working_set_bytes idle 81.7 MiB, peak 99.9 MiB after the burst (limit 512 MiB) not used

    Raw durations, creation to Succeeded, in seconds, sorted:

    • Sequential: 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 54
    • Burst: 10 10 10 10 11 12 12 12 14 14 23 23 23 24 24 24 24 24 24 24

    Raw counters (apiserver_request_total, all codes and 429 or 5xx):

    Interval Seconds Before After Change
    Sequential batch 259 3980718 / 177 3984399 / 177 3681 / 0
    Idle baseline for sequential 259 3984417 / 177 3986530 / 177 2113 / 0
    Burst batch 26 3986543 / 177 3987906 / 177 1363 / 0
    Idle baseline for burst 26 3987920 / 177 3988164 / 177 244 / 0

    Conditions during the run:

    • All 40 Workflow pods ran on node hog, the only control-plane node. Nodes condor and gemini were Ready but got no pod. Node hawk was NotReady and cordoned. Before the run, no node listed the Service image under a tag; the template uses the untagged image (latest) with IfNotPresent. Thus the first Workflow on condor or gemini pulls the image again. On hog, the cold run took 44 s more than a warm run.
    • In the burst, the controller started each Workflow 0 to 3 s after creation. Ten of the 20 burst Workflows took 23 to 24 s.
    • roadmap-service ran at 1 replica, and the other cluster clients ran as usual. The idle baselines (8.2 and 9.4 requests a second) include their load, so the requests per Workflow are an estimate with that noise.
    • kubectl top (metrics-server) showed 3 m and 85 MiB during the 26 s burst. Its window is longer than the burst, so the table uses the cAdvisor series.

    Commands (bash, from the README section, with timestamps, a kubectl top sampler and stderr capture added):

    counters() { kubectl get --raw /metrics | awk '/^apiserver_request_total/ {all += $NF} /^apiserver_request_total\{.*code="(429|5[0-9][0-9])"/ {bad += $NF} END {print all, bad+0}'; }
    batch() {  # batch <label> <parallelism>
      counters; start=$(date +%s)
      seq 20 | xargs -P "$2" -I{} argo submit --from workflowtemplate/devops-cli-version -n argo-workflows --wait --labels measurement="$1"
      counters; echo "seconds $(( $(date +%s) - start ))"
    }
    batch sequential 1; counters; sleep 259; counters
    batch burst 20;     counters; sleep 26;  counters
    kubectl -n argo-workflows get workflows -l measurement=sequential -o json | jq -r '
      [.items | sort_by(.metadata.creationTimestamp)[] | (.status.finishedAt | fromdate) - (.metadata.creationTimestamp | fromdate)]
      | "cold \(.[0]) s", (.[1:] | sort | "warm p50 \(.[(length * 0.5 | ceil) - 1]) s, p95 \(.[(length * 0.95 | ceil) - 1]) s")'
    # cold 54 s
    # warm p50 10 s, p95 11 s
    kubectl -n argo-workflows get workflows -l measurement=burst -o json | jq -r '
      [.items[] | (.status.finishedAt | fromdate) - (.metadata.creationTimestamp | fromdate)] | sort
      | "burst p50 \(.[(length * 0.5 | ceil) - 1]) s, p95 \(.[(length * 0.95 | ceil) - 1]) s"'
    # burst p50 14 s, p95 24 s

    PromQL (Grafana datasource prometheus, 2026-11-11T03:30Z to 03:52Z, step 30 s):

    sum(rate(container_cpu_usage_seconds_total{namespace="argo-workflows",pod=~"argo-workflows-workflow-controller.*",container!="",container!="POD"}[2m]))
    max(container_memory_working_set_bytes{namespace="argo-workflows",pod=~"argo-workflows-workflow-controller.*",container!="",container!="POD"}) / 1048576
    

    This comment records only the numbers. A person records the go or no-go verdict of ADR 0008 on this issue.

  17. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    warm p95 11 s - go

    The owner recorded this verdict on 2026-11-11 after the measurement in the comment above (warm p95 11 s against the limit of 30 s; no new 429 or 5xx in the burst; 0 of 40 submissions failed). Per ADR 0008, the roadmap jobs move onto Argo Workflows, and the steps after step 1 are filed now under one tracker.

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

    priority/p0-criticalscope/infrascope/k8sscope/roadmaptype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions