This tutorial describes how to build a weekly schedule defining the hours in which the workloads in your cluster will be up and running.
Before you set the running hours, you must configure the minimum capacity in the Ocean cluster to 0.
Schedule Your Running Hours
To schedule your running hours, do the following:
- In your Ocean cluster, click Actions and choose Customize Scaling.
- Click Cluster Running Hours.
- Set your running hours by clicking or dragging the mouse in the timetable.
- Click Update.
During Off Hours
If you need to change the schedule during the off hours, you can do so without causing the cluster to “wake up” instantly. The cluster will wake up only when you activate it manually by making a capacity change.
Using The API
You can also configure running hours using the API parameter cluster.scheduling.shutdownHours. Unlike the UI however, the API works by defining the off hours instead of the actual running hours. The time range defined represents the ranges in which the cluster will be scaled to zero. The API uses this mechanism in order to reduce chances of a human error that would cause an undesired scale-down to zero.
Have a look at the APIs: