Overview
Workloads can leverage intelligent allocation of their container’s resources (CPU and Memory) by using Capacity AI. Capacity AI uses an analysis of historical usage to adjust the resources up/down between the configured minimum and maximum values of each container. This can significantly reduce cost but may, in rare cases, cause temporary performance issues with sudden spikes in usage depending on the autoscaling settings of the workload. If capacity AI is disabled, the amount of resources configured is set using the provided cpu and memory settings for each container.Resource Minimums
minCpu and minMemory are typically used only when Capacity AI is enabled. However, stateful workloads always respect these fields.
Limit Capacity AI update frequency
You can set the highest frequency that Capacity AI is allowed to update the resources of a workload by setting thecapacityAIUpdateMinutes field in the workload options.
By defualt (when not set), Capacity AI can update the resources as frequently as necessary.
YAML
Caveats
Capacity AI must be disabled if the autoscaling strategy is set toCPU Utilization.
Capacity AI is not supported for stateful workloads
Capacity AI will prevent the ratio of memory and cpu from diverging by a large percentage.
Changes made to a workload will reset its historical usage and will restart the analysis process.