Skip to content

Size Prow job memory requests from observed usage - #1183

Merged
railgrid-prow[bot] merged 1 commit into
railgrid:mainfrom
mjudeikis:prow-job-sizing
Nov 17, 2026
Merged

railgrid-prow[bot] merged 1 commit into
railgrid:mainfrom
mjudeikis:prow-job-sizing

Conversation

@mjudeikis

Copy link
Copy Markdown
Contributor

Why

Pull request jobs have been waiting 1–2 hours for a pod when several runs overlap. The three dev nodes hold about four job pods at a time, and what limits that is memory requests: most jobs ask for 6Gi but peak well below it, so the nodes are 76–94% requested while only 45–66% used.

What changes

Each job's memory request is now its highest observed working set, rounded up. The numbers come from the dev cluster's Prometheus (pod-level working set, last 4 days, about 25 runs per job).

Job Request before Request after Observed peak
contracts 2 CPU / 3Gi 1 CPU / 512Mi 0.9 CPU / 0.4Gi
portals 2 / 4Gi 2 / 2Gi 1.7 / 1.3Gi
e2e-infrastructure-templates 4 / 6Gi 3 / 3Gi 2.9 / 2.4Gi
test-providers, e2e-providers, e2e-ssh, images 4 / 6Gi 4 / 4Gi 3.5–3.7Gi
test, e2e-standalone, e2e-oidc, e2e-external-kcp, e2e-edges-connectivity, e2e-cli 4 / 6Gi 4 / 5Gi 4.1–4.9Gi

A full run goes from 83Gi to 61.5Gi of memory requests.

Not changed:

  • CPU on the large jobs. They are throttled at their 4-CPU limit in 54–77% of periods, so fewer CPUs would only make them slower.
  • lint. It peaks at 8.0Gi, which is its limit.
  • build. Its 4Gi request already matches its 3.4Gi peak.
  • Memory limits, except on the three jobs whose request dropped sharply: contracts 4Gi → 2Gi, portals 6Gi → 4Gi, e2e-infrastructure-templates 10Gi → 6Gi.

The CPU limit still equals the CPU request on every job.

Effect

None on its own while plank.max_concurrency in railgrid/ops stays at 4. It makes room for a higher value once the cluster has the CPU for it; today the nodes are CPU-contended during bursts, so that should wait for the extra CI nodes.

Testing

  • hack/ci/test_workflows.py passes.
  • This PR's own run uses the new requests, since Prow reads .prow.yaml from the PR head.

Memory requests decide how many job pods the three dev nodes hold at once.
Most jobs asked for 6Gi and peaked at 3.4-4.9Gi over four days of runs, so a
full pull request run asked for 83Gi and the nodes ran about four jobs at a
time. Each request is now the job's highest observed working set rounded up
(61.5Gi per run).

CPU is unchanged for the jobs that are throttled at 4 CPUs. contracts and
e2e-infrastructure-templates never used theirs and ask for fewer. lint peaks
at its 8Gi limit and is left alone.
@mjudeikis

Copy link
Copy Markdown
Contributor Author

/retest
/Approve

@railgrid-prow

railgrid-prow Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mjudeikis

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@railgrid-prow
railgrid-prow Bot merged commit 8aee1ed into railgrid:main Nov 17, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant