Skip to content
Docs

Discovery & networking

The router keeps a live picture of every engine it can reach and routes each request to the least-loaded healthy one serving the model.

It probes a set of ports and fingerprints whatever answers:

Engine How it is recognised
vLLM /version plus /v1/models owned by vllm
SGLang /get_server_info (also Lifeboat’s own inference servers)
Lifeboat the control plane’s /api/version and /api/auth/setup-required
llama.cpp /v1/models owned by llamacpp (includes Lifeboat’s GGUF servers)
Ollama /api/tags
LM Studio /api/v0/models (also reports each model’s context window)
Hugging Face TGI /info with a model_id
any other OpenAI-compatible server a working /v1/models

Anything that speaks the OpenAI API can be routed; the fingerprint only decides how the router reads that engine’s load and context sizes.

  • This machine — 127.0.0.1 on the scan ports, every minute.
  • Containers — on Linux it scans the start of each Docker/CNI bridge, so an engine in a container (such as a Lifeboat inference server) is found without a published port.
  • The local subnet — a full sweep on start and every 15 minutes.
  • Targets you add — IPs, hostnames, host:port, URLs or CIDR ranges on the Network page or in discovery.targets; re-scanned every minute.

A Lifeboat control plane load-balances its own SGLang servers, so those are marked “behind” it and traffic is sent to Lifeboat, not to them directly.

Every model is measured, not guessed. When a model first appears the router sends it a short real request and records what it can do, so you see it on the Network and Models pages:

  • context window — the max tokens the engine reports (vLLM max_model_len, llama.cpp n_ctx, LM Studio max_context_length, TGI max_total_tokens);
  • TTFT — time to first token;
  • tokens/sec — single-stream decode speed;
  • concurrency — how many simultaneous requests complete in the check, and the aggregate tokens/sec under that load.

Probes go straight to the engine and are never billed. They refresh on a schedule (discovery.probe_interval_s, default 30 min); press Re-check capabilities on the Network page or call POST /api/engines/probe to measure now, or set discovery.probe_capabilities: false to turn it off.

Every router broadcasts a small UDP beacon on the subnet and also looks for other routers while it scans, so routers on different subnets or in cloud VPCs (where broadcast is dropped) still find each other. A router adopts the engines a peer can see; if it can reach an engine directly it routes to it directly. A shared cluster_secret scopes which routers share with each other.

For a given model the router picks the engine with the lowest load, combining the engine’s own queue metrics (vllm:num_requests_*, sglang:num_*_reqs, llama.cpp counters, KV-cache usage) with the number of requests the router itself has in flight against it.