Skip to content

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.

On the GPU machine (Linux on x86_64, Docker installed):

Terminal window
curl -fsSL https://get.turion.ai | \
TURION_JOIN_TOKEN=fjt_… \
TURION_CONTROL_PLANE_URL=https://api.turion.ai \
sh -

The installer:

  1. Checks that Docker is installed and the daemon responds.
  2. Pulls the agent image, registry.turion.ai/turion/agent:latest.
  3. Runs the preflight checks below, and stops if the host is not ready.
  4. Enrolls the machine into your fleet with the join token.
  5. Starts the agent as a container named turion-agent, restarted automatically (--restart unless-stopped).
  6. 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.

Set these in the same environment as the join token:

VariableDefaultPurpose
TURION_NODE_NAME$(hostname)name shown in turion fleet get
TURION_IMAGEregistry.turion.ai/turion/agent:latestagent image to run
TURION_NETWORKturion-netDocker network the agent attaches model containers to
TURION_WEIGHTS_CACHEturion-weightsDocker volume or absolute host path for the weight cache; off disables it
TURION_LAZY_PULLoffon enables lazy image pull (SOCI snapshotter); this restarts the Docker daemon
TURION_TELEMETRYonoff 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.

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-smi works on the host but the NVIDIA Container Toolkit is not configured, so containers see no GPU. The remedy is nvidia-ctk runtime configure --runtime=docker and 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.

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:

Terminal window
turion fleet get lab

VERIFIED 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:

Terminal window
docker logs -f turion-agent

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.

These are environment variables on the turion-agent container. Set them by re-creating the container (see Upgrade the agent).

VariableDefaultPurpose
WORKER_MAX_SLOTS1model 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_CONTAINERS8deployed-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_INFLIGHTWORKER_MAX_AGENT_CONTAINERSagent runs the node handles at once, counted apart from model requests
HEALTHCHECK_TIMEOUT_S60seconds a Cog container’s setup() has to report ready
HF_TOKENunsetHugging Face token for gated base models; passed only to Turion’s own training and serving containers, never to Cog images you push

Everything the installer does is plain docker. To do it by hand:

Terminal window
IMAGE=registry.turion.ai/turion/agent:latest
docker pull "$IMAGE"
# check the host
docker 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-net
docker volume create turion-weights
docker run --rm --entrypoint sh -v turion-weights:/weights "$IMAGE" -c 'chmod 1777 /weights'
# enroll once; prints {"node_id": "…", "key_path": "…"}, keep the node_id
docker 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 agent
docker 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=true gives model containers the GPUs. Without it they start with no GPU.
  • WORKER_CONTAINER is the agent’s own container name.
  • The turion-agent-state volume holds the node’s private key. Keep it across upgrades; losing it means enrolling again.

The manual path does not start the telemetry containers.

Pull the new image and re-create the container with the same volumes and environment, so the node keeps its identity:

Terminal window
IMAGE=registry.turion.ai/turion/agent:latest
docker 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 inspect

An 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.

Terminal window
docker rm -f turion-agent turion-otelcol turion-dcgm
docker volume rm turion-agent-state turion-otel turion-weights

Removing 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.