Scheduled Overrides
Scheduled overrides⚓︎
You can automate temporary overrides for the scale of the various components in a cluster using scheduled overrides.
Overrides are specified within the Hydrolix spec configuration and take effect when the container's current time falls within the schedule block specified for an override. The HDX custom resource definition itself is never mutated by the contents of the overrides block. Instead, overrides live only in the operator memory.
Requirements⚓︎
Each override must contain the fields timezone, patch, and exactly one of either weekly, window, or cron.
| Field name | Type | Description |
|---|---|---|
timezone |
string | IANA TZ used with the specified schedule. Defaults to UTC. |
weekly |
Block containing the following fields: days (format: A list containing elements that are 3-letter strings for each day of the week: Sun, Mon, Tue, Wed, Thu, Fri, Sat) start (type: string, format: \"HH:MM\") end (type: string, format: \"HH:MM\") |
One of three possible schedule blocks. Conditionally required if no other schedule block is set. |
window |
Block containing the following fields: start (type: ISO-8601 datetime) end (type: ISO-8601 datetime) |
One of three possible schedule blocks. Conditionally required if no other schedule block is set. |
cron |
Block containing the following fields: cron expression (type: cron string) duration (type: string) |
One of three possible schedule blocks. Conditionally required if no other schedule block is set. |
patch |
Dictionary. Must be valid, properly-formatted fields from the list of Hydrolix tunables | The HDX spec definition to apply while active. |
Multiple overrides can be active at the same time. When there are duplicate keys updated by multiple overrides, the last key in the config will apply.
Valid scheduled override example⚓︎
| Weekly Override for High Traffic Days | |
|---|---|
| Weekly Override for High Traffic Days in Condensed List Format | |
|---|---|
| Holiday Window Scale Down | |
|---|---|
| Nightly Ingest Scale Down | |
|---|---|
While particularly pertinent to automated scaling, scheduled overrides can be applied to any Hydrolix tunable. See Hydrolix tunables for additional tunable examples.
Limitation⚓︎
You can't update a scheduled override if the cluster is within the active time window for the override. For example, take the following override:
| Active Window Override | |
|---|---|
Updating this override prior to its start time would ensure the changes are applied as expected within the specified time window.
However, if current time for the cluster is "2025-07-29T10:00:00Z", which lies within the window, updating the override would not apply the changes.
Workaround⚓︎
To make sure any override changes apply as expected, update the start time to a point in the future. In this example, it would be sufficient to update the window configuration to
| Workaround: Start Set to Future Datetime | |
|---|---|
Verification⚓︎
Hydrolix clusters use a configurable validating webhook to verify the correctness of the spec configuration of the hdx Kubernetes object, including any scheduled overrides. The webhook is responsible for the following types of validation:
Verification of required fields⚓︎
The validating webhook enforces that these required fields are present:
timezonepatch- exactly one of
cron,weekly, orwindow
Bad scheduled override config missing required field: timezone⚓︎
Bad scheduled override config with too many schedule blocks⚓︎
Validation of syntax and values⚓︎
Each scheduled override block type requires different keys. The validating webhook enforces the required keys and validates that types and values are correct.
Bad scheduled override config with invalid cron field name: days⚓︎
The days field is invalid for cron block type, only valid for the weekly type.
Bad scheduled override config with missing cron setting: expression⚓︎
Bad scheduled override config with invalid values for window fields⚓︎
The operator writes the list of currently active override names to .status.activeOverrides in the Hydrolix cluster configuration. Once a cluster's clock time lies within the schedule blocks for an override, check the hdx configuration to find a list of active overrides:
| Active Overrides in Hdx Configuration | |
|---|---|
Recall that when there are duplicate keys updated by multiple overrides, the last key in the config will apply. In the example above, any keys updated by both the nightly-intake-scale-down and winter-scale-down overrides will conform to the value set by nightly-intake-scale-down.