Skip to content

dp_count

dp_count is the number of nodes in one installation. It is the primary scale knob, and it maps to the StatefulSet's replica count.

xratu dataplane install prepare acme edge-eu dp-eu-west1 --dp-count 2

What it actually scales

At apply, the contract scales the installation's StatefulSet:

kubectl -n dp-eu-west1 scale statefulset/dp-eu-west1 --replicas=2

Each replica is a separate node: its own pod, its own durable volume, its own installation identity, its own enrollment, and its own runtime credential.

flowchart TB
  I["Installation dp-eu-west1<br/>dp_count 2"] --> N0["Pod dp-eu-west1-0<br/>own volume, own enrollment"]
  I --> N1["Pod dp-eu-west1-1<br/>own volume, own enrollment"]
  N0 --> P["Pool edge-eu"]
  N1 --> P

They share the installation's namespace, service accounts, cloud identities, pool and organization. What they do not share is identity: two pods are two data planes as far as the control plane is concerned.

It sets the invitation count too

Apply mints one invitation per node label, so dp_count decides how many are minted and which labels they are bound to. At --dp-count 2 the enrollment secret carries codes for dp-eu-west1-0 and dp-eu-west1-1.

Raising dp_count and applying again mints codes for the new labels. See Minted and injected material.

Changing it

--dp-count is accepted on prepare, apply and up, so you can scale an existing installation without regenerating its bundle:

xratu dataplane install apply acme edge-eu dp-eu-west1 --dp-count 3

Scaling down retains volumes. The StatefulSet is rendered with:

persistentVolumeClaimRetentionPolicy:
  whenDeleted: Retain
  whenScaled: Retain

so a node scaled away keeps its durable identity, and scaling back up returns the same node rather than creating a new one. See Durable runtime state.

What it is bounded by

Two quotas apply, both from the organization's enrollment governance:

Quota Default Effect
max_active_dataplanes_per_tenant 1 How many data planes one organization may have active
max_active_runtime_instances_per_dataplane 64 Runtime instances per data plane

A dp_count above the data plane quota fails at enrollment rather than at scale, with 409 tenancy policy active dataplane quota exceeded. See Tenant-scoped bootstrap authority.

Choosing between dp_count and a second installation

Situation Use
More of the same node, same cloud and pool dp_count
A different cloud, region, or pool A second dp_install
Different provider configuration A second dp_install
Different approved runtime namespaces A second dp_install

See dp_install.