> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Node provisioning

> How e6data adds and removes EKS nodes for query clusters, the node pools it needs, and which Karpenter options are supported.

ReferenceApplies to: CloudPrem on AWS

e6data adds machines when a query cluster resumes and removes them when it suspends. Use Karpenter: e6data's build (standard) or upstream Karpenter.

## What e6data needs from nodes

The node scaler must add nodes that meet these requirements:

* Engine nodes with the label and taint `workspace-name=<ws>:NoSchedule`, and workspace platform nodes with the label and taint `e6data-node-type=platform:NoSchedule`.
* arm64 (Graviton) machines by default, of the types your release uses, with local NVMe for engine spill.
* On-demand capacity for executors.
* Scale from zero when a query cluster resumes, and remove nodes after it suspends.

## Which to choose

| Option | Status | Choose it when | You lose |
| - | - | - | - |
| Karpenter (e6data's install) | Standard | Default | Nothing |
| Upstream Karpenter | Supported, including local NVMe spill (tested with Karpenter 1.8.1 on EKS 1.35) | You already run your own Karpenter | Faster cluster resume: needs e6data's Karpenter |
| Cluster Autoscaler on managed node groups | Not supported today | - | - |

The install steps in these docs ([Configure registry, VPC, EKS, and networking](https://docs.e6data.com/platform/deploy/aws-cloudprem/configure-registry-vpc-eks-networking.md)) install upstream Karpenter. e6data's build comes with e6data's managed install, and these docs have no steps to install it yourself: ask e6data if you need faster cluster resume.

## System and workload node pools

Keep system pods and e6data engines on separate nodes.

| Pool | AWS | What runs there |
| - | - | - |
| System | EKS managed node group, untainted: 2 x `t3.medium` on most e6data clusters (some use 2 to 4 x `t4g.large`) | Cloud add-ons, Karpenter, CoreDNS, and the e6data operator, cert-manager, KEDA and VPA (pinned there by node affinity). e6data's install creates no operator NodePool |
| Workspace platform | `<ws>-platform-nodeclass` / `<ws>-platform-nodepool`: label and taint `e6data-node-type=platform:NoSchedule`, on-demand, t4g xlarge or 2xlarge, 50 GiB root disk, IMDSv2. Or a dedicated node group with the same label and taint | Console, query router (Envoy, xDS), compaction, metadata services |
| Engine | `<ws>-nodeclass` / `<ws>-nodepool`: label and taint `workspace-name=<ws>:NoSchedule`, arm64, the release's machine types, local NVMe striped as RAID0, scales from 0, 100 GiB gp3 root disk, IMDSv2. Or a dedicated node group | Planner, queue, executors |

System and operator overhead, per cluster: about 4 vCPU. Engine and per-workspace machine sizes are in [Sizing and cost](https://docs.e6data.com/platform/deploy/aws-cloudprem/sizing-and-cost.md).

> [!WARNING]
>
> If you install with the steps in [Deploy workspace and e6data](https://docs.e6data.com/platform/deploy/aws-cloudprem/deploy-workspace.md) instead of e6data's managed install, you get one engine NodePool instead of two pairs. It allows Spot for every workload (including the console, planner and queue), uses a 10% disruption budget, keeps empty nodes for 1 hour, and replaces nodes after 30 days (Karpenter's default). Set on-demand capacity and your own budgets and expiry if that doesn't suit you. Its node class matches e6data's install on disks and metadata: local NVMe striped as RAID0, a 100 GiB gp3 root disk and IMDSv2 only.

## Upstream Karpenter with local NVMe spill

To spill to local NVMe with upstream Karpenter, set `instanceStorePolicy: RAID0` on the workspace EC2NodeClass and add an NVMe requirement on the workspace NodePool, because engine pods are pinned to `<ws>-nodepool`. Faster cluster resume needs e6data's Karpenter.

## Cost impact

* With Karpenter, machines match each request and are removed after suspend.
* Fixed node pools sized larger than needed cost more, and empty nodes stay until the scale-down delay.

## Preflight check

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
kubectl get nodepools,ec2nodeclasses 2>/dev/null
```

Check your vCPU quota covers the machine families your release uses ([Sizing and cost](https://docs.e6data.com/platform/deploy/aws-cloudprem/sizing-and-cost.md)).

## Verify

1. Resume a cluster from the e6data console. New nodes appear (NodeClaims) and the cluster becomes **Running**.
2. Run a query and check it appears in **Query History**.
3. Suspend the cluster. The engine nodes are removed.

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| Pods `Pending`, "Insufficient cpu" | Machine type too small | Add larger types to the NodePool |
| Cluster start times out with `E6_CLUSTER_NODE_BOOTSTRAP_TIMEOUT` on Spot | No Spot capacity for that size | Allow on-demand in the engine NodePool |

## Limitations

* Cluster Autoscaler: Not supported today.
* A query still running when its node is lost (Spot reclaim or hardware failure) fails, with no automatic retry. Queries that finish while the node drains complete. Run executors On-Demand.
* Faster cluster resume needs e6data's Karpenter.

## See also

* [Use an existing EKS cluster](https://docs.e6data.com/platform/deploy/aws-cloudprem/use-existing-cluster.md) - install into a cluster you already run.
* [Permissions reference](https://docs.e6data.com/platform/deploy/aws-cloudprem/permissions-reference.md) - the Karpenter role.
* [Sizing and cost](https://docs.e6data.com/platform/deploy/aws-cloudprem/sizing-and-cost.md) - machine types, vCPU and quotas.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.