---
title: "Concepts"
description: "The words the control plane uses — endpoint, leader, worker, gang, cell, plan, ledger, placer, run — and how they fit together."
url: "https://opod.io/docs/get-started/concepts/"
markdown_url: "https://opod.io/docs/get-started/concepts.md"
section: "Get started"
last_updated: "2026-10-30"
---

# Concepts

> The words the control plane uses — endpoint, leader, worker, gang, cell, plan, ledger, placer, run — and how they fit together.

Every page in these docs uses the terms below. Each one has one meaning.

## Endpoint

An **endpoint** is one model behind one URL. It is one leader and the workers under it. It belongs to one cell and one team.

- One endpoint serves **one model identity**. Two models are two endpoints. LoRA adapters of the same base model are variants of that one identity, served as `<model>:<adapter>`.
- To serve more traffic, an endpoint adds workers or gangs under the same leader. It never adds a second leader.
- Its state is one of `pending`, `converging`, `serving`, `degraded`, `sleeping` or `deleting`. `serving` means the leader produced a first token.

## Leader

The **leader** is core's `opod up` process, one pod per endpoint. It holds no model and no GPU. It serves the OpenAI-compatible API (`/v1/chat/completions`, `/v1/embeddings`, `/v1/rerank`, `/v1/models`), checks API keys, admits requests by worker slots, and routes each request to a worker by load — optionally weighted by each worker's KV-cache use and by the prompt prefix it holds. It reads its plan, its keys and its policy from files mounted in its pod, so it keeps serving when the control plane is down. If the leader pod dies, Kubernetes restarts it in about ten seconds.

## Worker

A **worker** is core's `opod join` process plus one inference engine (llama.cpp, vLLM, SGLang or TensorRT-LLM) in one pod. It holds the model in GPU memory and registers with its leader by heartbeat. A worker row in the plan may ask for several replicas.

## Front doors

**Front doors** are optional stateless copies of the leader's request path in front of one endpoint (`plan.gateways`). With doors on, a leader restart costs no requests. The leader stays the only router that owns the worker list.

## Gang

A **gang** is one engine instance split across several pods, usually on several machines, for a model too big for one. The plan calls it a **shard group** (`shardGroups[]`). Its **head** is the part that coordinates the gang; it is a worker rank, never the leader. llama.cpp gangs use RPC parts, vLLM gangs use Ray, SGLang uses its own launcher. With the LeaderWorkerSet controller installed, a gang lands and restarts as one unit.

## Cell

A **cell** is one Kubernetes cluster and the one control plane that manages it. Every object carries the label `opod.io/cell`. An endpoint lives in one cell. A **fleet** control plane (`mode=fleet`) reads several cells into one view and manages none.

## Plan

The **plan** is the endpoint's desired state: the model, the engine, the workers and gangs, where they run, the autoscale policy and more. It is versioned (`apiVersion: opod.io/v1`) and every write bumps its `revision`. The control plane keeps every revision and why it was written. See [The plan](https://opod.io/docs/control-plane-endpoints/plan/).

A plan is **explicit** (you name nodes, engine and split) or **auto** (you name the model; the control plane chooses and pins the shape).

## KV cache and workload

The **KV cache** is the attention state an engine keeps for every token it is working on, in GPU memory beside the weights. It decides how many requests a worker serves at once and how long each may be. The plan's **workload** (`plan.workload`: request length, peak concurrency, margin) is how you tell the planner the traffic, so it can size the KV cache. A **KV tier** keeps evicted KV blocks in host memory or on disk for reuse. See [KV cache](https://opod.io/docs/control-plane-endpoints/kv-cache/).

## Ledger

The **ledger** is the control plane's record of GPU memory: for every card, its measured size, what each worker claims, and what something outside opod uses. VRAM is the unit of scheduling, not whole GPUs. A card is **dedicated** (one worker owns it) or **shared** (workers packed by a VRAM budget). One node hosts one class at a time.

## Placer

The **placer** chooses the node and card for each worker the plan does not pin. It judges a plan against the ledger, the licence ceiling and the team's GPU quota, and either accepts it or refuses it with an `E-…` code, a reason and alternatives. Preview runs the same judgement and writes nothing.

## Run

A **run** is one change to an endpoint, recorded step by step: a create, an edit, a verified rollout, a rollback, a scale, a sleep, a wake or a delete. A failed run gives back what it took. See [Rollouts and runs](https://opod.io/docs/control-plane-endpoints/rollouts/).

## Ports and adapters

Every dependency of the control plane is a **port** with an embedded default, and an **adapter** you can point it at your own service: usage sink, event bus, metrics, traces, logs, identity, alert notifier, secret store, checkpoints, batch files, KV store. The database is the one port you must provide. See [Connectors](https://opod.io/docs/control-plane-operate/connectors/).

## Roles and teams

People sign in as **viewer** (read), **operator** (endpoints, plans, rollouts, keys) or **admin** (users, licence, connectors). A user with a **team** sees only that team's endpoints, jobs, keys and usage. See [Users, roles and SSO](https://opod.io/docs/control-plane-security/authentication/).
