Skip to content

The hosted and self-hosted split

Xratu runs in two topologies, and the difference between them is who operates the control plane. The contracts, the components and the execution path are the same in both, so the choice is an operational one rather than an architectural one.

For the day-0 procedure for each, see Hosted deployment and Self-hosted deployment.

Where each component runs

flowchart LR
  subgraph XO["OPERATED BY XRATU"]
    direction TB
    HC["Control plane"]
    HS[("Metadata store")]
    HC --- HS
  end
  subgraph YO["YOUR INFRASTRUCTURE"]
    direction TB
    HN["xratud nodes"]
    HR["Project runtimes"]
    HB[("Registry, bucket")]
    HN --> HR
    HN --- HB
  end
  HN -->|"outbound pull"| HC
flowchart LR
  subgraph YO["YOUR INFRASTRUCTURE"]
    direction LR
    subgraph CPB["Control plane"]
      direction TB
      SC["Control plane"]
      SS[("Metadata store")]
      SC --- SS
    end
    subgraph DPB["Nodes"]
      direction TB
      SN["xratud nodes"]
      SR["Project runtimes"]
      SB[("Registry, bucket")]
      SN --> SR
      SN --- SB
    end
  end
  SN -->|"pull"| SC

The two diagrams differ in one line: which box the control plane sits in. The node side, the direction of the one edge between the halves, and what holds bytes are the same in both.

Component Hosted Self-hosted
API server, scheduler, controller manager, dispatcher Operated by Xratu Operated by you
Metadata store Operated by Xratu Yours, and you choose the backend
Identity latch and finalization Activated by Xratu Activated by you at finalization
xratud nodes Yours Yours
Project runtimes and kernels Yours Yours
Registry, bucket, SPIRE, Kubernetes Yours Yours

Everything below the control plane is identical, because everything below the control plane is already in your infrastructure in both shapes.

The contracts are identical

The assignment envelope, the operator lane, the return lane and the report path do not vary by topology. A node built against a hosted control plane works against a self-hosted one with a different endpoint and trust bundle reference, because neither the shape of what it receives nor the checks it performs depend on who runs the other side.

spec:
  control_plane:
    base_url: https://control-plane.example.internal
    trust_bundle_ref: bootstrap-trust://default/v1

This is also why the tenant byte rule is a property of the architecture rather than of the hosted offering. The control plane is a metadata plane in both topologies, so the same code path runs whoever operates it. See The tenant byte rule.

What changes for you

Concern Hosted Self-hosted
Store backend and profile Latched by Xratu Your choice at finalization, then immutable
Availability of the control plane Xratu's leader election and failover Your topology, leader election and recovery paths
Upgrades Coordinated by Xratu, within the contract matrix Yours to sequence, and the matrix requires the planes to move together
Endpoint exposure A public endpoint your nodes reach outbound Your exposure decision, port-forward by default
Air-gapped operation Requires a reachable endpoint Supported, and implies self-hosted

An air-gapped deployment is a self-hosted deployment with private routing for every endpoint and build-time dependency resolution. It is the one case where the topology choice is made for you.

Sizing follows the same shape

Node count, worker slots per node and project runtime replicas are yours to size in both topologies, because nodes are yours in both. What differs is that in a self-hosted deployment you also size the control plane: the metadata store, the API server replicas, and the controller manager that holds the leader lease.

See Component inventory for the components those figures apply to.