Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. Comment |
|
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 — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
| ports: | ||
| - "8097:8097" |
There was a problem hiding this comment.
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.
|
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. |
|
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. |
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
What changed on each page
Add and check transcode nodes
--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.GET /api/v2/admin/nodes, runsilo worker-enrollmenton the main server,chmod 600the ticket, then runsilo worker-enrollon the worker host. Tickets work once and expire after five minutes. The binding file holds the worker's private key.DATABASE_URL,REDIS_URL,SECRET_KEY, andJWT_SECRET. A table lists everyworkerflag 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.Host, or Silo returns401. The worker follows no redirects and ignores proxy environment variables. A private certificate authority goes in throughSSL_CERT_FILE. Link speed affects start-up and seeking.SILO_WORKER_SOURCE_URLfor each server, andSILO_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
Overlaps with other docs work
Other threads are editing the same transcode nodes page:
Left out on purpose
--envonworker-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-serverorigin/maina434bbc2f, and the head of silo-server#2408dbcd948e0(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:
docker compose cpout of the core container, followed bychmod 600, gives a ticket thatworker-enrollaccepts.SSL_CERT_FILEworks for a private certificate authority. The worker transport uses Go's default system roots, which read that variable on Linux.PORT: "8097", the image's health check passes on the worker.Risks
None identified. Documentation only.
Checklist
AI Disclosure
Note
Document standalone transcode worker deployment over HTTP or HTTPS
Macroscope summarized 01c1752.