Skip to content

Pools, tenant scope, and placement

The pool is never used on its own. Every record that mentions a pool mentions the organization alongside it, and the pair tenant_scope + dataplane_pool is what admission and placement both resolve against.

The pair is the unit

flowchart TB
  O["Organization acme<br/>tenant_scope"]
  O --> P1["Pool edge-eu"]
  O --> P2["Pool gpu-a100"]
  P1 --> N1["Node dp-a<br/>scheduler capability"]
  P1 --> N2["Node dp-b<br/>scheduler capability"]
  P2 --> N3["Node dp-c<br/>scheduler capability"]
  N1 --> C["Placement candidate set<br/>for acme"]
  N2 --> C
  N3 --> C

A pool is identified by its organization and its name together, so edge-eu in acme and edge-eu in globex are separate pools with separate members. Every lookup carries both values.

Where the pair is checked

Point What is compared Failure
Invitation mint The pool exists for the organization 404 DATAPLANE_ENROLLMENT_POOL_NOT_FOUND
Enrollment exchange The invitation's pair, against an active enrollment on identity reuse 409 identity reuse requires exact tenant_scope/dataplane_pool parity
Runtime registration The credential's pair, against the active enrollment's 403 RUNTIME_REGISTRATION_SCOPE_MISMATCH
Runtime registration The reported metadata's pair, against the same enrollment 403 RUNTIME_REGISTRATION_SCOPE_MISMATCH
Dispatch, shared profile The enrollment's pair, against workspace metadata 409 DISPATCH_SCOPE_WORKSPACE_TARGET_MISSING

Every comparison is exact equality on both halves.

How placement uses the pool

A node that has enrolled and registered projects a scheduler capability, keyed by tenant_scope, dataplane_pool and dataplane_node_id, and refreshed from its heartbeat with capacity and health:

{
  "capacity": {
    "available": 61,
    "max_active_runtime_instances": 64,
    "used": 3,
    "free_ratio": 0.953,
    "load_ratio": 0.047
  },
  "health_state": "ready"
}

When a project is deployed, the control plane resolves the workspace's organization and considers every capability in it.

The candidate set spans the organization, not one pool. A project deployed in a workspace can land on any eligible capability in that organization, whichever pool it reports from.

Eligibility

A capability is a candidate while all three hold:

Condition Rejection
drift_status is anything other than conflict project placement rejected: scheduler capability drift conflict
health_state is ready or healthy project placement rejected: dataplane capability is not healthy
approved_project_runtime_namespaces is non-empty project placement rejected: no approved project runtime namespace

With no candidate left, the deploy is rejected with project placement rejected: no eligible scheduler capability.

Selection

The surviving candidates are sorted, and the first is taken:

selected = sorted(
    eligible,
    key=lambda item: (
        models.normalize_text(item.get("dataplane_pool")),
        models.normalize_text(item.get("dataplane_node_id")),
    ),
)[0]

Pool name is the primary sort key, node id the tiebreaker, both ascending. Placement is therefore deterministic and alphabetical: with pools named batch and edge-eu both healthy, every project lands in batch until its capabilities stop being eligible.

The name therefore decides the order. A deployment that wants a particular pool preferred gets that by naming it to sort first, and one that wants nodes spread across pools gets that through eligibility, by capacity and health rather than by the name.

How dispatch uses the pair

Dispatch scoping depends on the deployment's tenancy policy profile:

if max_tenants <= 1 and max_active_dataplanes_per_tenant <= 1:
    return {"scope_required": False, "profile": "dedicated"}
return {"scope_required": True, "profile": "shared"}

Dedicated profile, which is the default at max_tenants 1 and max_active_dataplanes_per_tenant 1: dispatch resolves with scope_required false, and the pair is carried but not used to filter.

Shared profile: the runtime's token claims must carry dataplane_uuid, the active enrollment supplies the pair, and workspace targets are filtered to workspaces whose metadata carries the same pair. A runtime with no matching workspace gets:

409 DISPATCH_SCOPE_WORKSPACE_TARGET_MISSING
shared dispatch scope has no workspace target matching tenant_scope/dataplane_pool

The profile follows from the tenancy policy values recorded at bootstrap reconcile. See Tenant-scoped bootstrap authority.

Next