Hey, so want to start by saying I'm sure this is probably just me not understanding fully how the billing works for Cloud Run Jobs. I thought I understood based on research and the pricing calculator, but looking in my billing dashboard has me questioning things now so asking for help to understand everything (I'll try and keep things as brief as I can)
Goal: Im looking to import ~200k items from steam into my database. In order to not hit steam API ratelimits, Im using Cloud Tasks to queue up each import and hitting a Cloud Run Job I built at a rate of 1 task / 5 seconds (~12/min)
Cloud Tasks queue summary (about 172k to go)On the Cloud Rub Job side, looking at the "History" tab I see that each execution takes ~15 seconds to run ("End time" - "Creation time")
Sample of recent executionsThis is not a very compute heavy job so it's config'd with the min CPU / memory I could figure out how to set
Based on using the GCP Pricing Calculator, I would expect this entire process to cost ~$57 (and take about 13 days since im only throttling via Cloud Tasks)
However, when I look at my billing dashboard, I see that yesterday alone Cloud Run cost ~$18. This is over 4x what I expect it to costs based on everything above (high estimates imo)
Cloud Run Job - Metrics tab (2-3 executions ever running at one time showing a high-end estimated billable container time of about 0.05s/s Billing Report snapshot showing yesterday (5/22/2024) cost about $18 in Cloud Run costsSo my question is, where am I having a disconnect between what the pricing calculator tells me and what I'm actually seeing in GCP? I purposefully went this route because I understood Cloud Run to be pretty economical with their charging only for the time you use and even that being fairly priced IMO. While I'm fortunate enough that I can afford the $200+ to import the data, this is the kind of job I would like to spin up a couple instances of to continuously have process data in the background, but at $200+ each I don't think thats really affordable as I scale things up :/
So could anyone help me better understand whats going on? Did I configure the calculator wrong? Am i reading my History/Metrics tabs wrong? Any help is greatly appreciated!
Google Cloud Run cost me $4,676 in 6 weeks with zero traff
Google cloud run jobs price
Google Cloud Run Cost
Cloud Run gets "Always On" Cpu allocation feature
Videos
Hey developers, I would like to know the cost of running cloud run jobs and my jobs run for around 2 hours, It will be much appreciated as GCP calculator is showing around $6000 per month while Chatgpt is saying around $5 per month, Can anyone clarify based on their experience.