Skip to main content

Auto Optimize

Optimize → Auto Optimize applies right-sizing for you, on a schedule or continuously. Rules are set per Kubernetes cluster — pick the cluster with the Account picker. The tab has two sub-tabs: Optimizations (your rules) and Approvals.

NudgeBee Auto Optimize listing showing optimizations with their category, target resource, last executed and next scheduled time

What it can do​

CategoryWhat it changesWhen it runs
Continuous Vertical Right Sizing (Beta)CPU and memory requests and limits; the cluster's agent decides the values when it applies themAbout every 15 minutes
Scheduled Vertical Right SizingCPU and memory requests and limits, from the recommendationOn your schedule
Horizontal Right SizingReplica count, from an hourly usage forecastHourly, ahead of the next hour
PVC Right SizingGrows a volume when it fills past a thresholdHourly; it only ever grows volumes

Create a rule​

Choose Create Auto Optimize (top right) and a category. You can also start one from a recommendation — Continuous Auto Optimize or Schedule Auto Optimize in Resolve this issue — or from a workload's row menu on the cluster page. Creating a rule needs write access to the cluster.

Scheduled Vertical Right Sizing​

FieldMeaning
Account, Namespace / ApplicationThe workloads to right-size
CPU and memory algorithm and bufferHow the new values are calculated (CPU defaults to NB Algo, memory to the maximum, both with no buffer)
Trigger ThresholdsOnly apply a change between Minimum Change (default 10%) and Maximum Change (default 100%)
Schedule OptimizationWhen it runs — see below
End DateAfter this date the rule is disabled
Raise Git Pull RequestOpen a pull request instead of patching (needs the workload's CI or Argo CD annotations); choose the Repo Name and In-place resize policy
Create Jira TicketAlso create a ticket for each change
Dry RunInstead of applying Recommendations, Log changes
Require approvalEach run waits for an account editor to approve — see Approvals. Not available with Dry Run.
In-place resize (zero-downtime)On by default
Notify me onSlack, Microsoft Teams, Google Chat or email

Setting the schedule: the time is UTC (Cron Schedule follow UTC timezone). Enter the schedule as a Cron Expression with five fields, for example 0 2 * * * for 02:00 every day. Leaving it empty runs the rule every hour.

Continuous Vertical Right Sizing​

Choose the cluster, namespaces and applications, and where to be notified. There's no schedule, dry run or approval — it keeps workloads right-sized as usage changes.

Horizontal Right Sizing​

Choose the cluster and one workload. Historical Data shows the last 7 days of CPU, memory and request rate. You can turn on Require approval and notifications.

PVC Right Sizing​

Choose the cluster and Namespace & PVC, how much to grow by (Increase Storage Size By, default 10%) and the usage Threshold that triggers it (default 80%). You can turn on Require approval and notifications.

One rule per workload​

A workload can have only one active rule of each category, and Scheduled and Continuous Vertical Right Sizing can't both be active on the same workload.

Manage rules​

Optimizations lists your rules. Filter by Account, Status (Active, Disabled, Dryrun, Draft), Category, or search by name or id.

Columns: Name, Status (Waiting for approval when a run is pending), Category, Resource, Last Executed Time, Next Scheduled, Created At, Created By, Updated By.

The ⋮ menu (write access): Edit, Disable / Enable, and Check Status for draft rules.

Stop a rule​

Rules can't be deleted — Disable stops one. This will stop the schedule from running. Existing recommendations are not reverted. You can re-enable any time. Changes it already made stay in place; revert them through your deployment process or Git.

Run history​

Click a rule's name to open it. Tasks lists each run's Resource, Recommendation, Scheduled Time, Status (Complete, Failed, Scheduled, Skipped, Dryrun, Waiting for approval), Message and PR/Ticket. Details shows the deployment history and CPU, memory and cost trends.