From the provided docs for dataprocs it says:
To help avoid incurring Google Cloud charges for an inactive cluster, use Dataproc's Cluster Scheduled Deletion feature when you create a cluster. This feature provides options to delete a cluster:
- after a specified cluster idle period
- at a specified future time
- after a specified period that starts from the time of submission of the cluster creation request
However what i'm looking for is something that allows me to schedule the cluster activity automatically for example i want the cluster to be active only during working days and working hours.
This way i can avoid incurring in additional costs without having to manually stop (or rather only delete as it seems from DataProc documentation) and recreate the cluster every day.
For this purpose in Compute Engine i'm able to create a scheduling for the VMs of the cluster to stop them.
although, by using this method, the VMs are stopped through this schedule i still see the cluster "running" in DataProc.
Am i still incurring in costs or not? if yes are there any similar alternatives to schedule in DataProc?
As a bonus question is it possible to apply a schedule to a cluster with an autoscaling policy?