Simplified and Cost-Efficient GKE Node Management with NAP:
Secure your spot!
LogoLogo
PerfectScale.ioStart for FreeYour Account
  • Kubernetes Optimization
  • Getting started
    • How to onboard a cluster
    • Onboarding clusters programmatically
    • Onboarding with ArgoCD
    • Updating PerfectScale Agent resources
    • Re-onboarding a cluster
  • Enable automation
    • Automation setup instruction
    • Including a cluster, namespace or workload to the Automation
      • Configuring Automation for a cluster
      • Configuring Automation for a namespace
      • Configuring Automation for a workload
    • Excluding a namespace or workload from the Automation
    • Automation customization
    • Verifying Automation status
    • Exploring Automation KPIs
    • Self-healing mechanism for unschedulable pods
    • Disable automation
    • Troubleshooting
    • Automation with GitOps
  • Cloud billing integration
    • Connecting AWS CUR
    • Connecting Azure Cost Management
  • Clusters' metrics overview
  • Podfit | vertical pod right-sizing
    • Understanding 'At Risk' indicators
    • LimitRange and ResourceQuota
  • Infrafit | node right-sizing
  • Configure alerts
    • Alerts acknowledgement
  • Trends monitoring
  • Revisions history log
  • Product overview
    • How to monitor PerfectScale Agent
    • PerfectScale data collected
    • PerfectScale Autoscaler Objects' Events
    • Outbound Request Ports used by the Exporter and Autoscaler
    • PerfectScale Weekly Report
    • Product architecture
  • Customizations
    • Alerting
      • Resiliency alerts
      • Financial alerts
    • Pricing
      • Custom Pricing configuration
      • AWS CUR configuration
      • Azure Cost Management configuration
    • Ticketing & Bug Tracking
    • Communication & Messaging
      • Slack Integration
        • How to configure slack_token
        • How to configure routings
      • MS Teams Integration
        • How to configure teams_webhook
      • Datadog Alerts Integration
    • Label customizations
    • Grouping
    • Observability
    • Podfit labels
    • Optimization Policy customization
  • Administration
    • Cluster settings
    • User management
    • Roles and permissions
    • Subscription details
    • Help Center
  • PerfectScale trial
    • How to find your allocated vCPU?
  • PerfectScale Prometheus Exporter
  • Security
    • MFA
    • SSO
    • ps-agent RBAC Permissions
    • psc-autoscaler RBAC Permissions
    • ps-exporter via Proxy Configuration
  • Public API
  • Help PerfectScale to improve
  • Go to your account
Powered by GitBook
LogoLogo

© PerfectScale 2025

On this page
  • Setting custom time window for the cluster
  • Setting custom time window for the workload
  • Setting custom time window programmatically
  • Returning to default optimization policy settings
  1. Customizations

Optimization Policy customization

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

PreviousPodfit labelsNextAdministration

Last updated 1 month ago

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 .

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).

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.

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.

Custom time window
Custom policy - cluster
Custom policy - workload
here