Optimization Policy customization

Learn how to customize the optimization policy to tailor recommendations and automation to your services' specific needs

PerfectScale uses the default data maturity time window for the recommendations depending on the selected Optimization Policy. This algorithm allows PerfectScale to collect sufficient data, ensuring reliable recommendations or accurately adjusting resources through automated actions.

However, there may be situations when the default optimization strategy is not efficient enough due to known and predictable resource spikes within a known timeframe. PerfectScale allows you to set a Custom time window for the Optimization Policy to tailor recommendations and automation to your services' specific needs.

You can adjust the time window for the optimization policy for both the entire cluster and a specific workload.

Setting custom time window for the cluster

You can easily specify the custom time window for the optimization policy when onboarding the cluster or modify it for an already running cluster.

When onboarding a new cluster, enable the toggle Custom time window in the Optimization Policy drop-down and select the policy and the desired time window.

If the exporter was installed with a specified custom policy, the subsequent upgrades should also include it. PerfectScale recommends using the upgrade command in the UI as it keeps your fields from the installation. Find out more about upgrading the agent here.

Custom time window

If you want to modify the custom time window for the already onboarded cluster, go to the cluster settings by clicking the gear button right after the desired cluster on the Overview page. Once you are here, enable the toggle Custom time window in the Optimization Policy dropdown, select the policy and the desired time window.

If a custom policy is set through the exporter when installing the PerfectScale Agent, it cannot be modified in the UI afterward. You can still change the custom policy by upgrading the exporter with the new value, or you can return it to the default by upgrading the exporter without specifying any value (this will also enable the option to change the custom time window through the UI).

Custom policy - cluster

Once the custom time window is applied, it will be displayed next to the optimization policy in UI.

Setting custom time window for the workload

To set the custom time window for the optimization policy of the particular workload, navigate to the zoom-in window by clicking the workload, enable the toggle Custom time window. In the Optimization Policy dropdown, select the policy and desired time window, and click Save button.

Custom policy - workload

Setting custom time window programmatically

Setting a custom time window programmatically is possible only for the entire cluster and not for per workload.

To set the custom time window for the optimization policy programmatically, specify the custom time window for a cluster as part of the PerfectScale agent installation:

helm install --set clusterOptimizationPolicyTimeWindow

Use one of the following supported options: 14days, 21days, 30days or 45days

Returning to default optimization policy settings

To revert to the default optimization policy settings, simply upgrade the exporter without specifying any value. This will also enable modifying the custom time window through the UI.

Last updated