Skip to content

docs: explain the Nodes page readings and node metrics - #81

Merged
zZebrahz merged 7 commits into
mainfrom
docs/node-status
Oct 3, 2026
Merged

zZebrahz merged 7 commits into
mainfrom
docs/node-status

Conversation

@zZebrahz

@zZebrahz zZebrahz commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #39

Add and check transcode nodes explains how to add a node, but nothing explains how to read Admin > Nodes afterwards. Admins can't tell why a Healthy node encodes in software, what stale, Shared GPU, and Drift mean, or why work stops reaching a node. The server repo removed its copy of this material in Silo-Server/silo-server#1635.

Pages changed

Page Change Preview
Read node status New page Open
Set up transcoding and chapter previews Expanded "After a driver or device change" Open
Add and check transcode nodes Group step, full-disk guard, encoder changes, force reload Open
Check server health Link from step 3 of "Playback fails" Open
Logs and monitoring Link from "Metrics" Open
Docker deployment reference New section "Docker inside an LXC container" Open

What changed on each page

Read node status

New page in the sidebar after Add and check transcode nodes. Sections:

  • Node state: what Healthy, Unhealthy, and Disabled mean; 30-second checks; Checked; and the fact that a node with a broken GPU still shows Healthy.
  • Groups: how a group keeps streams on its own proxies, how one unhealthy member takes the group out of service, and the Groups filter row with its amber dot.
  • Acceleration: a table of the badge readings (green, amber, plain, SW, and SW with devices not accessible), plus Awaiting first report and the per-GPU meters.
  • Hardware markers: stale, Shared GPU, and Drift.
  • Load and Load inside a container: the CPU, RAM, Disk, Net, and Silo process RAM rows, No resource sample, Stale resource sample, and how cgroup limits change the figures.
  • Capacity: Transcodes, Streams, and Egress against their limits.
  • Node metrics in Prometheus: every streamapp_node_* series, mount roles, streamapp_node_disk_stale, GPU measurement sources, and the three example alerts.

Worth checking: page depth overall. It's longer than most guides because every reading on the screen gets a line. The Prometheus section could move to the monitoring page that #40 plans; I kept it here so the reading and its metric stay together.

Set up transcoding and chapter previews

  • Lists when to re-probe a node: driver change, device access change, FFmpeg replaced in place, or a Drift marker.
  • Says what re-probing does and doesn't do, that it can take a couple of minutes, and what blocks it (playback, prepared downloads, thumbnail extraction), with the toast text "Node reprobe was refused or could not be confirmed".
  • Says a failed re-probe keeps the previous report, and a repaired GPU is noticed on its own within about 15 minutes.

Add and check transcode nodes

  • "Add the node": new optional step 5 for Group, linking to the groups section.
  • After the health check paragraph: link to the new page.
  • "If work does not reach the node": group health, what happens when every node's transcode directory is 95% full, and the one log message that means sessions are landing on a full disk (filter Admin > Logs by nodepool).
  • "Maintain a node": Hardware Acceleration and GPU Devices apply to new transcodes within a minute; force reload is API-only and ends live sessions on a transcode node.

Worth checking: quoting the transcode scratch guard ignored: ... message. It's an exact WARN line an admin would search for, so I kept that one and left out the other two.

Check server health

  • Step 3 links to the new page.

Logs and monitoring

  • "Metrics" links to the node series and example alerts.

Docker deployment reference

  • New section with the three /host/proc bind mounts, why they're needed, that the default silo service already has them, and the lxcfs -l load average caveat.

Corrections to the issue

Source showed these points in #39 are wrong, so the docs say something different:

  • Streams on a node that stops answering don't move on their next segment request. Segment requests stay pinned to the original node and get 502 transcode node unavailable. The page says running playback can't continue there and a restarted stream goes to a healthy node.
  • A GPU that breaks while the node runs doesn't switch the node to software straight away. A passed probe is cached until re-probe or restart, so the badge can keep showing the old encoder. The page says so and points to Re-probe.
  • A re-probe refusal isn't surfaced as HTTP 409. The v2 API returns 200 with the generic text "Node reprobe was refused or could not be confirmed...", which is what the toast shows. All chapter thumbnail extraction and trickplay block it, not just hardware extraction.
  • Library mount numbers follow path order (alphabetical, then first seen), not configuration order. The page says numbers can change when library folders change.
  • Force reload ends sessions only on transcode nodes. A proxy just re-reads its configuration. The bulk route targets enabled nodes only.
  • The tone-mapping exception is wrong as worded: only a complete result is kept permanently. Left out.
  • The Groups row appears with two or more buckets (groups plus "Ungrouped"), not whenever any node has a group.
  • streamapp_node_load1 exists and was missing from the list.
  • Cgroup memory excludes inactive page cache only, so the page says "memory use against its limit" without the page cache claim.

Left out on purpose

  • Retry timings: nvidia-smi's 5-failure breaker and 10-minute retry, the 15-second negative probe cache, and the 60-second config poll. The voice guide gives outcomes instead.
  • The other two scratch-guard log lines, the component=nodemetrics mount-cap log, and drift log messages: no other page goes to log level.
  • Endpoint paths for node /api/v1/health, /status, and GET /api/v2/admin/system/resources. The page says the labels hide paths; the endpoint detail is for developers.
  • The silo_* resource and cgroup series. Those belong to the monitoring page in docs: add guides for Prometheus monitoring and performance profiles #40.
  • "Lower segment retention" as a fix for a full transcode directory: I couldn't find a setting by that name.
  • Group-health exceptions for prepared-download reservations.

Evidence

Source reviewed, not tested on a live server or device:
silo-server 478afa5257332df52f10650cd00b88596562d4c9 (web AdminNodes.tsx and adminNodesPresentation.ts, internal/nodepool, internal/nodemetrics, internal/transcodenode/reprobe.go, internal/apiv2/admin_node_*.go, docker-compose.yml).

Needs a hands-on check:

  • Whether the apps restart a stream on their own when its node stops answering, or the viewer has to.
  • What a viewer sees when playback starts on a node that's mid re-probe (the node answers 503; I couldn't confirm the server then picks another node).
  • The new page's layout at mobile width. No headless browser was available, so I checked the build and anchors but not the rendering. The metrics list replaces a table to avoid a wide one.
bun run test:docs   ℹ pass 8  ℹ fail 0
bun run build       All internal links are valid. 99 page(s) built. Complete!
git diff --check    clean

Follow-ups

  • silo-server code comments are stale: internal/nodemetrics/nvidia.go:18-26 ("for the life of the process") and internal/transcodenode/reprobe.go:39-41 / tone-map probe.go:205 ("non-empty is cached permanently").
  • The Drift tooltip says it stays "until a refetch finds every hardware probe passing", but the code clears it when the lost hardware returns.
  • Retry timings and log lines left out here could go to Silo-Server/silo-troubleshooting-skill.

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 2.1.283 (in T3 Code)
  • Tool(s): Claude Code agent with read-only subagents for source verification, git, gh, bun
  • Model(s): claude-opus-5-5[1m]
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: n/a

Note

Document Nodes page readings and node metrics for Docker in LXC

Adds a section to docker.md covering Docker running inside an LXC container. It documents bind-mounting the LXC view of procfs files for memory, CPU statistics, and load average into Silo containers, notes the default Compose configuration already includes these mounts while the proxy and transcode examples leave them commented, and explains Silo's fallback to its own container procfs. Also covers the lxcfs requirement for load average and bare-metal or VM behavior.

Macroscope summarized 0773bf9.

@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4531b5ee-d5d4-44dd-8c06-42b9263cd8e9
  • Autopilot · 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.

@silo-kody

silo-kody Bot commented Oct 3, 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 ❌

@github-actions

github-actions Bot commented Oct 3, 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.

@silo-kody

silo-kody Bot commented Oct 3, 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 ❌

@zZebrahz
zZebrahz merged commit b29124b into main Oct 3, 2026
5 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 0773bf95 Deployed Oct 3, 2026 by zZebrahz via teardown #38
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.

docs: explain the Nodes page readings and node resource metrics

1 participant