Skip to content

docs(issues): [#2386] determine the minimum self-hosted runner capacity - #2383

Closed
josecelano wants to merge 12 commits into
torrust:developfrom
josecelano:1840-record-runner-capacity-decision
Closed

josecelano wants to merge 12 commits into
torrust:developfrom
josecelano:1840-record-runner-capacity-decision

Conversation

@josecelano

@josecelano josecelano commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Implements #2386 (Determine the minimum self-hosted runner capacity), a sub-issue of EPIC #1840. The output is documentation.

Still to do in this PR

  • T1/T2: measure the realistic build at 8 vCPU / 16 GB and 4 vCPU / 8 GB, and record queue-time evidence.
  • T3: record the capacity decision.
  • (T4 is done. The daily Docker prune works: it trims the build cache to 120 GiB once a day; the guide now says so instead of "caps".)

The link will change to Closes #2386 when the remaining tasks are done.

Validation

  • TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-commit.sh
  • validate-audit-record.py --pr-number 2383: 0 failures

Related to #2386

Copilot AI balanced review requested due to automatic review settings September 30, 2026 09:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

Review effort: Lite
Findings: 2 Medium severity · 1 Low severity

Open (3)
What changed in this PR

Documents the decision and operational guidance for scaling self-hosted runner capacity, aligning the EPIC tracking and runner docs with the updated approach (prefer adding a second server over a second runner instance on the same host).

Changes:

  • Updated self-hosted runner operational docs to recommend adding capacity via an additional server and linked the recorded decision draft.
  • Updated EPIC #1840 tracking to include the missed #2374 entry and the deferred capacity draft.
  • Added a new draft issue documenting decision context, evidence, and a future sizing/concurrency plan.
File Description
docs/​self-hosted-runner.md Updates operational guidance to scale via a second server and documents why same-host concurrency is unsafe today.
docs/​issues/​open/​1840-improve-pr-workflow-performance-epic/​EPIC.md Updates EPIC metadata and adds rows for #2374 and the deferred capacity draft.
docs/​issues/​drafts/​1840-self-hosted-runner-instance-capacity/​ISSUE.md Adds the deferred capacity/sizing draft with decision record, evidence, and a measurement plan.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/self-hosted-runner.md Resolved
@josecelano josecelano self-assigned this Sep 30, 2026
@josecelano josecelano changed the title docs(issues): record self-hosted runner capacity decision docs(issues): [#2386] determine the minimum self-hosted runner capacity Sep 30, 2026
@josecelano

Copy link
Copy Markdown
Member Author

Superseded by #2389. This branch was named after the EPIC (1840) instead of issue #2386, and GitHub closes a pull request when its head branch is renamed, so the same commits, rebased onto develop, continue on 2386-1840-self-hosted-runner-minimum-capacity. The Copilot review of this PR is processed and its audit (docs/pr-reviews/pr-2383-review/PR-REVIEW.md) merges through #2389.

@josecelano josecelano closed this Sep 30, 2026
josecelano added a commit that referenced this pull request Sep 30, 2026
josecelano added a commit that referenced this pull request Sep 30, 2026
…runner capacity

ff9b82f docs(issues): [#2386] continue in PR #2389 (Jose Celano)
75810e4 docs(skills): find relative links when archiving an issue folder (Jose Celano)
01e5351 docs(issues): repair #2323 link to the archived #2374 retrospective (Jose Celano)
9dbf88d docs(issues): [#2386] record normal workload and queue replay (Jose Celano)
9830bf8 docs(self-hosted-runner): add a queue-time recheck command (Jose Celano)
c1829c4 docs(self-hosted-runner): describe the daily prune as a trim, not a cap (Jose Celano)
25c2698 docs(issues): [#2386] open the minimum runner capacity issue (Jose Celano)
8bbac6c docs(pr-reviews): record PR #2383 review audit (Jose Celano)
e14482a docs(self-hosted-runner): reference setup sections by name (Jose Celano)
4cdd5a8 docs(self-hosted-runner): record current server facts and cost (Jose Celano)
d112c86 docs(issues): [#1840] rescope runner capacity to a minimum-capacity issue (Jose Celano)
48aa898 docs(self-hosted-runner): add capacity as a second server (Jose Celano)
8da1b07 docs(issues): [#1840] record runner capacity decision (Jose Celano)

Pull request description:

  ## Summary

  Implements #2386 (Determine the minimum self-hosted runner capacity), a sub-issue of EPIC #1840. The output is documentation.

  - Adds the #2386 specification at `docs/issues/open/2386-1840-self-hosted-runner-minimum-capacity/ISSUE.md`. It started as a deferred draft; the maintainer chose to open, implement, and close an issue instead of keeping a draft as documentation.
  - `docs/self-hosted-runner.md`: records the current server's facts (provider, location, server type and ID, CPU, memory, disk, firewall, versions; not its IP address), a Cost section (flat monthly server cost versus GitHub larger runners, with the break-even volume), accurate `Docker E2E` routing, the fallback's rebase caveat, and "Add Runner Capacity" (a second server, never a second instance on the same server). Setup steps are referenced by section name instead of number.
  - EPIC #1840: row 16 for #2374 (missed earlier) and row 17 for #2386.
  - Audit record for the Copilot review of #2383.
  - Repairs a #2323 link broken by the #2374 archive, and makes the `cleanup-completed-issues` skill find relative links.

  ## Still to do in this PR

  - T1/T2: measure the realistic build at 8 vCPU / 16 GB and 4 vCPU / 8 GB, and record queue-time evidence.
  - T3: record the capacity decision.
  - (T4 is done. The daily Docker prune works: it trims the build cache to 120 GiB once a day; the guide now says so instead of "caps".)

  The link will change to `Closes #2386` when the remaining tasks are done.

  ## Validation

  - `TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-commit.sh`
  - `validate-audit-record.py --pr-number 2383`: 0 failures (the #2383 audit)

  Supersedes #2383, which was opened from a branch named after the EPIC (`1840-record-runner-capacity-decision`) instead of this issue. GitHub closes a pull request when its head branch is renamed, so the same commits, rebased onto `develop`, continue here. The review of #2383 and its audit (`docs/pr-reviews/pr-2383-review/PR-REVIEW.md`) carry over unchanged.

  Related to #2386

ACKs for top commit:
  josecelano:
    ACK ff9b82f

Tree-SHA512: 9843e50b642fffd9c55b08a665659d0978a2f7a87cbc446d81c6615872a2f9a413e547fe6314c55901d51443ffea027c341d25b03d474d7c2ab9e10682779562
@da2ce7

da2ce7 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: This pull request was closed without merging, and its content landed through #2389, which carries the same change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants