Pools across regions and clouds¶
A pool carries its organization and its name. Cloud, region and cluster are facts each node reports about itself, so the pool stays cloud-agnostic and the topology is assembled from what enrols into it.
One control plane owns pools on several clouds at once, and a binding whose project and model land in different pools is planned by the control plane rather than routed by hand.
What a node contributes¶
An enrolled, registered node projects a scheduler capability, identified by organization, pool and node id. Its fields arrive in two parts.
| Field | Part | Used for |
|---|---|---|
provider |
Static | Which cloud the node runs on |
region, location |
Static | Where it runs |
cluster_identity |
Static | Which cluster it belongs to |
dataplane_namespace, registry_root |
Static | Where workloads and bytes land |
approved_project_runtime_namespaces |
Static | Whether it can host a project runtime |
approved_model_runtime_namespaces |
Static | Whether it can host a model runtime |
managed_fabric_baseline, private_route_capabilities |
Static and heartbeat | Whether it can terminate a private fabric route |
capacity, health_state |
Heartbeat | Eligibility and load |
The static half is registered as the node's scheduler authority. The heartbeat
half refreshes capacity, health and fabric readiness on every report. A runtime
report for a node whose static authority has yet to be registered is answered
scheduler_static_authority_missing, and a report missing organization, pool or
node id is answered scheduler_identity_missing.
A mixed-cloud organization¶
flowchart TB
CP["Control plane<br/>owns every pool"]
CP --> O["Organization acme"]
O --> P1["Pool gcp-eu"]
O --> P2["Pool aws-us"]
P1 --> C1["Capability<br/>provider gcp<br/>region eu-west1<br/>model namespaces approved"]
P2 --> C2["Capability<br/>provider aws<br/>region us-east1<br/>project namespaces approved"]
C1 --> PL["Binding locality planner"]
C2 --> PL
PL --> A["Assignments to both nodes"]
One install bundle targets one cloud and names one pool, so a pool tends to hold one cloud's nodes in practice. That is a convention you create by how you install, and the pool record itself admits nodes from any cloud. Naming pools for the cloud and region they hold keeps the convention readable in enrollment records, placement results and dispatch traces.
When a project and a model land in different pools¶
A private model binding is planned from three inputs: the project's placement, the model's placement, and the scheduler capabilities of the organization. The planner produces one of five outcomes.
flowchart TB
S["Private model binding"] --> Q0{"Route exposure<br/>public?"}
Q0 -->|yes| R0["reject<br/>public_model_binding_route_rejected"]
Q0 -->|no| Q1{"Same pool and node,<br/>or same cluster and namespace?"}
Q1 -->|yes| L["already_local_private_model_target<br/>same-placement-private-service"]
Q1 -->|no| Q2{"Project's node approved<br/>for model namespaces?"}
Q2 -->|yes| E["model_target_expansion<br/>deploy the model beside the project"]
Q2 -->|no| Q3{"Model's node approved<br/>for project namespaces?"}
Q3 -->|yes| P["project_relocation<br/>move the project to the model"]
Q3 -->|no| Q4{"Both nodes advertise<br/>managed fabric?"}
Q4 -->|yes| F["approved_private_cross_dp_fabric_route<br/>xratu-managed-private-fabric"]
Q4 -->|no| R1["reject<br/>no_private_binding_plan_available"]
| Plan kind | Condition | Route class |
|---|---|---|
already_local_private_model_target |
Project and model share a pool and node, or share a cluster and namespace | same-placement-private-service |
model_target_expansion |
The project's node is approved for model runtime namespaces | same-placement-private-service |
project_relocation |
The model's node is approved for project runtime namespaces | same-placement-private-service |
approved_private_cross_dp_fabric_route |
Both nodes advertise the managed fabric capability | xratu-managed-private-fabric |
reject |
The binding asks for public exposure, or no plan above applies |
The order matters. Co-location is preferred over moving a workload, moving a
workload is preferred over spanning a network, and the fabric is reached only
when the first three are unavailable. A binding between gcp-eu and aws-us
therefore takes the fabric route when neither node can host the other's
workload, and takes a local route when one of them can.
The managed fabric route¶
When the fabric plan is chosen, the control plane emits a pair of assignments, one to each node.
| Assignment | Goes to | Establishes |
|---|---|---|
Export, model.binding_route.export.v1 |
The model's node | A gateway in front of the model service, admitting one destination |
Import, model.binding_route.import.v1 |
The project's node | A local service in the project's namespace that reaches that gateway |
Both carry the source and destination pool and node id, the trusted node identities for the pair, a policy digest, and SPIFFE references derived from the binding:
spiffe://xratu/workspace/<workspace_uuid>/binding/<binding token>
spiffe://xratu/dataplane/<dataplane_node_id>/gateway/<gateway service ref>
The service and gateway references are derived from the binding id, so both nodes compute the same names for the same binding:
mbind-<token> the local service the project calls
mbind-export-<token> the gateway in front of the model
mbind-import-<token> the gateway the project's node dials
The node's fabric capability serves two transport lanes, a gRPC lane on 7443 and
a WireGuard lane on 51820, and reports route state as route_pending,
route_ready, route_blocked or teardown_ready.
Readiness¶
The plan distinguishes a route that is ready from one whose assignments are still outstanding. Readiness evidence is supplied by the nodes, and three fields decide it:
| Field | Required value |
|---|---|
health_status |
ready or healthy |
mtls_identity |
Present |
last_private_handshake_timestamp |
Present |
With all three, the plan is private_fabric_route_ready. Otherwise the same
fabric plan is returned as private_fabric_route_assignments_required, carrying
the assignments that will establish it. The evidence also carries
authenticated_peer_identity, network_policy_digest, gateway_probe_healthy
and failure_reason for diagnosis.
What the control plane emits, and what a node does¶
The planner reads facts the data planes have already reported and emits plans and assignments. Establishing the route is the node's work: the control plane reaches no cluster, cloud, mesh or network API to do it.
sequenceDiagram
participant N1 as Model node, gcp-eu
participant CP as Control plane
participant N2 as Project node, aws-us
N1->>CP: heartbeat, capability facts
N2->>CP: heartbeat, capability facts
CP->>CP: plan private model binding
CP-->>N1: export assignment
CP-->>N2: import assignment
N1->>N1: bring up export gateway
N2->>N2: bring up local service and dial the gateway
N1->>CP: route readiness evidence
N2->>CP: route readiness evidence
CP->>CP: plan reports private_fabric_route_ready
That separation is what lets one control plane own pools on several clouds without holding credentials for any of them.
Designing pools for this¶
Approve namespaces where you want co-location. The two local plans depend on
approved_project_runtime_namespaces and approved_model_runtime_namespaces.
A node approved for both can host either side of a binding, which keeps traffic
inside one cluster.
Advertise the fabric where a span is expected. A cross-cloud binding reaches the fabric plan only while both nodes carry the managed fabric capability.
Name pools for their cloud and region. The name is what appears in placement results and in both assignments, and it is also the primary placement sort key. See Pools, tenant scope, and placement.
Keep one install bundle per cloud. An installation target is one cloud, so a mixed-cloud organization is several installations enrolling into the same organization under different pool names.
Related¶
- Scheduling versus identity for why a project author cannot select the pool any of this lands in.
- Multi-cloud architecture for the install and connectivity side of a mixed-cloud deployment.