Optimization Windows for Unrestricted Ocean Operations
Cloud service provider relevance: AWS
Automated optimization processes in Ocean can sometimes be limited by operational constraints such as PDBs (Pod Disruption Budget) and Scale-down restrictions. These constraints prevent Ocean from fully consolidating the resources and reducing the compute costs, even when workloads are resized.
The optimization windows feature gives you the possibility to schedule weekly time windows when Ocean ignores these constraints and applies all relevant optimization, for example, bin-packing, reverting to lower cost, reverting to commitment, and reverting to spot.
Enable optimization windows
The optimization windows feature can be configured on cluster level or VNG level through the Spot API using the endpoints:
You find the configuration under scheduling.
For a window to be valid, the configuration must include a cronExpression, a duration, and at least one of the effects to ignore PDBs or ignore Scale-down restrictions.
These are the parameters:
-
optimizationWindows: An object used to specify time windows during which certain optimization constraints can be eased.-
IsEnabled: A boolean flag that enables (true) or disables (false) the use of optimization windows. -
windows: The times when the optimization windows will apply. Required ifisEnabledistrue.cronExpression: Defines the start time of the window (in UTC time and Unix cron format).duration: Defines the duration of the window (in minutes, hours, or days).effects: Defines what to ignore during the window. Available items are "ignorePdb" and "ignoreRestrictScaleDown".
-
EXAMPLE
In this example, the window starts daily at midnight, the window lasts for 17 minutes, and we ignore both the PDB and the Scale-down restrictions.
{
"scheduling": {
"optimizationWindows": {
"isEnabled": true,
"windows": [
{
"cronExpression": "0 0 * * *",
"duration": "17m",
"effects": [
"ignorePdb",
"ignoreRestrictScaleDown"
]
}
]
}
}
}