Skip to content

docs: run a standalone transcode worker over HTTP or HTTPS - #250

Closed
zZebrahz wants to merge 1 commit into
mainfrom
docs/standalone-workers
Closed

zZebrahz wants to merge 1 commit into
mainfrom
docs/standalone-workers

Conversation

@zZebrahz

@zZebrahz zZebrahz commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #200

The transcode nodes guide only covers nodes that mount the media library and share PostgreSQL, Redis, and SECRET_KEY. Silo-Server/silo-server#2408 adds standalone workers that read files from the main server over HTTP or HTTPS instead. Nothing tells admins how to enroll or run one.

Draft until Silo-Server/silo-server#2408 is merged into main. It's still open, so its commands, flags, and defaults may change in review.

Pages changed

Page Change Preview
Add and check transcode nodes Intro sentence, plus a new section "Run a standalone transcode worker" Open
Run Silo with Docker One paragraph under "Distributed and external services" pointing to the new section Open

What changed on each page

Add and check transcode nodes

  • The intro says a transcode node can also run as a standalone worker, and links to the new section.
  • The new section comes after "Add the node". It says what a worker needs: HTTPS both ways with valid certificates, HTTP only with --allow-http, an absolute scratch directory, GPU access, and a clock within 30 seconds. It also says to run the worker under its own account, because FFmpeg's arguments contain a local link to the file.
  • "Enroll the worker": add the node with Add Transcode, find its ID through GET /api/v2/admin/nodes, run silo worker-enrollment on the main server, chmod 600 the ticket, then run silo worker-enroll on the worker host. Tickets work once and expire after five minutes. The binding file holds the worker's private key.
  • "Start the worker": a Compose example with only the binding file, scratch, and an optional GPU device. It notes that the worker refuses DATABASE_URL, REDIS_URL, SECRET_KEY, and JWT_SECRET. A table lists every worker flag and its default. The section says to drain the worker before stopping it, because a stopped worker doesn't drain on its own, and says that it stops work when it loses contact with the main server.
  • "Reach the main server over HTTPS": the reverse proxy has to keep Host, or Silo returns 401. The worker follows no redirects and ignores proxy environment variables. A private certificate authority goes in through SSL_CERT_FILE. Link speed affects start-up and seeking.
  • "Several Silo servers behind one address": SILO_WORKER_SOURCE_URL for each server, and SILO_WORKER_SOURCE_MAX_READERS (default 32, 1 to 4096).

Worth checking: I put the Compose example on the transcode nodes page and added only a pointer to the Docker page, because readers set up the worker from the nodes guide. The issue asked for the example on the Docker page. PORT: "8097" in the example exists only so the image's built-in health check (curl localhost:${PORT:-8080}/api/v1/health) checks the worker's port.

Run Silo with Docker

  • One paragraph: the standalone worker isn't in the Compose file, what it mounts and what it doesn't, and a link to the example.

Overlaps with other docs work

Other threads are editing the same transcode nodes page:

Left out on purpose

  • Signature domains, owner routing internals, lease and refresh timings (500 ms refresh, two-second lease), source grant lifetimes, retry counts, and index read budgets. No other page goes this deep.
  • The LAN latency measurements from #2408. They cover synthetic LAN cases only, so the page just says a slow or distant link slows start-up and seeking.
  • --env on worker-enrollment. Inside the container, the environment already has what it reads.

Evidence

Source reviewed, not tested on a live server or device:
siloserver.org 61fef8a, silo-server origin/main a434bbc2f, and the head of silo-server#2408 dbcd948e0 (cmd/silo/standalone_worker.go, cmd/silo/worker_enrollment.go, cmd/silo/worker_source*.go, internal/workeridentity, internal/workerregistration, internal/workercontrol/runtime.go, internal/transcodenode/server.go, docs/architecture/standalone-transcode-workers.md, Dockerfile).

Needs a hands-on check:

  • A standalone worker shows Healthy in Admin > Playback > Nodes, and playback reaches it.
  • docker compose cp out of the core container, followed by chmod 600, gives a ticket that worker-enroll accepts.
  • SSL_CERT_FILE works for a private certificate authority. The worker transport uses Go's default system roots, which read that variable on Linux.
  • With PORT: "8097", the image's health check passes on the worker.
bun run test:docs   ℹ fail 0
bun run build       All internal links are valid. 106 page(s) built
git diff --check    clean

Risks

None identified. Documentation only.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code (Claude Agent SDK) in T3 Code
  • Tool(s): silo-docs skill, humanizer skill, git, gh, bun
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verification pending
  • Adversarial review: n/a

Note

Document standalone transcode worker deployment over HTTP or HTTPS

  • Adds a full guide for running standalone transcode workers that connect to the main server over HTTP or HTTPS, without media mounts or shared credentials, in transcode-nodes.md
  • Covers enrollment via single-use five-minute tickets, worker-host Compose configuration, command-line option defaults, draining before restart, and HTTPS setup behind reverse proxies
  • Documents source routing for workers behind a shared load-balancer address, including per-server source-reader limits
  • Notes that FFmpeg command lines can expose local source paths to accounts able to inspect processes
  • Adds a deployment note in docker.md that standalone workers are excluded from the main Compose file and need only the binding file, scratch directory, and GPU devices

Macroscope summarized 01c1752.

@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Oct 18, 2026
@coderabbitai

coderabbitai Bot commented Oct 18, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zZebrahz

Copy link
Copy Markdown
Contributor Author

Draft until Silo-Server/silo-server#2408 is merged into main. The docs describe that change, and its labels or defaults may still change in review.

@silo-kody

silo-kody Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

Comment on lines +103 to +104
ports:
- "8097:8097"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kody code-review Bug medium

Worker connectivity fails when enrollment uses https://worker1.example.com because the worker Compose example exposes only HTTP on port 8097 and provides no HTTPS configuration for that address. Add worker-side TLS termination instructions alongside the existing main-server HTTPS instructions, such as a Caddy site forwarding the enrolled worker hostname to port 8097.

Prompt for LLM

File src/content/docs/docs/running-a-server/transcode-nodes.md:

Line 103 to 104:

Worker connectivity fails when enrollment uses `https://worker1.example.com` because the worker Compose example exposes only HTTP on port 8097 and provides no HTTPS configuration for that address. Add worker-side TLS termination instructions alongside the existing main-server HTTPS instructions, such as a Caddy site forwarding the enrolled worker hostname to port 8097.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

@silo-triage silo-triage Bot added documentation Improvements or additions to documentation triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Oct 18, 2026
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Preview removed after this pull request was closed. Its address now redirects to siloserver.org, though some visitors may still see the old preview for a while.

@zZebrahz

Copy link
Copy Markdown
Contributor Author

Closing: Silo-Server/silo-server#2408 was closed because Silo-Server/silo-server#4337 and Silo-Server/silo-server#4338 delivered nodes that need no library mount and read media through the API servers. #381 documents that design, including a node's source access.

This branch was previously deployed

1 inactive deployment
Preview — 01c17522 Deployed Nov 18, 2026 by zZebrahz via teardown #174
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/M 50–199 added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document standalone HTTP/HTTPS transcode workers without library mounts

1 participant