Skip to main content

Control-plane and managed operation

There are two ways to connect a Packager to Vindral's control plane, which is what the Packagers section of the Vindral Portal uses. Decide which side owns its sources, sinks, and transcoders before starting it. The token you use decides it too: a connect key only registers the Packager, and the token you get when you add a Packager in the Portal also delivers its configuration. See Connect a Packager for how to get each token.

Start modeLocal source/sink/transcoder definitionsControl-plane connection
start with [control_plane]Loaded from the configuration.Connects using the block below, with a connect key token.
start managedIgnored; the control plane provides these entities.CLI arguments/environment supply connection settings, with the Packager's own token.

Connect while loading local tasks​

toml
version = "3"

[control_plane]
url = "https://YOUR_CONTROL_PLANE/"
token = "YOUR_CONTROL_PLANE_TOKEN"
hostname = "packager-a"
heartbeat_interval = "2s"

Add your sources, sinks, and transcoders and start normally. hostname is optional and defaults to the system hostname. The heartbeat interval defaults to two seconds; the config field is a duration string.

Let the control plane supply tasks​

bash
export PACKAGER_CONTROL_PLANE_URL='https://YOUR_CONTROL_PLANE/'
export PACKAGER_CONTROL_PLANE_TOKEN='YOUR_CONTROL_PLANE_TOKEN'
export PACKAGER_HOSTNAME='packager-a'
packager start managed --heartbeat-interval-secs 2

The equivalent flags are --url, --token, and --hostname. CLI values take precedence over their environment defaults. The managed command's connection settings take precedence over [control_plane]; the heartbeat flag is an integer number of seconds.

With start managed and no explicit -c, Packager uses default local configuration and does not load /etc/packager/config.toml. Pass -c explicitly to configure logging, API authentication/bind, clock settings, or other local settings. That file must still parse successfully.

Managed startup clears local sources, sinks, transcoders, and compositors and logs a warning if the file defined any. Other sections, such as logging and API settings, still apply.

If you start start managed with a connect key instead of the Packager's own token, the control plane registers the Packager but sends it no configuration, so it runs with no tasks.

Verify operation​

Check startup logs for the selected mode, control-plane connection, and heartbeat errors. Query the API to confirm that the expected tasks have arrived and reached their actual states. The control-plane token is separate from the optional inbound [api].api_key.

/healthcheck reports that the process is running. Use source state and sink traffic to confirm the pipeline from the control plane is running. Coordinate runtime API changes with the system providing configuration; API mutations do not save a local TOML file. See Lifecycle and recovery for runtime changes and persistence.