CI: Prevent/kill Jenkins k8s agent orphans and unschedulable agent pods - #5024
Open
michaelsembwever wants to merge 2 commits into
Open
CI: Prevent/kill Jenkins k8s agent orphans and unschedulable agent pods#5024michaelsembwever wants to merge 2 commits into
michaelsembwever wants to merge 2 commits into
Conversation
The controller failed its liveness probe and was SIGKILLed, orphaning fifteen agent pods for 40h. Each reconnected every 10s to be refused, and each pinned a whole node against scale-down. jenkins-deployment.yaml: - enable agent.garbageCollection, so a controller restart no longer leaks agent pods; activeDeadlineSeconds cannot tell an orphan from a legitimate 6h microbench build - cap agent-dind-large at the 160 nodes its pool holds. At 200 the surplus pods could never be scheduled, so they churned and drove both large node groups to maxSize - loosen the controller probes, so a stall no longer takes every running build with it - log gc and safepoints to the PVC, to make the next stall attributable run-ci: - refuse to deploy an instanceCap above what the node pools can schedule, read from the cluster-autoscaler status configmap - fail rather than fall back to origin when a branch tracks no remote, since origin carries no dev branches; suggest push.autoSetupRemote - helm --timeout 10m, as --wait's 5m default is now shorter than the startupProbe's boot budget jenkins-check.yaml - fix helm installation patch by Mick Semb Wever; reviewed by TODO for CASSANDRA-TODO Assisted-by: Claude Code:claude-opus-5
driftx
reviewed
Aug 14, 2026
driftx
approved these changes
Aug 17, 2026
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.
node pools can get stuck at max desired size, wasting a lot of resources and $$$
Either the instanceCap goes beyond the node group sizes, and it thrashes, or (for example) the controller fails its liveness probe, gets SIGKILLed, then orphans agent pods forever. Manually trying to scale down the node groups won't help the as the jenkins keeps trying to scale up again…
jenkins-deployment.yaml:
run-ci:
jenkins-check.yaml
patch by Mick Semb Wever; reviewed by TODO for CASSANDRA-21576
Assisted-by: Claude Code:claude-opus-5