Give the scheduler your cluster's node pool configuration so it places work only where it fits, and report live node capacity to the console.

Resource-aware scheduling

With resource-aware scheduling, a queue places an action only on a cluster that can run it, waits when a cluster is full, and fails up front an action that no cluster could ever run. The scheduler decides this from your cluster’s node pool configuration: the node pools, the size of a node in each pool, the accelerators on it, and how far the pool can scale. For how queues, resource caps, and scheduling policies work, see Resource caps and scheduling in the user guide. This page covers what a self-managed data plane contributes and what you configure.

You declare the node pool configuration for each cluster with flyte update node-groups; the scheduler reads only what is declared, not what the operator observes. Until a cluster has a declaration, the scheduler treats it as able to run anything and places work on any healthy cluster the queue routes to. Resource caps and the scheduling policy apply either way. This page covers the declaration and the optional reporting of observed capacity.

What the scheduler uses

The scheduler reads two kinds of information about a cluster. Only the first one affects placement.

Information Source Used for
Node pool configuration Declared by you with flyte update node-groups Which clusters can run an action, how much room a cluster has at full scale, and which cluster has the most room left
Observed node capacity Reported by the data plane operator when nodeCapacity is on; never used for placement The Node pools tab on the cluster page: nodes, pods, CPU, memory, and accelerators in use per pool

A queue’s resource caps are a third limit, set on the queue itself. The scheduler applies them with or without the node pool configuration.

Version requirements

What Needs
flyte get node-groups and flyte update node-groups, and NodeGroups in Python flyteplugins-union 0.20.2 or later
Queue resource caps from the CLI or Python flyteplugins-union 0.16.0 or later (covered by the line above)
Writing node groups Permission to manage the cluster (the MANAGE_CLUSTER action on it)
Observed node capacity on the Node pools tab Data plane chart 2026.11.0 or later for the nodeCapacity switch

Declare your node pools

The declaration is the list of node pools that task pods can land on, with what one node in each pool offers and how far the pool can scale. The scheduler decides from it which clusters can run an action and which has the most room left: its declared full-scale capacity minus the work Union.ai has already sent there.

Export the current declaration, edit it, and apply it back. update replaces the whole set, so always work from the complete list:

flyte get node-groups <cluster> --export > node-groups.yaml
# edit node-groups.yaml
flyte update node-groups <cluster> -f node-groups.yaml

Node groups covers the commands: the export format, editing in $EDITOR, the removal prompt, and concurrent edits.

A declaration with two pools, an on-demand CPU pool and a spot/on-demand GPU pool. Each pool carries the capacity of one of its nodes in allocatable_resources; the scheduler reads that — not the instance-type name — to decide what fits:

node_groups:
- name: cpu-workers
  min_nodes: 1
  max_nodes: 20
  node_disk_size_gbs: 100
  node_instance_types: [m6i.4xlarge]
  capacity_types: [CAPACITY_TYPE_ON_DEMAND]
  allocatable_resources:
  - name: CPU
    value: "15"
  - name: MEMORY
    value: "60Gi"
- name: gpu-h100
  min_nodes: 0
  max_nodes: 4
  node_disk_size_gbs: 500
  node_instance_types: [p5.48xlarge]
  capacity_types: [CAPACITY_TYPE_ON_DEMAND, CAPACITY_TYPE_SPOT]
  allocatable_resources:
  - name: CPU
    value: "189"
  - name: MEMORY
    value: "2000Gi"
  - name: GPU
    value: "8"
  accelerators:
  - device: H100
    manufacturer: NVIDIA
    count: 8

Give every pool a unique name and positive CPU and MEMORY in allocatable_resources. The instance-type name is free-form and is not resolved to a capacity, so allocatable_resources is the only size the scheduler knows. It skips a pool without positive CPU and MEMORY, and treats a cluster with no such pool as undeclared.

Declare only labels your nodes carry. The scheduler checks a task’s pod-template nodeSelector against a pool’s declared labels: a pool that declares the same key with a different value can’t run the task.

The export shows every field the scheduler reads, in the format the server stores: allocatable resources per node, accelerators with their partition size, taints, and CPU architecture. Fill allocatable_resources from the Allocatable section of kubectl describe node on a node of the pool (it is below the node’s physical capacity because the kubelet reserves some), and the rest from the pool’s definition in your cloud provider or autoscaler. Resource quantities are strings. Leave out pools reserved for Union services or other workloads: a declared pool is a pool the scheduler counts on.

Keep the declaration in sync with the cluster

The scheduler decides from the declaration, not from the nodes that exist. Update it in the same change that adds, resizes, or removes a node pool. A GPU pool you added but did not declare is invisible to the scheduler. If every cluster the queue routes to has a declaration and none offers that GPU, the task fails as INFEASIBLE. A pool you removed but left declared still counts as room, so work is placed on the cluster and then pends in Kubernetes. Turn on observed capacity (below) to see the declaration next to what the cluster is actually running on the cluster page’s Node pools tab.

NodeGroups.get and NodeGroups.set in flyteplugins.union.remote do the same from Python; see the NodeGroups reference.

Report observed node capacity

Turn on nodeCapacity to have the operator report each node pool’s nodes, pods, CPU, memory, and accelerators into cluster health. In the Union.ai UI, open Clusters and select the cluster; its Node pools tab shows your declaration next to what the cluster is doing. The report is for you to read; the scheduler does not use it.

config:
  operator:
    clusterHealth:
      nodeCapacity:
        enabled: true
        clusterWidePods: true

The setting gives the operator read-only cluster-wide access to nodes (get, list, watch), and to pods when clusterWidePods is set. On chart 2026.11.4 or later, the chart adds these rules to the operator’s existing union-operator-cluster-read ClusterRole; on 2026.11.0 through 2026.11.3, it renders a separate ClusterRole. The grant applies whether or not the data plane runs in single-namespace mode.

Set clusterWidePods: true when the operator is namespace-limited, which is the default: singleNamespace (unset means true) on chart 2026.11.4 or later, or the top-level low_privilege: true on 2026.11.0 through 2026.11.3. Without it, the operator reports node counts and allocatable capacity but not usage or accelerators. With singleNamespace: false, the operator ignores the setting.

nodeCapacity needs an operator image at 2026.10.2 or later; an older image exits on startup when the key is set. The chart’s default image qualifies, so this matters only if you pin image.union.tag to an older version.

Set resource caps on your queues

Caps are where you limit how much a queue may consume; node groups declare only what a node offers, they do not cap usage. Caps need nothing from the data plane. Set them per queue with the CLI, Python, or the console, as described in Set caps on a queue. Size each queue’s max_resources and max_accelerators to the share of the cluster that queue may hold, and choose greedy_capacity unless the queue runs gang-style jobs.

Verify

  • flyte get queue <name> --watch shows each cap with its usage.
  • The cluster page’s Node pools tab lists your pools with live counts once nodeCapacity is on and the operator has pushed a snapshot.
  • flyte get node-groups <cluster> shows the declaration the scheduler reads.
  • When every cluster the queue routes to has a declaration, a task requesting an accelerator that none of those clusters declares fails with INFEASIBLE; the message describes what they offer.

See also