Add and check transcode nodes
Silo is in active development before 1.0. These guides are updated frequently.
A single Silo server already streams and converts video itself. Add nodes when you want part of that work on other machines. Every node runs the same Silo image in a different mode. A transcode node needs only the main server’s address and a key you issue for it. A proxy node shares the main server’s PostgreSQL, Redis, and encryption key.
Choose a node type
Section titled “Choose a node type”| Type | Does | Use it when |
|---|---|---|
| Transcode | Converts video for playback and prepared downloads, reads audio for subtitle sync, and can make seek previews | The main server’s CPU or GPU can’t keep up, or another machine has a better GPU |
| Proxy | Delivers streams and downloads to clients | You want streams to leave from somewhere other than the main server, such as a host with more bandwidth |
Transcode nodes only talk to the main server and proxy nodes, so they need no public address. Clients connect to proxy nodes directly.
Prepare the node
Section titled “Prepare the node”To convert video on the same Apple Silicon Mac that runs your server in Docker Desktop, follow Convert video with the Mac’s hardware instead.
On the node’s host, use the server repository’s docker-compose.yml with the node’s settings in .env; the node section of the repository’s .env.example lists them. In these modes the container starts none of its bundled services.
Set PORT in the node’s .env to the port it’s published on, such as 8082. Every node also needs a clock that stays within 30 seconds of the main server and the other nodes, for example kept in sync with NTP. A node whose clock is further off has its requests refused and refuses the ones sent to it, so work sent to it fails.
Transcode node settings
Section titled “Transcode node settings”A transcode node connects to no database and holds none of the main server’s secrets. It needs:
MODE=transcode.SILO_CORE_URL, an address where the node can reach the main server, such ashttp://192.168.1.10:8090. A LAN address, a VPN address such as a Tailscale one, or your public URL all work. If you run several API servers, use their load-balanced address.SILO_NODE_KEY, the key you issue for this node when you add it.- The media mounted at the same container path the main server uses, such as
/mnt/media. A node whose Source access is Through the API servers doesn’t need it; see Choose a node’s source access. - A writable transcode directory with free space.
- For GPU encoding, its own driver and device access, set up as in Set up transcoding.
SILO_STOP_GRACE_PERIOD=11m, so it can drain before Docker stops it.
The node takes everything else from the main server, including its FFmpeg path and transcode directory. The repository’s docker-compose.yml still asks for SECRET_KEY and MEDIA_ROOT. A transcode node doesn’t use the key, so any value works there, and a node that reads through the API servers can point MEDIA_ROOT at an empty folder. If DATABASE_URL, REDIS_URL, NODE_URL, or NODE_NAME are still in its .env, the node ignores them.
The node calls the main server at SILO_CORE_URL, and the main server and proxy nodes call the node at its URL, so your network has to allow both directions. If SILO_CORE_URL goes through a reverse proxy, the proxy must pass requests under /api/internal/nodes/ to Silo unchanged. The node takes its FFmpeg path and directories from the main server’s answers, so use a network you trust or an https:// address. With a plain http:// address on another machine, the node logs a warning when it starts.
Proxy node settings
Section titled “Proxy node settings”A proxy node needs:
MODE=proxy.SILO_NODE_URL, the node’s own address with itsPORT(NODE_URLstill works). The container won’t start a proxy node without it. Optionally setSILO_NODE_NAME(NODE_NAMEstill works) so Silo can match the proxy by name if its URL in Silo differs.- The same
SECRET_KEYas the main server, andDATABASE_URLandREDIS_URLpointing at the shared PostgreSQL and Redis. Use the same Redis database number as the main server. Behind Redis Sentinel, use the main server’s Sentinel URL, and let the node reach every Sentinel and Redis server. - Enough PostgreSQL connections for every proxy node. Each one opens up to 20 database connections of its own, but the main server only sizes PostgreSQL’s connection limit for itself. In the main server’s
.env, raisePOSTGRES_TUNE_CONNECTIONSas described in PostgreSQL tuning. - The media mounted at the same container path the main server uses, such as
/mnt/media. - A plugin directory (
SILO_PLUGIN_CACHE_DIR).
On the main server, PostgreSQL and Redis aren’t reachable from other machines until you turn on node access. With separate containers, they’re published only on the main host’s loopback address until you change that. Keep PostgreSQL, Redis, and node ports on a trusted network. Only proxy nodes connect to PostgreSQL and Redis.
Local artwork on the main server isn’t shared with other hosts automatically. For several hosts, consider S3 artwork storage.
Add the node
Section titled “Add the node”Add the node in Silo, then start it. A proxy node can instead add its own entry when it starts; see Set a node’s settings in its environment.
- Open Admin > Playback > Nodes and select Add Transcode or Add Proxy.
- Enter a Name. For a proxy node whose URL in Silo differs from
SILO_NODE_URL, give it a unique name matchingSILO_NODE_NAME(orNODE_NAME). - Enter the URL the main server uses to reach the node. For a proxy node, Silo matches it by
SILO_NODE_URL(orNODE_URL) first, then by name. A private address is fine. - For a proxy node, enter a Public URL if clients should use a different address, such as a public hostname in front of the node. Leave it empty to give clients the URL, which then must be reachable from clients.
- For a transcode node, choose its Source access. Keep Library mount on the node if the node mounts your media.
- If the node shares a host or local network with other nodes, give them all the same Group, such as
rack-1. Silo then keeps their streams inside the group; see Groups. - Optionally set Max Transcodes or Max Streams (and Max Egress Bandwidth (Mbps) for a proxy), then select Save.
- For a transcode node, Silo offers its key as soon as you save. Select Issue key. In the dialog that opens, fill in Server address for the node if it’s empty, then copy the two lines under Node settings into the node’s
.env. Silo shows the key only this once, so copy it before you select I saved the key. - Start the node with its Compose file.
A transcode node takes no work until it has a key. If you chose Not now, the node shows No key: this node takes no work until a key is issued under its address, with Issue key beside it. Once it has one, it shows Key issued.
Silo checks a new node as soon as you save it, then every 30 seconds. A node you start after saving shows Unhealthy until the next check. Its state changes to Healthy once Silo can reach it, and for a transcode node, once the node is running with its key. A transcode node’s Acceleration block shows the verified encoder, such as VAAPI or SW. Use the refresh button to check it right away. Read node status explains each reading.
Then play something that needs conversion, or from a client that uses the proxy. Admin > Activity shows the session, and the node’s Capacity block shows the job. Test seeking and stopping as well.
Choose a node’s source access
Section titled “Choose a node’s source access”Source access, in a transcode node’s add and edit forms, sets how the node reads your media:
- Library mount on the node is the default. The node reads each file from its own mount, at the same container path the main server uses.
- Through the API servers needs no mount. The node reads each file from the main server over the network, at the address in
SILO_CORE_URL.
Choose Through the API servers for a machine that can’t mount your library, such as a GPU machine at another site. Everything the node reads then passes through the main server, so the main server needs the bandwidth for it. A change applies to the work the node starts after you save; streams already running keep reading the way they started.
With Library mount on the node, the node must see each file exactly as the main server does: the same path, size, and modification time. If its mount shows a different file, the node refuses that job, and Silo converts it on the main server if Routing allows that.
A node set to Through the API servers can’t burn in some text subtitles, such as those inside an MP4 file. Silo converts that playback on a node with a mount or on the main server instead.
Route playback to nodes
Section titled “Route playback to nodes”Routing on Admin > Playback > Nodes decides where remuxing and transcoding run and which machine sends each stream to the client. Choose a Routing preset and save. Silo Defaults prefers transcode nodes for conversion and proxy nodes for delivery, and falls back to the main server. GPU offload keeps direct play and remuxing on the main server and sends video transcodes to nodes. Central egress runs conversion on nodes but sends every stream from the main server. To set the five routes one by one, open Advanced under the presets. A route ending in “only” never falls back, so that kind of playback fails while no healthy node of the needed type is available.
Convert to HEVC on nodes
Section titled “Convert to HEVC on nodes”With Allow HEVC encoding on (see Allow 4K and HEVC output), Silo checks each machine’s encoders separately, so HEVC support on the main server doesn’t mean a node has it. HEVC is used only when a machine that may convert video under Routing can encode it, and HEVC jobs go only to nodes that can. When none can, devices get H.264.
A node whose GPU can’t encode HEVC encodes it on the CPU, even though its Acceleration block shows the GPU. After an HEVC stream starts on a node, check the session in Admin > Activity: SW means that node’s CPU is encoding.
Store prepared downloads on a node
Section titled “Store prepared downloads on a node”A transcode node keeps the downloads it prepares in download-artifacts inside its transcode directory, unless you give it another directory. That puts them on the same disk as live transcodes, so they count toward the 95% at which Silo skips the node for new streams. To keep prepared downloads apart, mount a separate volume on the node and point it there:
- Open Admin > Downloads > Prepared Files. On the node’s card, select Edit location.
- Enter the path inside the node’s container in Prepared file directory.
- Under Storage budget, keep Default to use Default storage budget per location, choose Custom and enter a size in GB, or choose None to rely on the disk ceiling only.
- Select Save. If you changed the directory, restart the node; it uses the new directory once it restarts.
If the node sets its directory or budget in .env, edit it there and run docker compose up -d instead; see Set a node’s settings in its environment.
Changing the directory doesn’t move files. Files that devices are still waiting for are prepared again in the new directory, and cached files are dropped. Old files stay in the old directory until you delete them.
If Prepared file directory is set in Admin > Downloads > Settings, a node with a blank directory uses that path, so it must exist on the node too. A card that reads Shares disk with transcode scratch still has its prepared files on the transcode disk.
Set a node’s settings in its environment
Section titled “Set a node’s settings in its environment”To keep a node’s settings with its Compose file, set them in the node’s .env instead of in Admin > Playback > Nodes. This also lets a transcode node’s owner keep control of its limits when someone else runs the main server. The node reads these variables when it starts:
| Setting | Proxy node | Transcode node |
|---|---|---|
| Name, URL | SILO_NODE_NAME, SILO_NODE_URL | |
| Public URL | SILO_NODE_PUBLIC_URL | |
| Group | SILO_NODE_GROUP | SILO_NODE_GROUP |
| Max Streams, Max Transcodes | SILO_NODE_MAX_STREAMS | SILO_NODE_MAX_TRANSCODES |
| Max Egress Bandwidth (Mbps) | SILO_NODE_MAX_BANDWIDTH_KBPS (kilobits per second, so 100000 for 100 Mbps) | |
| Source access | SILO_NODE_SOURCE_ACCESS (local for Library mount on the node, core for Through the API servers) | |
| Hardware Acceleration, GPU Devices | SILO_NODE_HW_ACCEL, SILO_NODE_HW_DEVICE | |
| Prepared file directory, Storage budget | SILO_NODE_DOWNLOAD_ARTIFACT_DIR, SILO_NODE_DOWNLOAD_ARTIFACT_MAX_BYTES (bytes) |
On a proxy node, SILO_NODE_NAME and SILO_NODE_URL match the node to its entry instead of locking those fields; see Proxy node settings. Don’t copy them from a proxy node’s .env to a transcode node, because a transcode node takes them as its own name and address.
Leave a variable out or empty to keep editing that setting in Silo. For the stream, transcode, and bandwidth limits, 0 means unlimited; for the storage budget, 0 means no budget, matching None. The node section of the repository’s .env.example has an example for each.
If a value isn’t valid, the node stops at startup and logs the variable’s name.
In Admin > Playback > Nodes, open the node’s edit form to see which fields it manages. Each one is greyed out with Set by this node’s environment. Change it there and restart the node. below it. Silo also refuses API edits to those fields, including changes submitted through Edit location on the Storage tab of Admin > Downloads > Prepared Files.
To change an environment setting, edit the node’s .env and run docker compose up -d on the node’s host. docker compose restart keeps the old values. To edit the setting in Silo again, remove the variable and run docker compose up -d; the setting keeps its last value.
A transcode node still needs an entry and key on the main server; see Add the node. The node holds to its own Max Transcodes, Hardware Acceleration, GPU Devices, Source access, Prepared file directory, and Storage budget, whatever its entry in Silo says.
With SILO_NODE_MAX_TRANSCODES set, the node refuses new work past that number, counting remuxes, prepared downloads, and seek previews along with transcodes. Silo sends refused work elsewhere if Routing allows.
A proxy node that sets any variable in the table needs an entry in Silo matching its URL or name, or it refuses to start. To have a proxy with no entry add its own at its URL, set SILO_NODE_REGISTER=true. Leave that off if the proxy’s entry in Silo uses a different URL (such as its public hostname) and doesn’t match by Name, or Silo can add a second entry for it.
Update the main server before updating proxy nodes; a proxy that starts while the main server is migrating starts without its environment settings and applies them once the migration finishes. A transcode node can update first, enforces its own settings as soon as it starts, and syncs them once the main server updates.
Borrow a friend’s GPU
Section titled “Borrow a friend’s GPU”A transcode node can run on a friend’s machine. It needs only your server’s address and a key, and with Source access set to Through the API servers it doesn’t mount your library.
Install Tailscale on your server’s host and on their machine. The Tailscale plugin isn’t enough, because it only lets devices reach Silo and your server also calls the node. If your friend has their own tailnet, share each machine with the other, since a shared machine can’t start connections. Sign both hosts in as yourselves, not with a tag. Any proxy nodes call the node too, so they need the same access.
Add the node with its Tailscale address and port as its URL, such as http://100.101.102.103:8082. In the key dialog, set Server address for the node to your server’s Tailscale address; it starts as your public URL if you’ve set one.
Silo Defaults prefers transcode nodes, so your friend’s node gets work even while your server is idle. When the node is full or offline, new playback goes to your server or another node. GPU offload prefers your server for remuxes. Your friend can cap the node’s jobs with SILO_NODE_MAX_TRANSCODES in its .env.
The original video uses your upload and the converted video uses theirs. Viewers still connect only to your server or a proxy node. Do this only with someone you trust who also trusts you: their node sees every video it converts and runs the jobs your server sends it.
If work does not reach the node
Section titled “If work does not reach the node”Check that the node is enabled, Healthy, and below its limit. A transcode node also needs its key: check that it shows Key issued. With Library mount on the node, check that it can read the file at the same path. For a grouped node, check that every enabled node in its group is Healthy.
A transcode node that stays Unhealthy after it starts usually can’t sign in to the main server. Check that the node can reach the address in SILO_CORE_URL, that SILO_NODE_KEY is the key you issued last, and that its clock is within 30 seconds of the main server’s. A proxy node can show Healthy and still refuse work when its clock is that far off.
A transcode node whose transcode directory is 95% full is skipped while another node has room. If every transcode node is that full, Silo uses one anyway, and streams on it can fail once the disk fills. Silo never skips a node whose disk use it can’t read.
To see which case you’re in, filter Admin > Logs > Server Log by the nodepool component. transcode scratch guard ignored: every eligible node is over the scratch threshold means new sessions are going to a nearly full disk. To fix it, enlarge the node’s transcode volume or clear old files from its transcode directory.
Maintain a node
Section titled “Maintain a node”To stop or upgrade a transcode node without cutting playback, drain it first:
- In Admin > Playback > Nodes, select the pause icon in the node’s header. Silo sends the node no new work, and streams already on it keep playing. Its state changes to Draining, and the line under its address counts the work left, such as Draining · 2 transcodes left.
- Wait for Drained · safe to stop. Streams play until they end, so this can take as long as the longest one left on the node.
- Stop or upgrade the node. While it’s stopped, it shows Unhealthy, and if it’s in a group, Silo sends that group no new transcodes until the node is back.
- Once the node is running again, select the play icon in its header to resume it. It stays drained after a restart until you resume it.
The admin API has the same actions: POST /api/v2/admin/nodes/{id}/drain and POST /api/v2/admin/nodes/{id}/resume.
You can also stop a transcode node directly, and it drains on its own. It takes no new work and keeps serving its streams until they end or SILO_NODE_DRAIN_TIMEOUT passes, then stops, and streams still on it move to another machine, as when a node crashes. The timeout is 10m by default. Set it on the node as a duration such as 15m or a number of seconds, or set it to 0 to turn the drain off. A second stop signal stops the node at once. Docker kills a container 10 seconds after asking it to stop, so set the node’s SILO_STOP_GRACE_PERIOD to the timeout plus a minute, as in Nodes and stop timeouts.
Proxy nodes don’t drain. Turn a proxy node’s switch off to stop new work while its current streams finish.
After changing a node’s driver or devices, use its re-probe button. Silo refuses it while the node is transcoding, so drain the node first and resume it once the re-probe finishes. See Set up transcoding.
To change a transcode node’s encoder, select the pencil in the node’s header, set Hardware Acceleration or GPU Devices, and select Save. New transcodes on the node use the change within about 30 seconds, and running sessions keep their old settings.
To replace a transcode node’s key, drain the node first, then select Rotate key under its address. The old key stops working at once, so streams still on the node fail, and the node takes no work until you put the new key in its .env as SILO_NODE_KEY and restart it.
To make a node re-read its configuration straight away, use force reload in the admin API: POST /api/v2/admin/nodes/{id}/force-reload for one node, or POST /api/v2/admin/nodes/force-reload for every enabled node. There is no button for it. On a transcode node it also ends every live playback session.
Update all nodes together with the main server when the release notes say so. The 1.0 update is one of those: don’t mix alpha and 1.0 nodes. Stop the transcode nodes first, and start them again only once the main server and proxy nodes run 1.0 and you’ve issued each transcode node its key. For other updates, if you update one machine at a time, update the transcode nodes first, then the proxy nodes, then the main server. Some releases change how the main server and proxy nodes talk to other nodes, and a node that hasn’t been updated yet can’t answer the new requests.
A transcode node on an older version than the main server can’t send subtitles from inside a video file along with the converted video. Silo then converts that playback on the main server or an updated node instead. Only if Routing leaves no such machine does an older node convert it, and the apps then download the subtitle separately, which can take minutes on network storage.