Automation customization with CRD
Learn how to customize your Automation setup
Customize your automation with the following settings:
Time constraints
🗑️ Maximum automation frequency for waste
This optional field defines the maximum frequency at which automated actions can be executed to apply recommendations when waste is detected, and resource reduction is needed.
🚨 Maximum automation frequency for waste resiliency
This optional field defines the maximum frequency at which automated actions can be executed to apply recommendations when resiliency risks are detected, and resource increase is needed.
🕙 Maintenance window
The maintenance window defines the timeframe for PerfectScale to implement the recommendations.
The maintenance window is particularly helpful in minimizing the impact of changes on business operations and provides a structured approach to system updates and changes.
Example 1
The automation actions are scheduled daily between 00:00 and 23:59 UTC:
Example 2
Excluding specific days from the automation maintenanceWindow.
To exclude a specific day(s) from an automation maintenanceWindow, set the timeframe to 00:00-00:00 (e.g., Monday - Friday in the example above).
Example 3
The automation actions are scheduled for the end of one day and the beginning of the next.
🙅 Minimum resiliency level to override maintenance window
In some cases, you may want Automation to override the maintenance window to ensure that critical resiliency issues, such as CPU throttling or OOM occurring outside the maintenance window, are properly addressed by an immediate resource increase.
This field indicates the minimum resiliency risk level required to bypass maintenance window constraints and resolve the issue. When set to None (default), the maintenance window constraints are enforced. However, when one of the resiliency levels is selected (Low, Medium, High), PerfectScale Automation will ignore maintenance window constraints for risks with the indicated resiliency level and above, applying changes to resolve the issue.
Example 1
The maintenance window will be ignored for risks at any level.
Example 2
The maintenance window will be ignored for risks with Medium and High risk levels
Example 3
The maintenance window will be ignored for High risks only.
💡Keep CPU limit
In general, we recommend removing CPU limits when possible. Doing so can improve the performance and efficiency of your workloads by allowing them to use available CPU resources more freely.
However, be aware that removing misconfigured CPU limits can increase memory consumption in many cases. This requires adjusting both memory requests and limits to ensure optimal performance and efficient use of resources.
🔄 Memory increase iteration limit
maxMemoryIncreaseIterations sets the maximum allowed number of daily and weekly memory limit increase iterations.
Once the number of daily or weekly memory increase iterations reaches the maximum value, to prevent potential memory leaks, PerfectScale Automation will stop recursive memory increase.
In order to notify the customer, PerfectScale will raise a relevant indicator and create an Alert.
⚙️ Optimization policy
PerfectScale offers flexible policy customization, giving you greater control over how optimization is applied.
With this feature, you can:
Configure independent optimization policies for CPU and Memory.
Apply a Memory Request = Limit policy for memory-sensitive workloads.
Define custom time windows when the default setup is not sufficient due to known and predictable resource spikes.
These options enable you to tailor optimization behavior to your workload requirements, reliability constraints, and operational preferences while maintaining efficient and predictable optimization.
Learn more about optimization policy customization here. Additional YAML Examples can be found here.
🔨 Immediate OOM reaction
To enable immediate OOM reaction, add the following configuration to your cluster, namespace, or workload automation configuration:
Last updated
Was this helpful?