automatically remove blocked nodes

Remove underutilized nodes your autoscaler cannot, without manual drains

PerfectScale finds nodes that blocked pods keep alive, moves the pods safely, and hands the empty node back to your autoscaler.

Remove underutilized nodes your autoscaler cannot, without manual drains

Automatic Node Removal

Free the node, not only the capacity on it.

  • Find Blocked Nodes: PerfectScale finds nearly empty nodes that your autoscaler leaves alone because of a pod it must not move.
  • Check the Fit: It checks that every pod fits on other nodes before it moves anything.
  • Hand Back the Empty Node: It moves the pods and hands the empty node back to your autoscaler, which removes it.

Safe by Design

Your workloads stay available while the node is drained.

  • Pods Placed First: Every pod is placed on another node first, and the node is removed only after the workloads are ready again.
  • PodDisruptionBudgets Hold: Pods are evicted through the Kubernetes Eviction API, so your budgets are respected.
  • Nothing Else Is Edited: Bin packing automation never edits pod specs, PodDisruptionBudgets, pod annotations or node pools.

Controlled Automation

Choose which node groups are drained, and what is never touched.

  • Pick Your Node Groups: A node group is drained only when you enable it. A node group without its own configuration is never drained.
  • Protect What Matters: Keep chosen pods and nodes out of every drain with selectors, annotations and safety options.
  • Try Dry Run First: PerfectScale records the plan for each node and changes nothing. Switch to Enabled when the plans look right.

Feature Chart

  • Blocked Node Detection

    Find underutilized nodes that your autoscaler cannot remove.

  • Fit Check First

    Every pod must fit on other nodes before a drain starts.

  • PDB Friendly

    Pods leave through the Eviction API, so PodDisruptionBudgets hold.

  • Ready Before Removal

    The node is removed only after the workloads are ready again.

  • Works With Your Autoscaler

    Karpenter, Cluster Autoscaler and the managed GKE and AKS autoscalers.

  • Dry Run Mode

    Record the plan for each node and change nothing.

  • Per Node Group Control

    Drain only the node groups you enable.

  • Protected Pods and Nodes

    Never touch pods or nodes that match the selectors you set.

  • Safety Options

    Skip nodes with hostPath volumes, running Jobs, GPUs, kube-system pods or disk-backed emptyDir volumes.

  • Annotation Rules

    Skip nodes that run pods with the annotations you choose.

  • Automation Audit

    See every drain with its status, savings and node details.

  • Node Snapshot

    See the node as it was before the drain, even after it is removed.

  • NodeFit Status

    See Active, Dry Run, Disabled by User or Not Enabled for each node group.

  • One Stop Switch

    Stop one node group, or all node automation in the cluster.

Frequently asked
questions

What is bin packing automation?

Bin packing automation removes underutilized nodes that your autoscaler cannot remove. PerfectScale finds these blocked nodes, checks that every pod fits on other nodes, moves the pods, and hands the empty node back to your autoscaler.

It needs the PerfectScale automation agent psc-autoscaler v1.0.77 or later in the cluster.

Why can my autoscaler not remove these nodes?

Karpenter and Cluster Autoscaler leave a node alone when it runs a pod they must not move, such as a pod with a do-not-disrupt annotation, a pod with no owner, or a pod whose PodDisruptionBudget has no room. One such pod can keep a nearly empty node running for months.

Workload right-sizing frees capacity on your nodes, but the cloud bill only drops when a node is removed. Open the Bin Packing view in PerfectScale to see which pods block node removal in your cluster.

How does it keep my workloads available?

Every pod is placed on another node first. Pods are evicted through the Kubernetes Eviction API, so PodDisruptionBudgets hold, and the node is removed only after the workloads are ready again. If one pod does not fit on any other node, the node is not drained.

Bin packing automation never edits pod specs, PodDisruptionBudgets, pod annotations or node pools. One optional setting, off by default, deletes a pod after a 2 minute wait when a PodDisruptionBudget keeps refusing the eviction. Turn it on only when you accept that risk.

What happens to the node after the drain?

With Karpenter, PerfectScale drains the node and deletes its NodeClaim, and Karpenter terminates the instance. With Cluster Autoscaler, including the managed versions on GKE and AKS, PerfectScale drains the node and leaves it empty and cordoned, and the autoscaler removes it.

With any other setup, PerfectScale shows the blocked node but does not drain it.

Can I choose which node groups and pods are touched?

Yes. A node group is drained only when it has its own NodeGroupAutomationConfig with automationMode: Enabled. You can also protect pods with selectors, protect nodes by label, and skip nodes that run pods with annotations you choose. Safety options let you skip nodes with hostPath volumes, running Jobs, GPUs, kube-system pods or disk-backed emptyDir volumes.

Some nodes are never drained: nodes with static pods, pods that use a custom scheduler, pods that use a local volume tied to the node, and nodes that your autoscaler is already removing.

How do I turn on bin packing automation?

Install the automation agent v1.0.77 or later. Then apply a ClusterNodeGroupAutomationConfig for the cluster and a NodeGroupAutomationConfig for every node group you want drained. Without the cluster resource no node is drained, and the cluster resource alone never starts a drain.

Start with automationMode: DryRun. PerfectScale runs every check and records the plan for each node but changes nothing. Switch to Enabled when the plans look right. See the bin packing automation docs for the full steps.

Can I stop it?
Yes. Set `automationMode: Disabled` in the node group configuration to stop draining that node group. Set `stopAllAutomation: true` in the `ClusterNodeGroupAutomationConfig` to stop all node automation in the cluster. If a drain fails, the node can stay cordoned. Run `kubectl uncordon ` to release it.
Where can I see what was drained?

Each drain is one row in the Bin Packing Automation tab of the Automation Audit, at the organization and cluster levels. A row shows the status, the realized savings, how much of the node was used at drain time, the node group, the node name and the node age.

Click a row to open the node snapshot: the node as it was before the drain, kept after it is removed, with its pods by size. A failed drain shows its reason. In NodeFit, the Bin Packing Automation column shows Active, Dry Run, Disabled by User or Not Enabled for each node group.

Automatically remove blocked nodes, safely

Install in minutes and get autonomous optimization insights.