Repository navigation
Size Prow job memory requests from observed usage - #1183
Merged
Merged
Conversation
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.
Contributor
Author
|
/retest |
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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).
A full run goes from 83Gi to 61.5Gi of memory requests.
Not changed:
The CPU limit still equals the CPU request on every job.
Effect
None on its own while
plank.max_concurrencyin 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.pypasses..prow.yamlfrom the PR head.