Repository navigation
docs: drain transcode nodes before stopping or upgrading them - #188
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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 |
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:
|
|
Draft until Silo-Server/silo-server#2340 and Silo-Server/silo-server#2343 are merged into main. The docs describe those changes, and their labels or defaults may still change in review. |
|
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. |
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:
|
Problem
Closes #187
The transcode nodes guide tells admins to turn a node's switch off for maintenance, and the manual doesn't say how long Docker should wait when Silo stops. Silo-Server/silo-server#2340 lets an admin drain a transcode node, and a node now drains on its own when it's stopped. Silo-Server/silo-server#2343 makes the main server fail readiness and keep serving for a few seconds before it stops. Both have merged.
Pages changed
shutting_downstop_grace_periodandSILO_SHUTDOWN_DELAYin "Distributed and external services"What changed on each page
Add and check transcode nodes
POST /api/v2/admin/nodes/{id}/drainand/resume.SILO_NODE_DRAIN_TIMEOUT(default10m;0turns the drain off), a second stop signal stops it at once, and the node'sstop_grace_periodshould be the timeout plus a minute.Worth checking: the group note in step 3 isn't in #187. It follows from how groups already work (a stopped node that's still switched on is Unhealthy), and drain-then-stop is when an admin would run into it.
Read node status
Check server health
"status":"shutting_down"while Silo is stopping and waits outSILO_SHUTDOWN_DELAY.Worth checking: #187 doesn't list this page. The readiness table lists every answer, and the new Docker text links to it.
Docker deployment reference
stop_grace_period:2mforsiloand thesilo-proxyexample,11mfor thesilo-transcodeexample.siloitem coversSILO_SHUTDOWN_DELAY(default5s), setting it to0on a single server, and that a restart from the web app skips the wait.Left out on purpose
terminationGracePeriodSeconds, probe paths): the manual has no Kubernetes page, and docs: drain transcode nodes before stopping or upgrading them #187 leaves adding one out of scope.SILO_SHUTDOWN_DELAYagainst a load balancer's probe interval: no page covers several API servers behind a load balancer.drainingordrainedinstead ofokduring a drain: no page documents node health answers.Coordination
Evidence
Source reviewed, not tested on a live server or device: Silo-Server/silo-server#2340 merged as
f16f51fe2and Silo-Server/silo-server#2343 merged as812aca49d, rechecked at silo-serverorigin/main2bf1fb0fe; siloserver.org544f388.Needs a hands-on check: nothing. The labels, defaults and Compose values were compared with the merged code at
2bf1fb0fe.bun run test:docspassed (8 tests);bun run buildbuilt 105 pages with the link check;git diff --checkclean.Evidence: https://evidence.siloserver.org/r/siloserver-org/node-drain/
Follow-ups
Risks
None identified. Documentation only.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Document drain workflow for transcode nodes and shutdown behavior
Macroscope summarized 4eb7bc7.