Design decisions
Why opod is built this way
Every major design decision in opod on one screen — what it gives you, what it costs, and the decision record behind it — and the architecture told as a short story.
These pages explain why opod is built the way it is. Each decision says what it gives you and what it costs. The other sections say how to use it.
Every decision on one screen
| Decision | What it gives you | What it costs |
|---|---|---|
| One leader per endpoint; workers join it | A failure stays in one model; routing on live load | One extra hop; one small pod per endpoint |
| Control plane off the request path | Endpoints serve through a control-plane outage | Changes and embedded scaling wait for it |
| Front doors and a cell door | No lost requests on a leader restart; one URL | Extra door pods; +0.6 ms at p50 through the cell door |
| Workers named by boot id | A re-created worker is never mistaken for the old one | — |
| An embedded, inference-aware autoscaler | Scales on queue, KV and TTFT, inside measured VRAM | Freezes while the control plane is down |
| KEDA as an option, per endpoint | Scaling and wake from zero survive an outage | One reserved card per endpoint; KEDA must stay up |
| Kubernetes is the only executor, never the truth | Healing and gang landing from Kubernetes; one API | Needs Kubernetes, or k3s from infra up |
| VRAM measured, never assumed | A plan that does not fit is refused before any pod | Unmeasured cards are allocated whole |
| Dedicated by default, shared by choice | No noisy neighbour unless you ask | A card may sit partly empty |
| Advise, do not refuse | Every shape the engine supports | You can build a slow endpoint on purpose |
| Identities, not names | Never adopts or deletes what is not its own | Longer object names |
| Proven per engine and vendor, or refused by name | No plan that fails at load | Untested combinations wait |
| No service pods; every dependency a port | Usable at install; uses what you run | You provide Postgres |
| One deployer for every target | One chart, one render, everywhere | No cloud-specific shortcuts |
| Digest-pinned, signed images, never built on nodes | One known build per endpoint | A patch needs a rollout |
| Verified rollouts that give back what they took | A change is proven before it is promoted | Minutes per change |
| Usage facts, not prices | Clean facts for your own pricing | No money view |
| Governance on the gateway's layer | A request path with no governance cost | No per-user limits without a gateway |
| Request content is not logged | A smaller privacy surface | Prompt logs live in your gateway |
| Core is Apache-2.0 and never knows the control plane | Read, run and keep the request path | Changes must fit a frozen contract |
| A licence never stops a running endpoint | A lapse can never take traffic down | — (no remote revocation, for us) |
| Training is a Job beside endpoints | Idle cards used without double-booking | Not a training platform |
Where a decision changed over time, these pages describe what the code does today.
The architecture as a short story
You own some GPUs. You want to serve a few open models behind an OpenAI-compatible API, and you do not want a model to fall over because something else did.
So each model gets its own endpoint. An endpoint is one leader, a small process with no GPU, and the workers that join it, each one an inference engine on its cards. The leader is the only thing clients talk to. It checks the key, waits for a free slot, picks the least busy worker and streams the answer. Everything it needs to do that sits in files in its own pod, so it does not need anybody else while it serves.
The control plane is the part that decides. It measures every card, keeps a ledger of what each worker holds, and refuses a plan that does not fit before anything starts. When you change a plan, it runs a rollout that proves the change with a real request before it lets the change stay. When traffic moves, its autoscaler adds or parks workers, or hands that job to KEDA when scaling must keep working without it. It does all of this through Kubernetes, which it uses to run things but never to remember what should run.
The control plane is also careful about what it does not do. It does not price your usage, log your prompts, or hold per-user budgets: your own systems and your gateway do those. It installs no database of its own: it uses yours. And it never stops what is running because of a licence.
The runtime under all of this, core, is open source. You can read it, run it alone with opod up and opod join, and keep it whatever you decide about the rest.
Read next
The leader/worker pattern →
Why our own autoscaler, and KEDA →
Kubernetes, capacity and placement →
Install, images and rollouts →
What opod leaves to other layers →
Open core, licence and training →
Last updated · Source: content/docs/design/index.mdx · View as Markdown