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

# Node Recommendations (Preview)

> Find Karpenter nodes you can remove without affecting workloads, with the steps to remove them and the savings Thoras tracks afterwards.

Node recommendations show nodes you can remove without affecting workloads:
nodes that stopped working, and nodes nothing has used for a day. Each
recommendation shows the evidence, the steps to remove the nodes, and the
monthly cost they add. Thoras never changes your cluster; you decide whether to
follow a recommendation.

Node recommendations are a preview and are off by default.

## Requirements

* **Karpenter v1 on EKS** for removal recommendations. Nodes in EKS managed node
  groups get informational recommendations only.
* **Thoras watches all namespaces**, so it can see every pod on a node. With
  `rbac.namespaces` set, Thoras doesn't check nodes, and the Recommendations tab
  says so.

## Turn on node recommendations

Turn on the feature flag:

```yaml theme={null}
featureFlags:
  enableNodeRecommendationsPreview: true
```

Then `helm upgrade` your release. The worker checks your nodes every 5 minutes.
Recommendations appear on the **Nodes -> Recommendations** tab. A node that has
been NotReady for a day shows up on the first check. Idle time counts from when
Thoras first sees the node idle, so idle recommendations appear a day after you
turn on the flag at the earliest.

## What Thoras recommends

| Recommendation | When it appears | What it suggests |
| - | - | - |
| **Remove a node that stopped working** | A Karpenter node has been NotReady for 24 hours and runs only cluster-wide DaemonSet pods, or pods already shutting down whose replacements are running. | Remove the node. If the pool needs the capacity, Karpenter starts a healthy node. |
| **Remove idle nodes** | Karpenter nodes have run only cluster-wide DaemonSets, such as networking and monitoring agents, for 24 hours. | Remove the listed nodes. Your NodePool settings don't change. |
| **Review idle capacity** | A whole node pool has been idle for 7 days, or an EKS managed node group has idle nodes. | No steps. Removing this capacity means changing pool settings, so Thoras shows the nodes, idle time and cost. |

Thoras doesn't recommend a node when:

* a pod on it is a workload. A DaemonSet counts as cluster-wide only if it runs
  on at least 80% of nodes and in more than one pool. One confined to a few
  pools, such as an ingress tier, counts as a workload;
* a PersistentVolume can only be used on that node, such as a local volume;
* it is cordoned, being deleted, or annotated `karpenter.sh/do-not-disrupt`, or
  one of its pods is;
* Karpenter is already disrupting it;
* more than one node in its pool is NotReady, which usually means an outage
  rather than a broken node. For a node that stopped working, more than one
  NotReady node anywhere in the cluster also holds it back;
* its pool is a static-capacity NodePool, an EKS Auto Mode pool, or runs on
  Fargate.

Thoras doesn't show **Review idle capacity** for a pool that some workload can
only run on: one whose node selector, node affinity, tolerations or GPU requests
fit that pool and none of your busy nodes elsewhere, such as a weekly CronJob or
a Deployment at zero replicas. Thoras checks Deployments, StatefulSets and
CronJobs. It can't see pods created another way, such as by KEDA scaled jobs,
Argo Rollouts and Workflows, CI runners, or operators like Spark.

## Work with a recommendation

Select a recommendation to see its details:

* **Show me how** shows the commands to run, filled in with the node name and
  instance ID, and what each one checks. The recommendation moves to
  **Watching** as soon as you choose it, and Thoras tracks the result. Run the
  commands in order. Steps are hidden if Thoras hasn't re-checked the nodes in
  the last 30 minutes.
* **Defer** hides the recommendation for 7 days. It comes back if it still
  applies.
* **Mark intentional** keeps the capacity on purpose, for example spare capacity
  for failover. Thoras doesn't recommend that pool or node again while it is
  marked. **Restore recommendation** undoes it.

Both **Defer** and **Mark intentional** ask for a reason and an optional note,
which your teammates see on the tab.

With `thorasDashboard.read_only` set, the tab shows recommendations and their
steps, but can't defer or mark them, and doesn't record **Show me how**, so
recommendations never move to **Watching** and no savings are counted.

## How Thoras tracks savings

When you choose **Show me how**, Thoras records the listed nodes, their cost and
the size of the pool. A recommendation is resolved once its nodes leave the
cluster, or once they stop being idle. A week later, Thoras counts the savings
of the removed nodes if the pool stayed smaller by at least as many nodes for
the whole week. Any node added to the pool during that week cancels the savings,
including a scale-up for new demand.

Costs use on-demand list prices for your instance types, or spot prices for Spot
nodes, so discounts such as Reserved Instances and Savings Plans aren't
included. Recommendations marked intentional never count as savings.


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