17
votes

I am having a look at GCP cloud scheduler for running a cloud function which collects and stores some data for my research project. I was looking at running the function every hour for 6 months. However after assessing the pricing this would come to about $440 (24 * 183 * 0.1). This seems quite expensive for quite a simple operation and the cost would only increase if I wanted it to run at my desired rate of every 20 minutes.

Is this the correct usage of cloud scheduler? Wouldn't it be cheaper to fire up a f1-micro instance and have that cron task to fire the function? Is there something special about it that I would lose doing it this way? Especially as IBM cloud functions have free cron

2
Cloud provider pricing is completely off topic here. - Mat

2 Answers

33
votes

As mentioned in the doc here:

The actual running of a job is called an execution. A job is not billed for individual executions. For instance, if a single job is defined to run for "every day of the month", then that job is billed $0.1/month and not $3/month for 30 executions of that single job.

So if you have only one job running every hour for 6 months, you'll be charged only $0.60

2
votes

regarding:

The pricings only apply on the 4th scheduled job set and beyond. The first 3 are free. – Kolban Jul 23 '19 at 21:28

its important to know that its per account not projects. So if in one google account you have multiple projects and in each of them 3 jobs - only 3 jobs in all this projects will be free.