Repository navigation
Description
Parent EPIC: #1840
Goal
Decide the minimum capacity of the self-hosted runner setup for the current workload: the smallest server size that keeps the realistic pull-request Test (Docker) job under 15 minutes, and how many runners are needed. Measure the size claim, record the decision and when to recheck it, and update the operations guide. The output is documentation; no workflow or server change is planned.
Background
#2323 deployed one runner, torrust-runner-01 (Hetzner CPX42 class: 8 vCPU, 16 GB RAM, 16 GB swap). The size was chosen partly on the assumption that one server could run several jobs at once, which does not hold with the current tests: two jobs on one Docker host collide on fixed E2E host ports, share the torrust-tracker:local image tag, and share Cargo target directories.
Existing evidence: the realistic PR job took 723 s on 8 vCPU (561 s workspace compile). GitHub-hosted 4 vCPU runners took 1068 to 1119 s for the same compile, suggesting about 21 minutes per job on 4 vCPU, but that is an estimate across CPU generations. A single job currently uses about 14 GiB of RAM plus swap.
Maintainer inputs (2026-09-30): pull requests are merged one at a time and rebased, so concurrency saves little today; the ubuntu-latest fallback verified in #2374 is enough resilience; recheck the load in about a month, or earlier if another maintainer becomes active.
Tasks
- T1: Measure the realistic build at 8 vCPU / 16 GB and constrained to 4 vCPU / 8 GB on the current server, in a maintainer-approved window with the runner stopped.
- T2: Record the queue-time evidence.
- T3: Record the capacity decision (server size, number of runners, resilience, recheck triggers).
- T4: Update
docs/self-hosted-runner.md: current server facts (without its IP address), the cost trade-off against GitHub larger runners, the one-runner-per-server limit, how to add capacity, and recheck commands. - T5: Update EPIC EPIC: Improve PR Workflow Performance #1840 (rows for Verify the self-hosted runner's offline recovery and untrusted-code routing #2374 and this issue).
Out of Scope
Resizing or adding servers or runner instances (a follow-up if the data favors it), removing the concurrency limits (a future test-isolation EPIC and #1419), autoscaling, security-routing changes, and build optimizations.
The full specification is in docs/issues/open/2386-1840-self-hosted-runner-minimum-capacity/ISSUE.md, delivered in PR #2383.
Activity
docs(issues): [torrust#2386] open the minimum runner capacity issue
docs(issues): [torrust#2386] record normal workload and queue replay
docs(issues): [torrust#2386] continue in PR torrust#2389
docs(issues): [#2386] open the minimum runner capacity issue
docs(issues): [#2386] record normal workload and queue replay
Merge torrust#2389: docs(issues): [torrust#2386] determine the minimu…
docs(issues): [torrust#2386] replay cancellations event by event and …
docs(issues): [torrust#2386] correct the queueing figures and date th…
docs(issues): [torrust#2386] record runner capacity measurements and …
docs(issues): [torrust#2386] replay cancellations event by event and …
docs(issues): [torrust#2386] correct the queueing figures and date th…
Merge #2403: docs(issues): [#2386] record runner capacity measurement…
docs(issues): [#2386] record retrospective and independent review
chore(issues): archive closed issue torrust#2386 spec to docs/issues/…
Merge #2409: chore(issues): archive closed issue #2386 spec to docs/i…