Auto-deploy

These settings define whether Optimize Live applies recommendations automatically

These settings define whether Optimize Live automatically applies recommendations.

Deploy recommendations automatically

When true, Optimize Live automatically applies new recommendations when they are generated on the configured schedule.

Annotation Default value
live.stormforge.io/auto-deploy "false"
Description

When auto-deploy is enabled ("true"), Optimize Live automatically applies new recommended settings when they are generated on the configured schedule.

The Applier must be installed in order for recommendations to be applied automatically. Other settings, such as auto-deploy thresholds, are in effect only when auto-deploy is enabled.


Auto-deploy thresholds

Optional. Prevent Optimize Live from automatically applying low-impact recommendations by defining the minimum amount of change required between current and recommended values.

Annotation Default value
live.stormforge.io/auto-deploy.thresholds.cpu.percent None
live.stormforge.io/auto-deploy.thresholds.memory.percent None
live.stormforge.io/auto-deploy.thresholds.cpu.unit None
live.stormforge.io/auto-deploy.thresholds.memory.unit None
Description

Auto-deploy thresholds are a constraint that can prevent automatic deployment of recommendations generated on a schedule. If a threshold is configured, the amount of change between the new recommended values and the values currently applied to the workload must meet the defined minimum for the recommendation to be automatically deployed.

Percent thresholds

To use percent thresholds, specify a percent value for both CPU and for memory. The threshold is met if the amount of change for either resource exceeds the configured minimum percent.

Valid values

Any positive integer string. Examples:

  • "5"
  • "10"
Unit thresholds

To use unit thresholds, specify a unit value for both CPU and for memory. The threshold is met if the amount of change for either resource exceeds the configured minimum unit value.

Valid values

Any positive Kubernetes quantity, appropriate to the resource. Examples:

  • "10m" (for CPU)
  • "64Mi" (for memory)
Key points
  • Thresholds have no effect unless the live.stormforge.io/auto-deploy annotation is set to "true".
  • If, for at least one container, the recommendation satisfies the thresholds for at least one resource — as in, CPU (unit AND percent threshold) OR memory (unit AND percent threshold) — the recommendation will be applied automatically.
  • It is highly recommended to set percent and unit thresholds. If you set a percent threshold only, small unit changes for small containers can be a large enough percentage to meet the percent threshold, thus deploying the recommendation. Setting percent and unit thresholds ensures small changes don’t trigger a deployment.
  • To disable thresholds, set them to "0".
Last modified June 7, 2024