Join a node to your fleet
You have a fleet and a join token (fjt_…). This page takes a GPU machine
from Docker to a verified node that runs your fleet’s work.
Install
Section titled “Install”On the GPU machine (Linux on x86_64, Docker installed):
curl -fsSL https://get.turion.ai | \ TURION_JOIN_TOKEN=fjt_… \ TURION_CONTROL_PLANE_URL=https://api.turion.ai \ sh -The installer:
- Checks that Docker is installed and the daemon responds.
- Pulls the agent image,
registry.turion.ai/turion/agent:latest. - Runs the preflight checks below, and stops if the host is not ready.
- Enrolls the machine into your fleet with the join token.
- Starts the agent as a container named
turion-agent, restarted automatically (--restart unless-stopped). - Starts two telemetry containers, unless you opt out (see below).
If a blocking check fails, the installer stops before enrolling. Fix the issue and run the same command again.
Installer options
Section titled “Installer options”Set these in the same environment as the join token:
| Variable | Default | Purpose |
|---|---|---|
TURION_NODE_NAME | $(hostname) | name shown in turion fleet get |
TURION_IMAGE | registry.turion.ai/turion/agent:latest | agent image to run |
TURION_NETWORK | turion-net | Docker network the agent attaches model containers to |
TURION_WEIGHTS_CACHE | turion-weights | Docker volume or absolute host path for the weight cache; off disables it |
TURION_LAZY_PULL | off | on enables lazy image pull (SOCI snapshotter); this restarts the Docker daemon |
TURION_TELEMETRY | on | off skips node telemetry |
Weight cache. Model containers on the node share the cache, read and write, so a model’s
weights download once per node. Put it on fast local disk by passing a host path (for example
/mnt/nvme/turion-weights); network file systems are not supported. If the node will run models
that must not share files with each other, set TURION_WEIGHTS_CACHE=off.
Telemetry. By default the installer also starts turion-dcgm (NVIDIA DCGM exporter) and
turion-otelcol (an OpenTelemetry Collector) on the turion-net network. They publish no ports;
the collector pushes GPU and node metrics outbound to Turion. Machines without an NVIDIA GPU skip
them, and TURION_TELEMETRY=off turns them off.
Running the installer again replaces the turion-agent container, but it also enrolls the machine
again: the machine gets a new node identity, and the old entry stays in the fleet with a LAST SEEN that no longer advances. To upgrade without re-enrolling, see
Upgrade the agent.
What preflight checks
Section titled “What preflight checks”Preflight runs inside the agent image, with the Docker socket mounted, and prints [PASS] or
[FAIL] per check with a remedy for each failure:
- Docker daemon is up and reachable.
- GPU visible inside a container. This catches the common case where
nvidia-smiworks on the host but the NVIDIA Container Toolkit is not configured, so containers see no GPU. The remedy isnvidia-ctk runtime configure --runtime=dockerand a Docker restart. - Disk space: at least 20 GB free. The check measures the agent container’s file system, so treat it as advisory; what matters is free space under the host’s Docker data root.
- Turion reachable over HTTPS.
- WSL2 (advisory, never blocks): on WSL2 the NVIDIA driver must be installed on the Windows side; do not install a Linux driver inside WSL.
- Lazy pull (advisory, never blocks): whether Docker is set up for lazy image pull.
The node verifies itself
Section titled “The node verifies itself”A newly enrolled node does not receive work straight away. On startup the agent probes its GPU from inside a container, the way models will see it, and reports the result. Until that succeeds the node gets no work.
Watch it in your fleet:
turion fleet get labVERIFIED turns to yes within moments of the agent starting, and GPU shows what it found.
Over the API, GET /v1/fleets/{id} returns each node’s status, last_seen_at, verified_at
and capabilities (the reported hardware). If the node stays unverified, read the agent logs:
docker logs -f turion-agentWhat a node can run
Section titled “What a node can run”A verified node runs whatever its fleet’s work needs: fine-tunes on Turion’s vLLM serving image, training jobs, and Cog images. Two sizes matter if the fleet will train or serve fine-tunes:
- Training reserves 80 GB of GPU memory per job, so only a node with that much free (an 80 GB H100, a 96 GB RTX PRO 6000) picks up a training job.
- Serving a fine-tune needs the base model’s weights on local disk, cached after the first start. Bases are several to tens of GB, so leave room well beyond the 20 GB preflight minimum.
Agent settings
Section titled “Agent settings”These are environment variables on the turion-agent container. Set them by re-creating the
container (see Upgrade the agent).
| Variable | Default | Purpose |
|---|---|---|
WORKER_MAX_SLOTS | 1 | model containers the node may hold at once; raise it to let several models share the node’s GPUs (declare each model’s vram_footprint_mb) |
WORKER_MAX_AGENT_CONTAINERS | 8 | deployed-agent containers the node may hold at once, beside its model containers; an agent container gets no GPU, so it never takes a WORKER_MAX_SLOTS slot. Each is limited to 2 GiB of memory and 2 CPUs |
WORKER_MAX_AGENT_INFLIGHT | WORKER_MAX_AGENT_CONTAINERS | agent runs the node handles at once, counted apart from model requests |
HEALTHCHECK_TIMEOUT_S | 60 | seconds a Cog container’s setup() has to report ready |
HF_TOKEN | unset | Hugging Face token for gated base models; passed only to Turion’s own training and serving containers, never to Cog images you push |
Manual install
Section titled “Manual install”Everything the installer does is plain docker. To do it by hand:
IMAGE=registry.turion.ai/turion/agent:latestdocker pull "$IMAGE"
# check the hostdocker run --rm -v /var/run/docker.sock:/var/run/docker.sock \ "$IMAGE" preflight --control-plane https://api.turion.ai
# network and weight cache (the cache must be world-writable for non-root model images)docker network create turion-netdocker volume create turion-weightsdocker run --rm --entrypoint sh -v turion-weights:/weights "$IMAGE" -c 'chmod 1777 /weights'
# enroll once; prints {"node_id": "…", "key_path": "…"}, keep the node_iddocker run --rm -v turion-agent-state:/var/lib/turion \ "$IMAGE" enroll --control-plane https://api.turion.ai \ --join-token "$TURION_JOIN_TOKEN" --name "$(hostname)"
# run the agentdocker run -d --name turion-agent --restart unless-stopped \ -v /var/run/docker.sock:/var/run/docker.sock \ -v turion-agent-state:/var/lib/turion \ --network turion-net \ -e AGENT_CONTROL_PLANE_URL=https://api.turion.ai \ -e AGENT_NODE_ID=<node_id from enroll> \ -e WORKER_CONTAINER=turion-agent \ -e WORKER_GPU=true \ -e WORKER_WEIGHTS_CACHE_DIR=turion-weights \ "$IMAGE" run- The Docker socket mount is required. Model containers run as siblings of the agent and get the GPUs themselves; the agent image has no CUDA.
WORKER_GPU=truegives model containers the GPUs. Without it they start with no GPU.WORKER_CONTAINERis the agent’s own container name.- The
turion-agent-statevolume holds the node’s private key. Keep it across upgrades; losing it means enrolling again.
The manual path does not start the telemetry containers.
Upgrade the agent
Section titled “Upgrade the agent”Pull the new image and re-create the container with the same volumes and environment, so the node keeps its identity:
IMAGE=registry.turion.ai/turion/agent:latestdocker pull "$IMAGE"docker inspect turion-agent --format '{{range .Config.Env}}{{println .}}{{end}}' | grep -E '^(AGENT|WORKER)_'docker rm -f turion-agent# then the "run the agent" command above, with the AGENT_NODE_ID and settings printed by inspectAn installer-created agent also has telemetry settings (AGENT_METRICS_*) and a turion-otel
volume mounted at /var/lib/turion/otel; keep both if you want telemetry to continue.
Uninstall
Section titled “Uninstall”docker rm -f turion-agent turion-otelcol turion-dcgmdocker volume rm turion-agent-state turion-otel turion-weightsRemoving turion-agent-state discards the node’s key. The node stays listed in your fleet; its
LAST SEEN stops advancing and it receives no work.