Set Shutdown Hours
Important: Before you set shutdown hours, you must configure the minimum capacity in the Ocean cluster to 0.
Schedule Shutdown Hours in the Console
- Click Ocean > Cloud Clusters on the main menu on the left.
- Select a cluster from the list of clusters.
- At the top-right of the screen, click the Actions menu and select Customize Scaling.
- Turn on the Cluster Shutdown Hours by moving the slider to the right.
- Set your shutdown (off)/running hours by clicking or dragging the mouse in the timetable. The selected chunk changes from blue to gray color.
- Save your changes.
Note: If you need to change the schedule during off-hours, you can do so without instantly waking up the cluster. The cluster will wake up only when you activate it manually by making a capacity change.
Schedule Shutdown Hours in the API for the Cluster
You can schedule shutdown hours with the Spot API parameter cluster.scheduling.shutdownHours
in Create Cluster and Update Cluster for your cloud platform.
The time range defined in the API represents the ranges in which the cluster will be scaled to zero. The API uses this mechanism to reduce the chances of a human error that would cause an unwanted scale-down to zero.
The value defined in the shutdownHours.timeWindows
field is effective only when the shutdownHours.isEnabled
field is set to true
.
Schedule Shutdown Hours in the API per Virtual Node Group
Cloud service provider relevance: AWS Kubernetes, AKS
You can use the Spot API to configure shutdown hours for one or more individual virtual node groups.
For AWS Kubernetes, set virtual node group shutdown hours under: launchSpec.scheduling.shutdownHours
:
Note:
isEnabled
must be set to True to turn on shutdown hours.
For AKS, set virtual node group shutdown hours under:
For AKS, you can also set shutdown hours for the virtual node group template under virtualNodeGroupTemplate.scheduling.shutdownHours
for the cluster so that custom virtual node groups based on the template will inherit the shutdown hours values: