Skip to content
Opod

Design decisions

What opod leaves to other layers

Why opod exports usage facts but no prices, keeps usage only as a buffer, leaves per-user keys and budgets to a gateway such as LiteLLM, and never logs prompts or answers.

opod does one job: serve tokens on GPUs you own, and manage those GPUs. Several things people expect from an inference platform are left to the layer that already does them well. This page says which, why, and what you lose by it.

Usage facts, not prices

The decision. The control plane records what happened (requests, tokens in and out, GPU-seconds busy and idle, per endpoint, model, team and day) and exports it. It computes no cost, rating, showback, chargeback or invoice, and shows no currency anywhere.

Why. A price is a business rule: list prices, discounts, internal transfer rates, amortised hardware. Every company already has a place where those rules live. A second set inside an inference product would be wrong in some way for every customer.

What it gives you. Clean facts to join with your own prices. GPU-hours per day are a counter, so a day's total outlives the raw rows behind it. Cost per team is one join: opod's GPU-hours per endpoint with your gateway's tokens per team, labelled "allocated". See Usage → Cost per team.

What it costs. No money view in the console. You write the join, or your BI tool does.

Our store is a buffer, not a home

Usage lives in your store (ClickHouse, Postgres, or Parquet objects in S3). The control plane's spool is a table in its database that gets each row there: it never deletes a row your sink has not taken, whatever the retention window says. With no sink connected, the control plane still installs and buffers, and says so loudly: the doctor's usage row reads buffer with "NO USAGE SINK IS CONNECTED", and the alert usage.no-sink fires once the buffer grows past what an outage explains.

The cost: if your sink is down longer than the retention window, rows are held and the buffer grows, on purpose. Nothing unsent is ever dropped.

Governance on its own layer: a gateway in front

The decision. Keys per user, team and app; requests and tokens per minute; daily and monthly quotas; budgets and spend alerts; which team may use which model; PII and prompt-injection checks: these are a gateway's jobs. You run a gateway such as LiteLLM in front of opod for them. opod documents the setup and never ships, configures or reads the gateway.

An opod key is an endpoint access token: it opens one endpoint (or one cell-door route), carries an expiry and a request class, and can be revoked. Overload is handled by request classes in the leader: critical, standard and sheddable, with fair share inside a class.

Why. Earlier versions put per-key limits and a guardrail webhook in core's leader. A gateway does those jobs per user and per team, which a key-only limit cannot; and every check added to the leader is a cost on every token. We took them out.

What it gives you.

  • A leader whose request path does no network call, disk read or shared counter for governance.
  • The gateway you choose, with its own user model, its guardrail plugins and its upgrades, separate from opod's.
  • Either side can be upgraded, moved or removed without the other.

What it costs. With no gateway, opod has no per-user limits, quotas, budgets or prompt checks. One key can fill an endpoint up to what request classes shed. You must also close every other way in: require keys on the endpoint, and admit only the gateway with a NetworkPolicy. The LiteLLM guide has every step.

See Gateways in front.

Request content is not ours to log

The decision. opod never stores prompts or answers. Usage rows carry counts, ids and timings, never text. The plan field that would have turned content logging on was removed rather than left unimplemented.

Why. Prompts and completions are the most sensitive data a customer has. Storing them makes a product responsible for retention, redaction, subject access and deletion, forever. That is not what opod is for.

What it gives you. A smaller privacy surface to review: usage rows and events carry counts, ids and timings, never text, and no setting asks opod to keep a copy of requests. Operational logs (the control plane's records, the audit stream) still go to your sink: stdout, OTLP or Splunk.

What it costs. If you need prompt and answer logs, you keep them in your gateway, where your own policy for them already lives.

Last updated · Source: content/docs/design/boundaries.mdx · View as Markdown