-
Notifications
You must be signed in to change notification settings - Fork 42
Description
I've just started researching options for a large scale batch computing job and although pricing isn't a huge worry (since it's a one-off job), it is something that interests me in case I end up building a deployment script/framework that can be used on future projects:
- Google Cloud Function (1GB, 1GHz): (0.0000025 + 0.00001)6060 = $0.045 / hr / core
- Google Preemptible n1-highcpu-64 (~1GB per core, ~2GHz): 0.48/64 = $0.0075 / hr / core
So the cloud function approach appears to be ~6x the price of the preemptible machine approach? And if you take into account clock speed then it's somewhere near 12x the price? I also haven't taken into account the invocation pricing of the cloud functions, but I'm assuming that would be small. The preemptible machine approach also has the advantage of being able to run code for longer than 10 or 15 mins, which is very handy for me - it saves me splitting up files that need to be processed into smaller, digestible-in-10-minutes chunks and coding all the logic to handle merging and stuff.
@BrandiATMuhkuh, who you were talking to on the hacker news thread seems to have switched to many-core machine(s) after trying the cloud function approach, and I wonder if pricing was a consideration there?
If I've not made any mistakes or incorrect assumptions, then is it within the scope of faast.js to consider preemptible machines? Since you've implemented a local
provider, I'm assuming that you've done most of the leg-work required to be able to deploy it to an actual machine, rather than a cloud function.