Bump Woodpecker agent parallel workflows from 1 to 4 #194
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-platform#194
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Discovered during incident #184 session — 6 simultaneous merges queued for ~24 minutes with single-pipeline capacity.
Repo
forgejo_admin/pal-e-platformUser Story
As a platform operator
I want CI pipelines to run concurrently
So that burst merge operations don't serialize into 20+ minute queues
Context
Archbox has 12 CPU cores and 128GB RAM. Current utilization: 15% CPU, 18% memory. The Woodpecker k8s agent runs at
MAX_WORKFLOWSdefault of 1, meaning one pipeline at a time globally across all repos.A typical pipeline (clone + test + Kaniko build) uses ~1-2 CPU and ~1GB. Running 4 concurrently would use ~6 CPU and ~4GB — still under 50% node utilization.
The bottleneck is artificial. The node has headroom for 4+ concurrent pipelines without contention.
File Targets
Files to modify:
terraform/main.tf— addWOODPECKER_MAX_WORKFLOWS = "4"to agent env block (line ~779)Files NOT to touch:
replicaCount— stay at 1, more replicas adds complexity without benefit at this scaleAcceptance Criteria
WOODPECKER_MAX_WORKFLOWS=4in agent Helm valuestofu planshows only agent env changeTest Expectations
tofu validatepassestofu plan -lock=falseshows single Helm release changetofu plan -lock=falseinterraform/Constraints
tofu planmust include-lock=falseChecklist
Related
project-pal-e-platformScope Review: READY
Review note:
review-432-2026-03-26Scope is solid — single env var addition to agent Helm values block at terraform/main.tf:779. File target verified, traceability complete (story:superuser-deploy, arch:ci-pipeline), no blocking dependencies. #191 touches the same block but different env vars — rebase if it merges first.