Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create Compute

Provision additional Compute (node pools) for Tenant Data Product workloads.

During initial DataOS setup, a base Compute Resource is created and attached to the Data Plane and Tenant.

Once the Data Plane is connected and the initial Compute is available, you can provision more Compute Resources for Data Product workload needs such as:

  • Data processing

  • Query execution

  • Machine learning Data Product workloads

Compute abstracts the underlying cloud infrastructure and exposes standardized compute pools that DataOS Resources such as Vulcan, Nilus, Minerva Clusters, Lakehouses, and Applications consume.

Prerequisites

Before creating or using Compute, confirm:

  • The Tenant has an attached Data Plane (configured at Tenant setup by the Operator).

  • You can apply Resources to the Tenant via the DataOS CLI.

  • You have the Tenant role required to create Compute.

Creating a Compute and using a Compute are separate actions. A user who creates a Compute receives Can Edit and Can Manage Access on that Compute, but using it to run Data Product workloads requires Can Use Compute.

For more details, see Compute: Access control.

Define a Compute

Create additional Compute Resources with a manifest in this format:

name: ${COMPUTE_NAME}
version: v2alpha
type: compute
spec:
  dataplane: ${DATAPLANE_ID}     # must reference an existing data plane
  nodeSelector:
    dataos.io/purpose: core-kernel
  nodePool:
    labels:
      dataos.io/purpose: core-kernel

Apply

Inspect

Delete

Full manifest

Configuration attributes

Declare Compute-specific attributes inside the spec key:

Attribute

Data Type

Requirement

Description

spec.dataplane

string

Required

Name of the Data Plane Resource for which the Compute Resource is being created

spec.nodeSelector*

map[string]string

Required

Node-level scheduling constraint. Pods land only on matching nodes.

spec.aliases

[]string

Optional

Alternative names for backward compatibility and migration scenarios.

spec.nodePool.labels*

map[string]string

Optional

Pool-level labels used for grouping and autoscaling.

spec.nodePool.taints

[]Taint

Optional

Kubernetes taints requiring Data Product workloads to explicitly tolerate scheduling on these nodes.

Attribute notes

The two attributes marked * in the table above need more detail.

spec.nodeSelector

Use nodeSelector to specify the key-value properties used for node selection. Set the desired node labels in the Compute spec, and Kubernetes schedules the Pod only onto nodes that match every label.

Data Type

Requirement

Default Value

Possible Value

mapping

Required

none

dataos.io/purpose: runnable/query/gpu

For custom Compute Resources, the key-value pair depends on the cloud provider.

Example usage:

spec.nodePool.labels

The nodePool attribute holds the node-pool-specific key-value properties declared in the nodePool mapping.

Data Type

Requirement

Default Value

Possible Value

mapping

Optional

none

dataos.io/purpose: runnable/query/gpu

Example usage:

Do not confuse nodeSelector with nodePool.labels. nodeSelector is the strict node-level filter that decides where a Pod can land. nodePool.labels describes the pool itself and is used for grouping and autoscaling.

How DataOS Resources consume a compute

A Data Product workload like app, minerva, or vulcan references a compute by name to set the infrastructure environment where it runs.


Best practices

  1. Name by intent, not by hardware: Prefer analytics-compute, ml-gpu-compute, core-kernel-compute over m5-xlarge-compute. Hardware changes; intent doesn't.

  2. Pair each Compute with a clear node-pool taint when it targets premium hardware (GPU, high-memory). The taint stops cheap Data Product workloads from stealing the node.

  3. Use aliases when renaming a Compute so existing Data Product workloads keep working until you migrate them.

  4. Keep dataplane correct: A common bug is pointing a compute at a Data Plane that does not exist in this Tenant. Confirm with dataos-ctl resource get -t dataplane -n <id> first.

  5. Use per-job Compute in workflows: Give cheap steps cheap Compute and expensive steps premium Compute. Do not force one Compute on a multi-stage DAG.

  6. Document each Compute in description and tags: Other teams in the Tenant inherit it from a name like analytics-compute. A two-line description prevents wrong usage.


Troubleshooting

Validation error: dataplane is required
  • Likely cause: spec.dataplane is empty or the environment variable was not substituted.

  • Where to look: Check envs/usecases.env, then re-render the manifest.

dataplane not found: <id>
  • Likely cause: The Data Plane resource does not exist in this Tenant.

  • Where to look: Run dataos-ctl resource get -t dataplane -n <id>.

Validation error: nodeSelector must be non-empty
  • Likely cause: spec.nodeSelector is missing or empty.

  • Where to look: Add at least one label under spec.nodeSelector.

Data Product workload stuck in Pending after applying
  • Likely cause: No nodes match the nodeSelector or required taints.

  • Where to look: Run kubectl get nodes --show-labels on the Data Plane cluster.

Data Product workload schedules on the wrong nodes
  • Likely cause: Two Computes share the same nodeSelector.

  • Where to look: Make selectors disjoint. Use nodePool.taints for premium pools.

Renaming broke other Data Product workloads
  • Likely cause: Existing Data Product workloads still reference the old Compute name.

  • Where to look: Add the old name to spec.aliases before deleting, then migrate consumers.

Last updated

Was this helpful?