# Node Consolidation

Stranded pods keep half-empty nodes running. Sedai Compactor moves them continuously so your autoscaler can remove nodes, on EKS, GKE, and AKS.

## Node Consolidation That Finishes the Job

One stranded pod can keep an otherwise empty node running for weeks. Sedai Compactor finds those pods continuously and moves them, so your autoscaler can remove the node and the savings reach your bill.

## Kubernetes Places a Pod Once and Never Looks Back

Workloads scale down, deployments roll, traffic shifts. Your cluster’s layout gets less efficient every day, and the default scheduler never revisits it.

### No rebalancing by default

The default scheduler never revisits placement. As workloads shrink, nodes are left nearly empty unless something moves the pods.

### One pod keeps a node alive

Your autoscaler can only remove a node once it’s empty or lightly loaded. A single stranded pod is enough to keep you paying for the whole node.

### Manual compaction doesn’t stick

Someone has to remember to run it, and the default scheduler spreads new pods right back onto the nodes you just emptied.

## Guardrails That Are Built In, Not Bolted On

Compactor moves running pods, so safety can’t be best-effort. Every eviction respects your disruption budgets, critical infrastructure is excluded by default, and production clusters get conservative settings automatically.

## Works With the Autoscaler You Already Run

Compactor never deletes a node. It clears the way, and your existing autoscaler removes the node on its own schedule. On Karpenter-managed node pools, it steps aside for Karpenter’s own consolidation. Everywhere else, including all of GKE and any EKS or AKS cluster on Cluster Autoscaler, it adds continuous consolidation those clusters didn’t have before. Paired with Sedai Scheduler, the nodes it empties stay empty long enough to be removed.

### Bin Packing & Pod Placement

Sedai Scheduler packs new pods densely, so emptied nodes don't refill

### Pod Rightsizing

Smaller, accurate requests open up the space needed for consolidation

### Karpenter Optimization

On Karpenter? Give it better inputs and denser placement.

## Manual Compaction vs. Sedai Compactor

Same goal. Only one of them keeps the nodes off your bill.

| Manual compaction | Sedai |
| --- | --- |
| Runs only when someone remembers | Runs continuously, with no manual step |
| Emptied nodes refill as new pods spread out | Paired with dense placement, so nodes stay empty |
| Hand-written scripts decide which pods to move | Targets the stranded pods keeping nodes alive |
| Critical infrastructure protected by hand | Core infrastructure excluded by default |
| Same aggressiveness in every environment | Conservative defaults for production clusters |

## Find the Nodes You’re Paying for but Not Using

See how much of your cluster is held up by stranded pods.

## Frequently Asked Questions

### Does Compactor delete nodes?

No. Compactor moves stranded pods so a node can empty out. Your existing autoscaler removes the node, on its own schedule.

### How does it work with Karpenter?

Compactor detects Karpenter-managed node pools and leaves them to Karpenter’s own consolidation. It adds continuous consolidation where none existed: all of GKE, and any EKS or AKS cluster still on Cluster Autoscaler or classic managed node groups.

### Will moving pods disrupt my workloads?

Every eviction goes through the standard Kubernetes eviction API, which enforces your PodDisruptionBudgets. Production clusters also get conservative packing thresholds and longer grace periods by default.

### What won’t Compactor touch?

Ingress, service mesh, CSI drivers, observability, and GitOps tooling are excluded by default. You can also exclude a namespace, a resource group, or a single workload, and opt-outs take effect immediately.

### Can I see what it would do before it acts?

Yes. A recommendation-only mode is available for each cluster.

### Why does consolidation need Sedai Scheduler?

Without dense placement, the default scheduler spreads new pods back onto the nodes Compactor just emptied. Running both gives your autoscaler genuinely empty nodes, sooner and more often.

### How quickly will node count come down?

Node count typically trends down over the first one to two weeks as your autoscaler reclaims capacity.

### Which platforms are supported?

Amazon EKS, Google Kubernetes Engine, and Azure Kubernetes Service, through the standard Sedai agent.
